system.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Gunar Schorcht
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #ifndef DOXYGEN
20 
21 #include <stdint.h>
22 #include <stdarg.h>
23 
24 #include "esp_task_wdt.h"
25 #include "sdk/ets.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
36 extern uint8_t system_get_cpu_freq(void);
37 extern void system_update_cpu_freq(uint8_t);
38 extern uint32_t system_get_chip_id(void);
39 extern const char* system_get_sdk_version(void);
40 
41 extern void system_deep_sleep(uint32_t time_in_us);
42 extern void system_restart(void);
43 
44 #define system_wdt_init esp_task_wdt_init
45 #define system_wdt_feed esp_task_wdt_reset
46 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* DOXYGEN */
ESP8266 ETS ROM function prototypes.