cherry picks from #385

This commit is contained in:
Matthew Kennedy 2024-03-13 00:56:53 -07:00
parent f9a4ca85a1
commit d8898a4665
3 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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();
}

View File

@ -72,6 +72,8 @@ namespace chibios_rt {
}
#endif
struct virtual_timer_t;
#define UNIT_TEST_BUSY_WAIT_CALLBACK() { timeNowUs++; }
#define chsnprintf snprintf