GPIO alternative function registers are 32bit each, not 64bit

This commit is contained in:
Alexander Heldt
2024-12-30 11:49:48 +01:00
parent 3aad7271a1
commit 980b9a2d9b
7 changed files with 55 additions and 82 deletions

View File

@@ -1995,8 +1995,8 @@ struct gpio {
volatile uint32_t ODR;
volatile uint32_t BSRR;
volatile uint32_t LCKR;
volatile uint32_t AFRL[2];
volatile uint32_t AFRH[2];
volatile uint32_t AFRL;
volatile uint32_t AFRH;
};
#define GPIO_BASE_ADDR (0x40020000U)