Fix presumed copy paste error in STM32F0 example (#498)

`RCC_AHBENR_GPIOCEN` is in `RCC->AHBENR` not `RCC->APB2ENR`
This commit is contained in:
Cameron Tacklind
2021-02-22 03:49:53 -08:00
committed by GitHub
parent 598dbb3b51
commit 53d0137288

View File

@@ -30,7 +30,7 @@
#include "stm32f0xx.h"
#define LEDPORT (GPIOC)
#define LED1 (8)
#define ENABLE_GPIO_CLOCK (RCC->APB2ENR |= RCC_AHBENR_GPIOCEN)
#define ENABLE_GPIO_CLOCK (RCC->AHBENR |= RCC_AHBENR_GPIOCEN)
#define _MODER MODER
#define GPIOMODER (GPIO_MODER_MODER8_0)
#elif STM32F1