Add extern C header guards to some files Closes IDFGH-2025 and IDFGH-2093 See merge request espressif/esp-idf!6611
@@ -15,6 +15,10 @@
#pragma once
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @file esp32/clk.h
*
@@ -85,3 +89,7 @@ int esp_clk_xtal_freq(void);
* @return Value or RTC counter, expressed in microseconds
*/
uint64_t esp_clk_rtc_time(void);
+}
@@ -13,6 +13,11 @@
// limitations under the License.
+#include <stdint.h>
* @file esp_clk.h
@@ -73,3 +78,7 @@ int esp_clk_apb_freq(void);
@@ -17,6 +17,10 @@
#include "hal/spi_types.h"
#include "esp_flash.h"
/// 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);