David J. Fiddes dac493fb92 SPI: Fix discarded-qalifiers warning when compiling with all warnings (#3458)
* SPI: Fix discarded-qalifiers warning when compiling with all warnings

This fixes an error introduced with changeset b847f41 which
tightened the use of const for read-only data. The helper
funtion __transferBytes also requires the const qualifier on
outgoing data. Without this change a warning is displayed
when compiling with the Arduino IDE set to display "All"
compiler warnings.

Tests:
 - Build an ESP32 SPI sketch that uses static const data to send
   to an SPI device using the SPI.transferBytes() API

* SPI:Ensure all local functions are marked static

This audits all functions in the esp32-hal-xpi.c module and
ensures that any functions entirely local to the module are
marked as static.

Tests:
 - Build with Arduino set to show all warnings and ensure none
   are displayed

* SPI: Remove unused local __spiTranslate24 function

This removes the __spiTranslate24() function which is unused.
2019-11-11 17:44:49 +01:00
..
2016-10-06 07:09:44 -06:00
2016-10-06 07:09:44 -06:00
2018-06-27 09:01:06 +02:00
2018-12-28 19:14:15 +02:00
2017-01-09 18:05:30 +02:00
2016-10-06 07:09:44 -06:00
2016-10-06 07:09:44 -06:00
2019-05-01 20:10:41 +03:00
2019-09-24 19:25:27 +03:00
2016-12-09 17:47:30 +02:00
2016-12-12 01:32:55 +02:00
2016-12-12 01:32:55 +02:00
2017-01-06 00:54:50 +02:00
2017-01-06 00:54:50 +02:00
2019-10-04 12:49:39 +03:00
2016-10-06 07:09:44 -06:00
2016-10-06 07:09:44 -06:00
2016-10-06 07:09:44 -06:00
2018-06-27 09:01:06 +02:00
2016-10-06 07:09:44 -06:00
2019-05-11 11:16:05 +03:00
2016-10-06 07:09:44 -06:00
2016-10-06 07:09:45 -06:00
2017-01-20 21:49:17 +02:00
2019-06-05 13:48:13 +02:00