mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Version 4 Image
Updated the HAL library to work with the new version 3 headers from NI. There were multiple changes in this verison: more PWM generators were added, so the functions for setting PWM signals have been updated. UserWatchdog has been removed, and Watchdog has been removed from WPILib to accomodate for this. Digital selection has been consolidated to one function in the NI headers, so this has been updated in the HAL. New SPI and I2C libraries have been added, but need to be implemented in the HAL before they will work.
This commit is contained in:
committed by
Brad Miller
parent
b1ef116104
commit
4546abc8c5
@@ -6,6 +6,8 @@
|
||||
#include "ChipObject.h"
|
||||
#include "NetworkCommunication/FRCComm.h"
|
||||
#include "NetworkCommunication/UsageReporting.h"
|
||||
#include "NetworkCommunication/LoadOut.h"
|
||||
#include "ChipObject/nInterfaceGlobals.h"
|
||||
|
||||
// XXX: What to do with solenoids? const uint32_t solenoid_kNumDO7_0Elements = tSolenoid::kNumDO7_0Elements;
|
||||
const uint32_t dio_kNumSystems = tDIO::kNumSystems;
|
||||
@@ -149,7 +151,7 @@ int HALSetStatusData(float battery, uint8_t dsDigitalOut, uint8_t updateNumber,
|
||||
|
||||
void HALNetworkCommunicationReserve()
|
||||
{
|
||||
FRC_NetworkCommunication_Reserve();
|
||||
nFPGA::nRoboRIO_FPGANamespace::g_currentTargetClass = nLoadOut::kTargetClass_RoboRIO;
|
||||
}
|
||||
|
||||
void HALNetworkCommunicationObserveUserProgramStarting(void)
|
||||
@@ -179,7 +181,8 @@ void HALNetworkCommunicationObserveUserProgramTest(void)
|
||||
|
||||
uint32_t HALReport(uint8_t resource, uint8_t instanceNumber, uint8_t context, const char *feature)
|
||||
{
|
||||
return FRC_NetworkCommunication_nUsageReporting_report( resource, instanceNumber, context, feature);
|
||||
//return FRC_NetworkCommunication_nUsageReporting_report( resource, instanceNumber, context, feature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user