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
|
#endif // HW_HELLEN
|
||||||
|
|
||||||
// These may not be defined due to the HAL, but they're necessary for the compiler to do it's magic
|
// 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;
|
class UARTDriver;
|
||||||
|
#endif // !HAL_USE_UART
|
||||||
class UartDmaTsChannel;
|
class UartDmaTsChannel;
|
||||||
class UartTsChannel;
|
class UartTsChannel;
|
||||||
class SerialTsChannel;
|
class SerialTsChannel;
|
||||||
|
|
|
@ -158,7 +158,7 @@ int main(int argc, char** argv) {
|
||||||
printf("Running rusEFI simulator for %d seconds, then exiting.\n\n", timeoutSeconds);
|
printf("Running rusEFI simulator for %d seconds, then exiting.\n\n", timeoutSeconds);
|
||||||
|
|
||||||
chSysLock();
|
chSysLock();
|
||||||
chVTSetI(&exitTimer, MY_US2ST(timeoutSeconds * 1e6), [](void*) { exit(0); }, 0);
|
chVTSetI(&exitTimer, MY_US2ST(timeoutSeconds * 1e6), [](void*) { exit(0); }, nullptr);
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,8 @@ namespace chibios_rt {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct virtual_timer_t;
|
||||||
|
|
||||||
#define UNIT_TEST_BUSY_WAIT_CALLBACK() { timeNowUs++; }
|
#define UNIT_TEST_BUSY_WAIT_CALLBACK() { timeNowUs++; }
|
||||||
|
|
||||||
#define chsnprintf snprintf
|
#define chsnprintf snprintf
|
||||||
|
|
Loading…
Reference in New Issue