Skip to content

Commit

Permalink
Can't use spiram.h functions when building with cpp.
Browse files Browse the repository at this point in the history
Merges #6658
  • Loading branch information
mongonta0716 authored and igrr committed May 5, 2021
1 parent 3dbafb9 commit 897496d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/esp32/include/esp32/spiram.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#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 */
Expand Down Expand Up @@ -114,3 +118,7 @@ bool esp_spiram_is_initialized(void);


#endif

#ifdef __cplusplus
}
#endif

0 comments on commit 897496d

Please sign in to comment.