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.mcux_dspi
Kconfig.mcux_lpspi
Kconfig.nrfx
Kconfig.sam
Kconfig.sam0
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
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
spi_intel.c cleanup: include/: move misc/__assert.h to sys/__assert.h 2019-06-27 22:55:49 -04:00
spi_intel.h
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_sam.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_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