OVMS3-idf/examples/build_system/cmake/idf_as_lib/stubs/esp32/esp_system.h
2019-05-14 18:01:14 +08:00

15 lines
455 B
C

#pragma once
#include <stdint.h>
#define CHIP_FEATURE_EMB_FLASH (1UL << 0)
#define CHIP_FEATURE_BT (1UL << 4)
#define CHIP_FEATURE_BLE (1UL << 5)
typedef struct {
uint32_t features; //!< bit mask of CHIP_FEATURE_x feature flags
uint8_t cores; //!< number of CPU cores
uint8_t revision; //!< chip revision number
} esp_chip_info_t;
void esp_restart(void);
void esp_chip_info(esp_chip_info_t* out_info);