stm32f0: miniblink: update comments to match code
Brought the comments up to date wrt. the actual code (inconsistency removed).
This commit is contained in:
committed by
Karl Palsson
parent
f4e129cd4a
commit
6e71b9dea8
@@ -27,14 +27,14 @@
|
||||
|
||||
static void gpio_setup(void)
|
||||
{
|
||||
/* Enable GPIOB clock. */
|
||||
/* Enable GPIOC clock. */
|
||||
/* Manually: */
|
||||
//RCC_AHBENR |= RCC_AHBENR_GPIOCEN;
|
||||
/* Using API functions: */
|
||||
rcc_periph_clock_enable(RCC_GPIOC);
|
||||
|
||||
|
||||
/* Set GPIO6 (in GPIO port B) to 'output push-pull'. */
|
||||
/* Set GPIO8 (in GPIO port C) to 'output push-pull'. */
|
||||
/* Using API functions: */
|
||||
gpio_mode_setup(PORT_LED, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, PIN_LED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user