Working variant of esp_iot_rtos_sdk (files from commit ec75c85f9ef53)
This commit is contained in:
parent
101c8648ea
commit
1ffbc303ff
124 changed files with 19424 additions and 592 deletions
49
include/espressif/esp_system.h
Normal file
49
include/espressif/esp_system.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright (C) 2013 -2014 Espressif System
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __ESP_SYSTEM_H__
|
||||
#define __ESP_SYSTEM_H__
|
||||
|
||||
enum rst_reason {
|
||||
DEFAULT_RST = 0,
|
||||
WDT_RST = 1,
|
||||
EXCEPTION_RST = 2,
|
||||
SOFT_RST = 3
|
||||
};
|
||||
|
||||
struct rst_info{
|
||||
uint32_t reason;
|
||||
uint32_t exccause;
|
||||
uint32_t epc1;
|
||||
uint32_t epc2;
|
||||
uint32_t epc3;
|
||||
uint32_t excvaddr;
|
||||
uint32_t depc;
|
||||
uint32_t rtn_addr;
|
||||
};
|
||||
|
||||
struct rst_info* system_get_rst_info(void);
|
||||
|
||||
const char* system_get_sdk_version(void);
|
||||
|
||||
void system_restore(void);
|
||||
void system_restart(void);
|
||||
void system_deep_sleep(uint32_t time_in_us);
|
||||
|
||||
uint32_t system_get_time(void);
|
||||
|
||||
void system_print_meminfo(void);
|
||||
uint32_t system_get_free_heap_size(void);
|
||||
uint32_t system_get_chip_id(void);
|
||||
|
||||
uint32_t system_rtc_clock_cali_proc(void);
|
||||
uint32_t system_get_rtc_time(void);
|
||||
|
||||
bool system_rtc_mem_read(uint8_t src, void *dst, uint16_t n);
|
||||
bool system_rtc_mem_write(uint8_t dst, const void *src, uint16_t n);
|
||||
|
||||
void system_uart_swap(void);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue