aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/obldc-strip/can/can.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f1/obldc-strip/can/can.c')
-rw-r--r--examples/stm32/f1/obldc-strip/can/can.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32/f1/obldc-strip/can/can.c b/examples/stm32/f1/obldc-strip/can/can.c
index b295486..0f20360 100644
--- a/examples/stm32/f1/obldc-strip/can/can.c
+++ b/examples/stm32/f1/obldc-strip/can/can.c
@@ -46,7 +46,7 @@ struct can_rx_msg {
struct can_tx_msg can_tx_msg;
struct can_rx_msg can_rx_msg;
-void gpio_setup(void)
+static void gpio_setup(void)
{
/* Enable Alternate Function clock. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_AFIOEN);
@@ -69,7 +69,7 @@ void gpio_setup(void)
}
-void systick_setup(void)
+static void systick_setup(void)
{
/* 64MHz / 8 => 8000000 counts per second */
systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
@@ -84,7 +84,7 @@ void systick_setup(void)
systick_counter_enable();
}
-void can_setup(void)
+static void can_setup(void)
{
/* Enable peripheral clocks. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_AFIOEN);