system.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Gunar Schorcht
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
22 #ifndef DOXYGEN
23 
24 #include <stdint.h>
25 #include <stdarg.h>
26 
27 #include "esp_task_wdt.h"
28 #include "sdk/ets.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
39 extern uint8_t system_get_cpu_freq(void);
40 extern void system_update_cpu_freq(uint8_t);
41 extern uint32_t system_get_chip_id(void);
42 extern const char* system_get_sdk_version(void);
43 
44 extern void system_deep_sleep(uint32_t time_in_us);
45 extern void system_restart(void);
46 
47 #define system_wdt_init esp_task_wdt_init
48 #define system_wdt_feed esp_task_wdt_reset
49 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* DOXYGEN */
ESP8266 ETS ROM function prototypes.