rusEFI
The most advanced open source ECU
rusefi_stubs.cpp
Go to the documentation of this file.
1 #include "pch.h"
2 
3 #include "hardware.h"
4 
5 /*
6  * We need only a small portion of code from rusEFI codebase in the bootloader.
7  * Mostly it's tunerstudio_io.cpp. And other files like efi_gpio.cpp etc. needed only to make it work.
8  * And stubs needed just to settle down compiler errors.
9  * The whole idea of bootloader is to make it as small as possible. And reasonably independent.
10 */
11 
12 void chDbgPanic3(const char* /*msg*/, const char* /*file*/, int /*line*/) {
13 }
14 
15 void logHardFault(uint32_t type, uintptr_t faultAddress, struct port_extctx* ctx, uint32_t csfr) { }
16 
18 
19 // this is supposed to be taken from chconf_common.h but it does not work? I am not sure why :(
20 // TODO: make this be defined by chconf_common.h?
21 //#if ! ENABLE_PERF_TRACE
22 void irqEnterHook() {}
23 void irqExitHook() {}
25 void threadInitHook(void*) {}
26 void onLockHook() {}
27 void onUnlockHook() {}
28 //#endif /* ENABLE_PERF_TRACE */
void irqExitHook()
void threadInitHook(void *)
void logHardFault(uint32_t type, uintptr_t faultAddress, struct port_extctx *ctx, uint32_t csfr)
void chDbgPanic3(const char *, const char *, int)
void irqEnterHook()
void onLockHook()
void contextSwitchHook()
void onUnlockHook()
void setPinConfigurationOverrides()