1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00
RIOT/cpu/esp_common/include/syscalls_common.h
2025-09-12 11:50:26 +02:00

49 lines
927 B
C

/*
* SPDX-FileCopyrightText: 2019 Gunar Schorcht
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup cpu_esp_common
* @{
*
* @file
* @brief Implementation of required system calls for ESP SoCs
*
* @author Gunar Schorcht <gunar@schorcht.net>
*
* @}
*/
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "esp_common.h"
#ifdef __cplusplus
extern "C" {
#endif
/** Necessary initializations of system call functions */
void syscalls_init(void);
/** Determine free heap size */
unsigned int get_free_heap_size(void);
/** Time since boot in us (32bit version) */
uint32_t system_get_time(void);
/** Time since boot in ms (32bit version) */
uint32_t system_get_time_ms(void);
/** memset version that the compiler should not be allowed to optimize this */
void *system_secure_memset(void *s, int c, size_t n);
#ifdef __cplusplus
}
#endif