Skip to content

Commit

Permalink
#374 remove Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanManuelCruz committed Jan 18, 2016
1 parent 2716855 commit 02835c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/hisio/src/cortexM4/lpc43xx/lpc4337/Dio_Arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ extern IO_ErrorType Dio_InitSync_Arch(void * address)
}
else if(Dio_Config.Pins[i].Flags & DIO_CONFIG_PIN_DIRECTION_OUTPUT_INIT_LOW)
{
Chip_SCU_PinMux(Dio_Config.Pins[i].Port, Dio_Config.Pins[i].Pin, SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS, Dio_Config.Pins[i].GPIO_Func);
Chip_SCU_PinMux(Dio_Config.Pins[i].Port, Dio_Config.Pins[i].Pin, SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS, Dio_Config.Pins[i].GPIO_Func);
Chip_GPIO_SetDir(LPC_GPIO_PORT, Dio_Config.Pins[i].GPIO_Port, (1 << Dio_Config.Pins[i].GPIO_Pin), 1); /* Set it as output */
Chip_GPIO_SetPinState(LPC_GPIO_PORT, Dio_Config.Pins[i].GPIO_Port, Dio_Config.Pins[i].GPIO_Pin, 0); /* Set it as low */
}
else if(Dio_Config.Pins[i].Flags & DIO_CONFIG_PIN_DIRECTION_OUTPUT_INIT_HIGH)
{
Chip_SCU_PinMux(Dio_Config.Pins[i].Port, Dio_Config.Pins[i].Pin, SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS, Dio_Config.Pins[i].GPIO_Func);
Chip_SCU_PinMux(Dio_Config.Pins[i].Port, Dio_Config.Pins[i].Pin, SCU_MODE_INACT | SCU_MODE_INBUFF_EN | SCU_MODE_ZIF_DIS, Dio_Config.Pins[i].GPIO_Func);
Chip_GPIO_SetDir(LPC_GPIO_PORT, Dio_Config.Pins[i].GPIO_Port, (1 << Dio_Config.Pins[i].GPIO_Pin), 1); /* Set it as output */
Chip_GPIO_SetPinState(LPC_GPIO_PORT, Dio_Config.Pins[i].GPIO_Port, Dio_Config.Pins[i].GPIO_Pin, 1); /* Set it as high */
}
Expand All @@ -109,7 +109,6 @@ extern IO_ValueType Dio_GetSync_Arch(IO_ChannelType channel)
{
IO_ValueType value;
#if (ERROR_CHECKING_TYPE == ERROR_CHECKING_EXTENDED)
// if(DIO_PINS_COUNT > channel && (Dio_Config.Pins[channel].Flags & DIO_CONFIG_PIN_DIRECTION_INPUT))
if(DIO_PINS_COUNT > channel)
#endif
{
Expand Down

0 comments on commit 02835c0

Please sign in to comment.