15 lines
No EOL
455 B
C
15 lines
No EOL
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); |