syscalls.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 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_H
22 #define SYSCALLS_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 uint64_t system_get_time_64 (void);
46 
48 uint32_t system_get_time_ms (void);
49 
51 void system_wdt_init (void);
52 
54 void system_wdt_start (void);
55 
57 void system_wdt_stop (void);
58 
60 void system_wdt_feed (void);
61 
63 void *system_secure_memset(void *s, int c, size_t n);
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* SYSCALLS_H */
uint32_t system_get_time(void)
Time since boot in us (32bit version)
unsigned int get_free_heap_size(void)
Determine free heap size.
Common helper macros.
void system_wdt_start(void)
start the initialized system watchdog timer
void * system_secure_memset(void *s, int c, size_t n)
memset version that the compiler should not be allowed to optimize this
void system_wdt_feed(void)
reset the system watchdog timer
uint32_t system_get_time_ms(void)
Time since boot in ms (32bit version)
void system_wdt_stop(void)
start the running system watchdog timer
stdlib.h wrapper for MSP430
void system_wdt_init(void)
initialize system watchdog timer and start it
uint64_t system_get_time_64(void)
Time since boot in us (64bit version)
void syscalls_init(void)
Necessary initializations of system call functions.