Add halsim unit tests (#783)

Also adds function that can register all the callbacks at once.
Since all of the callbacks issue a string identifier, it makes it
possible and easy to have one function callback, and differentiate the
path to take based on the string.  Hooking up all the callbacks at once
makes it easier for the simulator developer to know when something was
added to wpilib rather than looking at the commits.
This commit is contained in:
PJ Reiniger
2017-12-08 01:42:20 -05:00
committed by Peter Johnson
parent 4e3af0756d
commit 33a08d5b34
11 changed files with 614 additions and 0 deletions

View File

@@ -86,6 +86,10 @@ void HALSIM_RegisterDriverStationAllCallbacks(HAL_NotifyCallback callback,
void HALSIM_NotifyDriverStationNewData(void);
void HALSIM_RegisterDriverStationAllCallbacks(HAL_NotifyCallback callback,
void* param,
HAL_Bool initialNotify);
#ifdef __cplusplus
} // extern "C"
#endif