diff --git a/components/esp32/include/esp32/spiram.h b/components/esp32/include/esp32/spiram.h index ccbca2c0b8d..bd48e8db1d0 100644 --- a/components/esp32/include/esp32/spiram.h +++ b/components/esp32/include/esp32/spiram.h @@ -21,6 +21,10 @@ #include #include "esp_err.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { ESP_SPIRAM_SIZE_16MBITS = 0, /*!< SPI RAM size is 16 MBits */ ESP_SPIRAM_SIZE_32MBITS = 1, /*!< SPI RAM size is 32 MBits */ @@ -114,3 +118,7 @@ bool esp_spiram_is_initialized(void); #endif + +#ifdef __cplusplus +} +#endif