Cosmetics, consistency fixes, fix compiler warnings.
This commit is contained in:
@@ -24,7 +24,7 @@ Q := @
|
||||
MAKEFLAGS += --no-print-directory
|
||||
endif
|
||||
|
||||
all: fancyblink
|
||||
all: fancyblink
|
||||
|
||||
fancyblink:
|
||||
@printf " BUILD examples/stm32/stm32-h107/fancyblink\n"
|
||||
@@ -34,5 +34,5 @@ clean:
|
||||
@printf " CLEAN examples/stm32/stm32-h107/fancyblink\n"
|
||||
$(Q)$(MAKE) -C fancyblink clean
|
||||
|
||||
.PHONY: fancyblink
|
||||
.PHONY: fancyblink
|
||||
|
||||
|
||||
@@ -28,12 +28,11 @@ void clock_setup(void)
|
||||
|
||||
/* Enable GPIOC clock. */
|
||||
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN);
|
||||
|
||||
}
|
||||
|
||||
void gpio_setup(void)
|
||||
{
|
||||
/* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
|
||||
/* Set GPIO6/7 (in GPIO port C) to 'output push-pull'. */
|
||||
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ,
|
||||
GPIO_CNF_OUTPUT_PUSHPULL, GPIO6);
|
||||
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_50_MHZ,
|
||||
|
||||
Reference in New Issue
Block a user