syscalls_common.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 
20 #include <stdarg.h>
21 #include <stdbool.h>
22 #include <stdint.h>
23 #include <stdlib.h>
24 
25 #include "esp_common.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
32 void syscalls_init(void);
33 
35 unsigned int get_free_heap_size(void);
36 
38 uint32_t system_get_time(void);
39 
41 uint32_t system_get_time_ms(void);
42 
44 void *system_secure_memset(void *s, int c, size_t n);
45 
46 #ifdef __cplusplus
47 }
48 #endif
Common helper macros for ESP SoCs.
void * system_secure_memset(void *s, int c, size_t n)
memset version that the compiler should not be allowed to optimize this
void syscalls_init(void)
Necessary initializations of system call functions.
uint32_t system_get_time_ms(void)
Time since boot in ms (32bit version)
uint32_t system_get_time(void)
Time since boot in us (32bit version)
unsigned int get_free_heap_size(void)
Determine free heap size.