2021-07-25 22:05:17 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
2017-05-30 15:38:51 -07:00
|
|
|
#include "hardware.h"
|
|
|
|
|
2017-06-04 12:01:40 -07:00
|
|
|
/*
|
2023-12-28 11:58:22 -08:00
|
|
|
* We need only a small portion of codebase in the bootloader.
|
2023-10-31 18:13:16 -07:00
|
|
|
* Mostly it's efi_gpio.cpp, flash_main.cpp, etc. needed only to make it work.
|
2017-06-04 12:01:40 -07:00
|
|
|
* And stubs needed just to settle down compiler errors.
|
2023-10-31 18:13:16 -07:00
|
|
|
* The whole idea of bootloader is to make it as small as possible and reasonably independent.
|
2017-06-04 12:01:40 -07:00
|
|
|
*/
|
2017-05-30 15:38:51 -07:00
|
|
|
|
2021-03-15 03:45:06 -07:00
|
|
|
void chDbgPanic3(const char* /*msg*/, const char* /*file*/, int /*line*/) {
|
2017-05-30 15:38:51 -07:00
|
|
|
}
|
|
|
|
|
2023-12-29 11:38:52 -08:00
|
|
|
extern "C" {
|
2023-12-26 12:31:31 -08:00
|
|
|
void logHardFault(uint32_t type, uintptr_t faultAddress, struct port_extctx* ctx, uint32_t csfr) { }
|
2023-12-29 11:38:52 -08:00
|
|
|
}
|
2017-05-30 15:38:51 -07:00
|
|
|
|
2023-08-25 20:07:14 -07:00
|
|
|
void setPinConfigurationOverrides() { }
|
|
|
|
|
2019-11-19 17:56:35 -08:00
|
|
|
// this is supposed to be taken from chconf_common.h but it does not work? I am not sure why :(
|
|
|
|
// TODO: make this be defined by chconf_common.h?
|
2019-11-21 14:12:46 -08:00
|
|
|
//#if ! ENABLE_PERF_TRACE
|
|
|
|
void irqEnterHook() {}
|
|
|
|
void irqExitHook() {}
|
|
|
|
void contextSwitchHook() {}
|
2020-04-29 07:53:35 -07:00
|
|
|
void threadInitHook(void*) {}
|
2020-07-10 20:27:27 -07:00
|
|
|
void onLockHook() {}
|
|
|
|
void onUnlockHook() {}
|
2023-12-26 12:31:31 -08:00
|
|
|
//#endif /* ENABLE_PERF_TRACE */
|