GPIO alternative function registers are 32bit each, not 64bit
This commit is contained in:
@@ -13,8 +13,8 @@ struct gpio {
|
|||||||
volatile uint32_t ODR; // Port output data register
|
volatile uint32_t ODR; // Port output data register
|
||||||
volatile uint32_t BSRR; // Port bit set/reset register
|
volatile uint32_t BSRR; // Port bit set/reset register
|
||||||
volatile uint32_t LCKR; // Port configuration lock register
|
volatile uint32_t LCKR; // Port configuration lock register
|
||||||
volatile uint32_t AFRL[2]; // Alternative function low register
|
volatile uint32_t AFRL; // Alternative function low register
|
||||||
volatile uint32_t AFRH[2]; // Alternative function high register
|
volatile uint32_t AFRH; // Alternative function high register
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GPIO_BASE_ADDR (0x40020000U)
|
#define GPIO_BASE_ADDR (0x40020000U)
|
||||||
|
|||||||
Reference in New Issue
Block a user