mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 17:47:04 +08:00
feat(startup): add fast boot and fast restart function
This commit is contained in:
@ -50,6 +50,7 @@ typedef enum {
|
||||
ESP_RST_DEEPSLEEP, //!< Reset after exiting deep sleep mode
|
||||
ESP_RST_BROWNOUT, //!< Brownout reset (software or hardware)
|
||||
ESP_RST_SDIO, //!< Reset over SDIO
|
||||
ESP_RST_FAST_SW, //!< Fast reboot
|
||||
} esp_reset_reason_t;
|
||||
|
||||
/**
|
||||
@ -187,6 +188,13 @@ uint32_t esp_random(void);
|
||||
*/
|
||||
void esp_fill_random(void *buf, size_t len);
|
||||
|
||||
/**
|
||||
* @brief Initialize MAC address
|
||||
*
|
||||
* @return 0 if sucess or others failed
|
||||
*/
|
||||
esp_err_t esp_mac_init(void);
|
||||
|
||||
typedef enum {
|
||||
FLASH_SIZE_4M_MAP_256_256 = 0, /**< Flash size : 4Mbits. Map : 256KBytes + 256KBytes */
|
||||
FLASH_SIZE_2M, /**< Flash size : 2Mbits. Map : 256KBytes */
|
||||
|
Reference in New Issue
Block a user