/* * os_access.h * * OS access is not part of global.h in order to help separate synchronous code from asynchronous * * Created on: Jul 3, 2019 * @author Andrey Belomutskiy, (c) 2012-2020 */ #pragma once #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include #include #include "chprintf.h" #ifdef __cplusplus } #endif /* __cplusplus */ #include "io_pins.h" /* * Stack debugging * See also getMaxUsedStack() */ EXTERNC int getRemainingStack(thread_t *otp); #define HAS_OS_ACCESS