From 5f0d25724041fa522765472b5bb9bcecab2a80e7 Mon Sep 17 00:00:00 2001 From: Gabriel Durante Date: Tue, 29 Oct 2019 07:25:41 -0300 Subject: [PATCH] Added Cpp compatibility for components/spi_flash/include/esp_flash_spi_init.h Merges https://github.com/espressif/esp-idf/pull/4260 --- components/spi_flash/include/esp_flash_spi_init.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/spi_flash/include/esp_flash_spi_init.h b/components/spi_flash/include/esp_flash_spi_init.h index f7e9816183..0e0e72d832 100644 --- a/components/spi_flash/include/esp_flash_spi_init.h +++ b/components/spi_flash/include/esp_flash_spi_init.h @@ -17,6 +17,10 @@ #include "hal/spi_types.h" #include "esp_flash.h" +#ifdef __cplusplus +extern "C" { +#endif + /// Configurations for the SPI Flash to init typedef struct { spi_host_device_t host_id; ///< Bus to use @@ -53,3 +57,6 @@ esp_err_t spi_bus_add_flash_device(esp_flash_t **out_chip, const esp_flash_spi_d */ esp_err_t spi_bus_remove_flash_device(esp_flash_t *chip); +#ifdef __cplusplus +} +#endif