Cosmetics, consistency fixes, fix compiler warnings.

This commit is contained in:
Uwe Hermann
2011-01-30 22:43:33 +01:00
parent edf230386c
commit a0091f18c7
5 changed files with 14 additions and 11 deletions

View File

@@ -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

View File

@@ -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,