Fixes CPP lint errors added to HAL. (#173)

This commit is contained in:
Thad House
2016-07-13 20:16:45 -07:00
committed by Peter Johnson
parent 5305087162
commit 05c00430b3
3 changed files with 5 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ HAL_DigitalHandle HAL_InitializePWMPort(HAL_PortHandle port_handle,
port->pin = origPin;
int32_t bitToSet = 1 << remapMXPPWMChannel(port->pin);
unsigned short specialFunctions =
uint16_t specialFunctions =
digitalSystem->readEnableMXPSpecialFunction(status);
digitalSystem->writeEnableMXPSpecialFunction(specialFunctions | bitToSet,
status);
@@ -91,7 +91,7 @@ void HAL_FreePWMPort(HAL_DigitalHandle pwm_port_handle, int32_t* status) {
if (port->pin > tPWM::kNumHdrRegisters - 1) {
int32_t bitToUnset = 1 << remapMXPPWMChannel(port->pin);
unsigned short specialFunctions =
uint16_t specialFunctions =
digitalSystem->readEnableMXPSpecialFunction(status);
digitalSystem->writeEnableMXPSpecialFunction(specialFunctions & ~bitToUnset,
status);