syscalls.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_H
22 #define SYSCALLS_H
23 
24 #include <stdarg.h>
25 #include <stdbool.h>
26 #include <stdint.h>
27 #include <stdlib.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
34 extern void syscalls_init (void);
35 
37 extern int printf(const char* format, ...);
38 
40 unsigned int get_free_heap_size (void);
41 
43 extern int puts(const char * str);
44 
46 extern unsigned int get_free_heap_size (void);
47 
49 uint32_t system_get_time (void);
50 
52 uint32_t system_get_time_ms (void);
53 
55 void *system_secure_memset(void *s, int c, size_t n);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* SYSCALLS_H */
int printf(const char *format,...)
System standard printf function.
uint32_t system_get_time(void)
Time since boot in us (32bit version)
int puts(const char *str)
System standard puts function.
unsigned int get_free_heap_size(void)
Determine free heap size.
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)
stdlib.h wrapper for MSP430
void syscalls_init(void)
Necessary initializations of system call functions.