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