mirror of https://github.com/FOME-Tech/fome-fw.git
cherry picks from #385
This commit is contained in:
parent
f9a4ca85a1
commit
d8898a4665
|
@ -15,7 +15,9 @@
|
|||
#endif // HW_HELLEN
|
||||
|
||||
// These may not be defined due to the HAL, but they're necessary for the compiler to do it's magic
|
||||
#if !HAL_USE_UART
|
||||
class UARTDriver;
|
||||
#endif // !HAL_USE_UART
|
||||
class UartDmaTsChannel;
|
||||
class UartTsChannel;
|
||||
class SerialTsChannel;
|
||||
|
|
|
@ -158,7 +158,7 @@ int main(int argc, char** argv) {
|
|||
printf("Running rusEFI simulator for %d seconds, then exiting.\n\n", timeoutSeconds);
|
||||
|
||||
chSysLock();
|
||||
chVTSetI(&exitTimer, MY_US2ST(timeoutSeconds * 1e6), [](void*) { exit(0); }, 0);
|
||||
chVTSetI(&exitTimer, MY_US2ST(timeoutSeconds * 1e6), [](void*) { exit(0); }, nullptr);
|
||||
chSysUnlock();
|
||||
}
|
||||
|
||||
|
|
|
@ -72,6 +72,8 @@ namespace chibios_rt {
|
|||
}
|
||||
#endif
|
||||
|
||||
struct virtual_timer_t;
|
||||
|
||||
#define UNIT_TEST_BUSY_WAIT_CALLBACK() { timeNowUs++; }
|
||||
|
||||
#define chsnprintf snprintf
|
||||
|
|
Loading…
Reference in New Issue