Can't use spiram.h functions when building with cpp.
Merges
#include <stdbool.h>
#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
