rusefi-1/firmware/os_access.h

36 lines
641 B
C
Raw Normal View History

/*
* 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
2020-01-07 21:02:40 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
*/
2020-04-01 18:32:21 -07:00
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#include <ch.h>
#include <hal.h>
#include "chprintf.h"
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include "io_pins.h"
/*
* Stack debugging
* See also getMaxUsedStack()
*/
EXTERNC int getRemainingStack(thread_t *otp);
int CountFreeStackSpace(const void* wabase);
void validateStack(const char*msg, obd_code_e code, int stackUnusedSize);
#define HAS_OS_ACCESS