Loading...
Searching...
No Matches
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
32extern "C" {
33#endif
34
36void syscalls_init(void);
37
39unsigned int get_free_heap_size(void);
40
42uint32_t system_get_time(void);
43
45uint32_t system_get_time_ms(void);
46
48void *system_secure_memset(void *s, int c, size_t n);
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* SYSCALLS_COMMON_H */
Common helper macros for ESP SoCs.
void syscalls_init(void)
Necessary initializations of system call functions.
void * system_secure_memset(void *s, int c, size_t n)
memset version that the compiler should not be allowed to optimize this
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.