From 0e40d6da02454b7a74ae54d88c84cc489fd973bf Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 18 Mar 2016 00:33:47 +0000 Subject: [PATCH] stm32l4: gpio: Correct ASCR name to match ref manual Be consistent, not sure why I left off the R originally. --- include/libopencm3/stm32/l4/gpio.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/include/libopencm3/stm32/l4/gpio.h b/include/libopencm3/stm32/l4/gpio.h index 2f077daf..a22d3612 100644 --- a/include/libopencm3/stm32/l4/gpio.h +++ b/include/libopencm3/stm32/l4/gpio.h @@ -51,15 +51,16 @@ #define GPIOG_BRR GPIO_BRR(GPIOG) #define GPIOH_BRR GPIO_BRR(GPIOH) -#define GPIO_ASC(port) MMIO32((port) + 0x2c) -#define GPIOA_ASC GPIO_ASC(GPIOA) -#define GPIOB_ASC GPIO_ASC(GPIOB) -#define GPIOC_ASC GPIO_ASC(GPIOC) -#define GPIOD_ASC GPIO_ASC(GPIOD) -#define GPIOE_ASC GPIO_ASC(GPIOE) -#define GPIOF_ASC GPIO_ASC(GPIOF) -#define GPIOG_ASC GPIO_ASC(GPIOG) -#define GPIOH_ASC GPIO_ASC(GPIOH) +/* Analog Switch Control Register */ +#define GPIO_ASCR(port) MMIO32((port) + 0x2c) +#define GPIOA_ASCR GPIO_ASCR(GPIOA) +#define GPIOB_ASCR GPIO_ASCR(GPIOB) +#define GPIOC_ASCR GPIO_ASCR(GPIOC) +#define GPIOD_ASCR GPIO_ASCR(GPIOD) +#define GPIOE_ASCR GPIO_ASCR(GPIOE) +#define GPIOF_ASCR GPIO_ASCR(GPIOF) +#define GPIOG_ASCR GPIO_ASCR(GPIOG) +#define GPIOH_ASCR GPIO_ASCR(GPIOH) /*****************************************************************************/ /* Register values */