/* * Copyright (C) 2019 Gunar Schorcht * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup cpu_esp8266 * @{ * * @file * @brief Implementation of required system calls * * @author Gunar Schorcht * * @} */ #ifndef SYSCALLS_H #define SYSCALLS_H #include #include #include #include #ifdef __cplusplus extern "C" { #endif /** Necessary initializations of system call functions */ extern void syscalls_init (void); /** System standard printf function */ extern int printf(const char* format, ...); /** Determine free heap size */ unsigned int get_free_heap_size (void); /** System standard puts function */ extern int puts(const char * str); /** Determine free heap size */ extern unsigned int get_free_heap_size (void); /** Time since boot in us (32bit version) */ uint32_t system_get_time (void); /** Time since boot in ms (32bit version) */ uint32_t system_get_time_ms (void); /** memset version that the compiler should not be allowed to optimize this */ void *system_secure_memset(void *s, int c, size_t n); #ifdef __cplusplus } #endif #endif /* SYSCALLS_H */