1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 18:13:49 +01:00
RIOT/cpu/esp8266/sdk/system.h
2025-09-12 11:50:26 +02:00

54 lines
924 B
C

/*
* SPDX-FileCopyrightText: 2019 Gunar Schorcht
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup cpu_esp8266_sdk
* @{
*
* @file
* @brief ESP8266 user defined SDK function prototypes
*
* @author Gunar Schorcht <gunar@schorcht.net>
* @}
*/
#ifndef DOXYGEN
#include <stdint.h>
#include <stdarg.h>
#include "esp_task_wdt.h"
#include "sdk/ets.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Functions for NONOS SDK compatibility
*
* @{
*/
extern uint8_t system_get_cpu_freq(void);
extern void system_update_cpu_freq(uint8_t);
extern uint32_t system_get_chip_id(void);
extern const char* system_get_sdk_version(void);
extern void system_deep_sleep(uint32_t time_in_us);
extern void system_restart(void);
#define system_wdt_init esp_task_wdt_init
#define system_wdt_feed esp_task_wdt_reset
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* DOXYGEN */