[hal] Add HAL_Shutdown and simulation shutdown callbacks

This is useful for clean shutdown of simulation extensions.
This commit is contained in:
Peter Johnson
2020-09-04 08:59:26 -07:00
parent 0365557b25
commit f1b1bdb121
8 changed files with 65 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
#include <chrono>
#include <thread>
#include <hal/HALBase.h>
#include <hal/Main.h>
#include <wpi/condition_variable.h>
#include <wpi/mutex.h>
@@ -89,6 +90,8 @@ int StartRobot() {
impl::RunRobot<Robot>(m, &robot);
}
HAL_Shutdown();
return 0;
}