Skip to content

Commit b22ea8b

Browse files
committed
stm32f1: maple LED is on A5.
Fix incorrect RCC port. Only applies to "maple" not to maple mini. Fixes github issue #117
1 parent 7322fdc commit b22ea8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/stm32/f1/stm32-maple/miniblink/miniblink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void gpio_setup(void)
2626
/* Manually: */
2727
// RCC_APB2ENR |= RCC_APB2ENR_IOPCEN;
2828
/* Using API functions: */
29-
rcc_periph_clock_enable(RCC_GPIOC);
29+
rcc_periph_clock_enable(RCC_GPIOA);
3030

3131
/* Set GPIO5 (in GPIO port A) to 'output push-pull'. */
3232
/* Manually: */

0 commit comments

Comments
 (0)