rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
bootloader_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 codebase in the bootloader.
7 * Mostly it's efi_gpio.cpp, flash_main.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
12void chDbgPanic3(const char* /*msg*/, const char* /*file*/, int /*line*/) {
13}
14
15extern "C" {
16void logHardFault(uint32_t type, uintptr_t faultAddress, void* sp, struct port_extctx* ctx, uint32_t csfr) { }
17}
18
20
21// this is supposed to be taken from chconf_common.h but it does not work? I am not sure why :(
22// TODO: make this be defined by chconf_common.h?
23//#if ! ENABLE_PERF_TRACE
24void irqEnterHook() {}
25void irqExitHook() {}
27void threadInitHook(void*) {}
28void onLockHook() {}
29void onUnlockHook() {}
30//#endif /* ENABLE_PERF_TRACE */
void irqExitHook()
void threadInitHook(void *)
void logHardFault(uint32_t type, uintptr_t faultAddress, void *sp, struct port_extctx *ctx, uint32_t csfr)
void chDbgPanic3(const char *, const char *, int)
void irqEnterHook()
void onLockHook()
void contextSwitchHook()
void onUnlockHook()
void setPinConfigurationOverrides()