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
9#pragma once
10
22
23#include <stdarg.h>
24#include <stdbool.h>
25#include <stdint.h>
26#include <stdlib.h>
27
28#include "esp_common.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
35void syscalls_init(void);
36
38unsigned int get_free_heap_size(void);
39
41uint32_t system_get_time(void);
42
44uint32_t system_get_time_ms(void);
45
47void *system_secure_memset(void *s, int c, size_t n);
48
49#ifdef __cplusplus
50}
51#endif
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.