From 5270c11a09b8408c8e36232a43e109d034800df5 Mon Sep 17 00:00:00 2001 From: Devan Lai Date: Wed, 7 Oct 2015 02:07:38 -0700 Subject: [PATCH] stm32f0: Fix offset for GPIO_BRR Correct as per RM0091rev5 --- include/libopencm3/stm32/f0/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libopencm3/stm32/f0/gpio.h b/include/libopencm3/stm32/f0/gpio.h index cfef3582..85633c57 100644 --- a/include/libopencm3/stm32/f0/gpio.h +++ b/include/libopencm3/stm32/f0/gpio.h @@ -41,7 +41,7 @@ /* Register definitions */ /*****************************************************************************/ -#define GPIO_BRR(port) MMIO32(port + 0x24) +#define GPIO_BRR(port) MMIO32(port + 0x28) #define GPIOA_BRR GPIO_BRR(GPIOA) #define GPIOB_BRR GPIO_BRR(GPIOB) #define GPIOC_BRR GPIO_BRR(GPIOC)