Skip to content

Commit 11aa107

Browse files
committed
fix: array name shadowing some HAL declaration
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 234c71f commit 11aa107

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/SrcWrapper/inc/PortNames.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
extern "C" {
3737
#endif
3838

39-
extern GPIO_TypeDef *GPIOPort[];
39+
extern GPIO_TypeDef *GPIOPort_list[];
4040

4141
typedef enum {
4242
FirstPort = 0x00,
@@ -79,7 +79,7 @@ typedef enum {
7979
#define MAX_NB_PORT (LastPort-FirstPort+1)
8080

8181
/* Return GPIO base address */
82-
#define get_GPIO_Port(p) ((p < MAX_NB_PORT) ? GPIOPort[p] : (GPIO_TypeDef *)NULL)
82+
#define get_GPIO_Port(p) ((p < MAX_NB_PORT) ? GPIOPort_list[p] : (GPIO_TypeDef *)NULL)
8383
/* Enable GPIO clock and return GPIO base address */
8484
GPIO_TypeDef *set_GPIO_Port_Clock(uint32_t port_idx);
8585

libraries/SrcWrapper/src/stm32/PortNames.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
#include "PortNames.h"
3131

32-
GPIO_TypeDef *GPIOPort[MAX_NB_PORT] = {
32+
GPIO_TypeDef *GPIOPort_list[MAX_NB_PORT] = {
3333
(GPIO_TypeDef *)GPIOA_BASE,
3434
(GPIO_TypeDef *)GPIOB_BASE
3535
#if defined GPIOC_BASE

0 commit comments

Comments
 (0)