Loading...
Searching...
No Matches
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
18
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
28extern "C" {
29#endif
30
36extern uint8_t system_get_cpu_freq(void);
37extern void system_update_cpu_freq(uint8_t);
38extern uint32_t system_get_chip_id(void);
39extern const char* system_get_sdk_version(void);
40
41extern void system_deep_sleep(uint32_t time_in_us);
42extern void system_restart(void);
43
44#define system_wdt_init esp_task_wdt_init
45#define system_wdt_feed esp_task_wdt_reset
46
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* DOXYGEN */
ESP8266 ETS ROM function prototypes.