mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Make the HAL self initialize when ever any initialization function is called (#1012)
This commit is contained in:
committed by
Peter Johnson
parent
59a8e9da57
commit
e21a246a4d
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "HAL/SPI.h"
|
||||
|
||||
#include "HALInitializer.h"
|
||||
#include "MockData/SPIDataInternal.h"
|
||||
|
||||
using namespace hal;
|
||||
@@ -18,6 +19,7 @@ void InitializeSPI() {}
|
||||
} // namespace hal
|
||||
|
||||
void HAL_InitializeSPI(HAL_SPIPort port, int32_t* status) {
|
||||
hal::init::CheckInit();
|
||||
SimSPIData[port].SetInitialized(true);
|
||||
}
|
||||
int32_t HAL_TransactionSPI(HAL_SPIPort port, const uint8_t* dataToSend,
|
||||
|
||||
Reference in New Issue
Block a user