zephyr/drivers/spi
Peter Bigot 5f481bb042 drivers: rearrange for standard use of extern "C" in private headers
Consistently place C++ use of extern "C" after all include directives,
within the negative branch of _ASMLANGUAGE if used.

Only updated in headers that already had support for drivers built with
a C++ compiler.

The spi_dw.h file defines macros to declare functions, then uses them
within a file that may have out-of-tree overrides.  In this case we
leave the including file extern "C" active for backward compatibility.

Background from issue #17997:

Declarations that use C linkage should be placed within extern "C"
so the language linkage is correct when the header is included by
a C++ compiler.

Similarly #include directives should be outside the extern "C" to
ensure the language-specific default linkage is applied to any
declarations provided by the included header.

See: https://en.cppreference.com/w/cpp/language/language_linkage
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2019-08-13 18:00:31 +02:00
..
CMakeLists.txt drivers: add CC13xx / CC26xx SPI driver 2019-05-27 09:21:19 -04:00
Kconfig drivers: add CC13xx / CC26xx SPI driver 2019-05-27 09:21:19 -04:00
Kconfig.cc13xx_cc26xx drivers: add CC13xx / CC26xx SPI driver 2019-05-27 09:21:19 -04:00
Kconfig.dw kconfig: drivers: spi: Remove duplicated dependencies 2019-03-09 09:54:29 -05:00
Kconfig.mcux_dspi drivers/spi: Always selecet HAS_DTS_SPI once SPI is enabled 2018-11-16 14:02:00 -05:00
Kconfig.mcux_lpspi drivers/spi: Always selecet HAS_DTS_SPI once SPI is enabled 2018-11-16 14:02:00 -05:00
Kconfig.nrfx drivers: spi: nrfx: allow enabling DMA with the nRF52832 despite PAN 58 2019-04-28 13:29:46 -04:00
Kconfig.sam soc: sam0: Enable generic peripheral selection 2019-04-19 14:37:17 -05:00
Kconfig.sam0 drivers: spi: sam0: Implement DMA async API 2019-05-01 10:27:42 -04:00
Kconfig.sifive riscv: freedom: rename RISCV32 to RISCV 2019-08-08 00:29:24 -04:00
Kconfig.stm32 drivers: spi: spi_ll_stm32: Add support for STM32MP1x SoC 2019-08-05 13:52:34 -05:00
spi_cc13xx_cc26xx.c cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_context.h cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_dw_regs.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
spi_dw.c boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00
spi_dw.h drivers: rearrange for standard use of extern "C" in private headers 2019-08-13 18:00:31 +02:00
spi_handlers.c cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_intel_regs.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
spi_intel.c cleanup: include/: move misc/__assert.h to sys/__assert.h 2019-06-27 22:55:49 -04:00
spi_intel.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
spi_ll_stm32.c drivers: spi: spi_ll_stm32: Add support for STM32MP1x SoC 2019-08-05 13:52:34 -05:00
spi_ll_stm32.h drivers: spi: spi_ll_stm32: Add support for STM32MP1x SoC 2019-08-05 13:52:34 -05:00
spi_mcux_dspi.c cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_mcux_lpspi.c cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_nrfx_spi.c drivers: nrf: Add power management to nrf SPI driver. 2019-07-15 12:05:19 +02:00
spi_nrfx_spim.c drivers: nrf: Add power management to nrf SPIM driver. 2019-07-15 12:05:19 +02:00
spi_nrfx_spis.c cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_sam0.c cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_sam.c cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00
spi_sifive.c dts: Convert from DT_<COMPAT>_<INSTANCE>_<PROP> to DT_INST... 2019-06-14 08:02:15 -05:00
spi_sifive.h cleanup: include/: move spi.h to drivers/spi.h 2019-06-27 22:55:49 -04:00