aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/other/timer_interrupt
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/timer_interrupt
parent9c552e75850c21bcacaeb5e28e64cf0d03ecb246 (diff)
Fixed all warnings for examples.
Diffstat (limited to 'examples/stm32/f1/other/timer_interrupt')
-rw-r--r--examples/stm32/f1/other/timer_interrupt/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32/f1/other/timer_interrupt/timer.c b/examples/stm32/f1/other/timer_interrupt/timer.c
index 9450548..d4df023 100644
--- a/examples/stm32/f1/other/timer_interrupt/timer.c
+++ b/examples/stm32/f1/other/timer_interrupt/timer.c
@@ -23,7 +23,7 @@
#include <libopencm3/stm32/timer.h>
#include <libopencm3/cm3/nvic.h>
-void gpio_setup(void)
+static void gpio_setup(void)
{
/* Enable GPIOB clock. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPBEN);
@@ -35,7 +35,7 @@ void gpio_setup(void)
GPIO_CNF_OUTPUT_PUSHPULL, GPIO7);
}
-void nvic_setup(void)
+static void nvic_setup(void)
{
/* Without this the timer interrupt routine will never be called. */
nvic_enable_irq(NVIC_TIM2_IRQ);