rusefi/firmware/bootloader/src/rusefi_stubs.cpp

39 lines
1.2 KiB
C++
Raw Normal View History

2018-09-16 19:25:17 -07:00
#include "global.h"
2017-05-30 15:38:51 -07:00
#include "hardware.h"
2019-03-29 06:11:13 -07:00
#include "efi_gpio.h"
2017-05-30 15:38:51 -07:00
2017-06-04 12:01:40 -07:00
/*
* We need only a small portion of code from rusEFI codebase in the bootloader.
2019-03-29 06:11:13 -07:00
* Mostly it's tunerstudio_io.cpp. And other files like efi_gpio.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.
* The whole idea of bootloader is to make it as small as possible. And reasonably independent.
*/
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
}
namespace priv
{
void efiPrintfInternal(const char* /*fmt*/, ...) {
}
2017-05-30 15:38:51 -07:00
}
2021-03-15 03:50:41 -07:00
void firmwareError(obd_code_e /*code*/, const char* /*fmt*/, ...) {
2017-05-30 15:38:51 -07:00
}
2021-03-15 03:45:06 -07:00
Logging::Logging(char const* /*name*/, char* /*buffer*/, int /*bufferSize*/) {
2017-05-30 15:38:51 -07:00
}
LoggingWithStorage::LoggingWithStorage(const char *name) : Logging(name, DEFAULT_BUFFER, sizeof(DEFAULT_BUFFER)) {
}
// 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() {}
void threadInitHook(void*) {}
void onLockHook() {}
void onUnlockHook() {}
2019-11-21 14:12:46 -08:00
//#endif /* ENABLE_PERF_TRACE */