File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3636extern "C" {
3737#endif
3838
39- extern GPIO_TypeDef * GPIOPort [];
39+ extern GPIO_TypeDef * GPIOPort_list [];
4040
4141typedef 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 */
8484GPIO_TypeDef * set_GPIO_Port_Clock (uint32_t port_idx );
8585
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments