rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
bootloader
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
12
void
chDbgPanic3
(
const
char
*
/*msg*/
,
const
char
*
/*file*/
,
int
/*line*/
) {
13
}
14
15
extern
"C"
{
16
void
logHardFault
(uint32_t type, uintptr_t faultAddress,
void
* sp,
struct
port_extctx* ctx, uint32_t csfr) { }
17
}
18
19
void
setPinConfigurationOverrides
() { }
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
24
void
irqEnterHook
() {}
25
void
irqExitHook
() {}
26
void
contextSwitchHook
() {}
27
void
threadInitHook
(
void
*) {}
28
void
onLockHook
() {}
29
void
onUnlockHook
() {}
30
//#endif /* ENABLE_PERF_TRACE */
irqExitHook
void irqExitHook()
Definition
bootloader_stubs.cpp:25
threadInitHook
void threadInitHook(void *)
Definition
bootloader_stubs.cpp:27
logHardFault
void logHardFault(uint32_t type, uintptr_t faultAddress, void *sp, struct port_extctx *ctx, uint32_t csfr)
Definition
bootloader_stubs.cpp:16
chDbgPanic3
void chDbgPanic3(const char *, const char *, int)
Definition
bootloader_stubs.cpp:12
irqEnterHook
void irqEnterHook()
Definition
bootloader_stubs.cpp:24
onLockHook
void onLockHook()
Definition
bootloader_stubs.cpp:28
contextSwitchHook
void contextSwitchHook()
Definition
bootloader_stubs.cpp:26
onUnlockHook
void onUnlockHook()
Definition
bootloader_stubs.cpp:29
setPinConfigurationOverrides
void setPinConfigurationOverrides()
Definition
bootloader_stubs.cpp:19
hardware.h
pch.h
Generated on Sat Sep 27 2025 00:10:04 for rusEFI by
1.9.8