aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/other/rtc/rtc.c
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2013-02-26 19:33:42 -0800
committerPiotr Esden-Tempski2013-02-26 19:33:42 -0800
commit3d3ddc701486370dd0425b651d3657c8b3e305da (patch)
tree3de75907f41110b91bfd0014e509ad715eb5def6 /examples/stm32/f1/other/rtc/rtc.c
parent9c552e75850c21bcacaeb5e28e64cf0d03ecb246 (diff)
Fixed all warnings for examples.
Diffstat (limited to 'examples/stm32/f1/other/rtc/rtc.c')
-rw-r--r--examples/stm32/f1/other/rtc/rtc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/stm32/f1/other/rtc/rtc.c b/examples/stm32/f1/other/rtc/rtc.c
index 9db114c..5db5582 100644
--- a/examples/stm32/f1/other/rtc/rtc.c
+++ b/examples/stm32/f1/other/rtc/rtc.c
@@ -24,7 +24,7 @@
#include <libopencm3/stm32/pwr.h>
#include <libopencm3/cm3/nvic.h>
-void clock_setup(void)
+static void clock_setup(void)
{
rcc_clock_setup_in_hse_8mhz_out_72mhz();
@@ -36,7 +36,7 @@ void clock_setup(void)
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_USART1EN);
}
-void usart_setup(void)
+static void usart_setup(void)
{
/* Setup GPIO pin GPIO_USART1_TX/GPIO9 on GPIO port A for transmit. */
gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
@@ -54,14 +54,14 @@ void usart_setup(void)
usart_enable(USART1);
}
-void gpio_setup(void)
+static void gpio_setup(void)
{
/* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_2_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, GPIO12);
}
-void nvic_setup(void)
+static void nvic_setup(void)
{
/* Without this the RTC interrupt routine will never be called. */
nvic_enable_irq(NVIC_RTC_IRQ);