rusefi-1/firmware/bootloader/src/rusefi_stubs.cpp

39 lines
1.1 KiB
C++

#include "pch.h"
#include "hardware.h"
/*
* We need only a small portion of code from rusEFI codebase in the bootloader.
* Mostly it's tunerstudio_io.cpp. And other files like efi_gpio.cpp etc. needed only to make it work.
* 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.
*/
void chDbgPanic3(const char* /*msg*/, const char* /*file*/, int /*line*/) {
}
namespace priv
{
void efiPrintfInternal(const char* /*fmt*/, ...) {
}
}
void firmwareError(obd_code_e /*code*/, const char* /*fmt*/, ...) {
}
Logging::Logging(char const* /*name*/, char* /*buffer*/, int /*bufferSize*/) {
}
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?
//#if ! ENABLE_PERF_TRACE
void irqEnterHook() {}
void irqExitHook() {}
void contextSwitchHook() {}
void threadInitHook(void*) {}
void onLockHook() {}
void onUnlockHook() {}
//#endif /* ENABLE_PERF_TRACE */