Conversation
I2C pins were already being initialized from I2C module so removed the redundant initialization. Sensor pin initialization is now moved to the sensor interface initialization function Board_SensorIfInit().
As discussed, this file is provided by Pinecone and used as it is so can't modify it.
Yes ideally this macro should be defined in Driver_GPIO.h. However, as discussed, this file is provided by Pinecone and we are not making any change in this file. Therefore retaining the definition in hw_setup_xpresso_lpc54102.h.
Agreed. Retaining DMA initialization in hw_setup.c and moving pinmux initialization to individual modules.
Agreed. Moved under correct sections
Retaining SystemGPIOConfig() which is called from main(). It initializes DMA after calling GPIO Init. |
Moved pinmux initialization to respective module function Moved GPIO macros and types under correct heading in the code Closed all review comments from pull request #6 Signed-off-by: Pankaj Goenka <pgoenka@audience.com>
Modified the SH-Xpresso-LPC54102 project to include HAL files Signed-off-by: Pankaj Goenka <pgoenka@audience.com>
Moved pinmux initialization to respective module function Moved GPIO macros and types under correct heading in the code Closed all review comments from pull request #6 Signed-off-by: Pankaj Goenka <pgoenka@audience.com>
Moved Driver_GPIO.c to embedded/Drivers/LPC5410x-CM4/CMSIS Removed private structure GPIO_T Removed GPIO_AINConfig() Added Chip_PININT_Init() to GPIO Init Removed calls to Chip_PININT_ClearIntStatus & Chip_INMUX_PinIntSel from OSP_GPIO_PowerControl Added comment describing how port and pin number are encoded Using Chip_GPIO_WriteDirBit, Chip_GPIO_ReadDirBit functions rather than directly modifying registers Made the description and usage of 'pin' argument in OSP_GPIO_SetTrigger in line with the other GPIO HAL APIs Asserting that the value of 'val' received in OSP_GPIO_WritePin is <=1 Returning ARM_DRIVER_ERROR_UNSUPPORTED from OSP_GPIO_SetHandler Signed-off-by: Pankaj Goenka <pgoenka@audience.com>
* Made SetTrigger's pin parameters inline with parameters of other APIs * Closed coding guidelines related comments * Added calls to Driver_GPIO.SetTrigger Signed-off-by: Pankaj Goenka <pgoenka@audience.com>
cb0a2e7 to
1be9774
Compare
Added CMSIS HAL for GPIO Driver
Modified the SH-Xpresso-LPC54102 project to include HAL files
Signed-off-by: Pankaj Goenka pgoenka@audience.com