Skip to content

Commit 00af10d

Browse files
committed
Fix GPIO clock for F0 boards in CMSIS example
1 parent 3016fe7 commit 00af10d

File tree

1 file changed

+1
-1
lines changed
  • examples/cmsis-blink/src

1 file changed

+1
-1
lines changed

examples/cmsis-blink/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include "stm32f0xx.h"
3131
#define LEDPORT (GPIOC)
3232
#define LED1 (8)
33-
#define ENABLE_GPIO_CLOCK (RCC->APB2ENR |= RCC_AHBENR_GPIOCEN)
33+
#define ENABLE_GPIO_CLOCK (RCC->AHBENR |= RCC_AHBENR_GPIOCEN)
3434
#define _MODER MODER
3535
#define GPIOMODER (GPIO_MODER_MODER8_0)
3636
#elif STM32F1

0 commit comments

Comments
 (0)