Loading...
Searching...
No Matches
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
21
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
31extern "C" {
32#endif
33
39extern uint8_t system_get_cpu_freq(void);
40extern void system_update_cpu_freq(uint8_t);
41extern uint32_t system_get_chip_id(void);
42extern const char* system_get_sdk_version(void);
43
44extern void system_deep_sleep(uint32_t time_in_us);
45extern void system_restart(void);
46
47#define system_wdt_init esp_task_wdt_init
48#define system_wdt_feed esp_task_wdt_reset
49
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif /* DOXYGEN */
ESP8266 ETS ROM function prototypes.