aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f1/stm32-h103/led_stripe/led_stripe.c')
-rw-r--r--examples/stm32/f1/stm32-h103/led_stripe/led_stripe.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.c b/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.c
index 5b555e5..4407c66 100644
--- a/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.c
+++ b/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.c
@@ -63,7 +63,7 @@ struct color {
};
/* Set STM32 to 72 MHz. */
-void clock_setup(void)
+static void clock_setup(void)
{
rcc_clock_setup_in_hse_8mhz_out_72mhz();
@@ -72,7 +72,7 @@ void clock_setup(void)
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPBEN);
}
-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_50_MHZ,
@@ -87,7 +87,7 @@ void gpio_setup(void)
GPIO_CNF_OUTPUT_PUSHPULL, GPIO15);
}
-void send_colors(struct color *colors, int count)
+static void send_colors(struct color *colors, int count)
{
int i, k;
@@ -148,7 +148,7 @@ void send_colors(struct color *colors, int count)
}
}
-void reset_colors(struct color *colors, int count)
+static void reset_colors(struct color *colors, int count)
{
int i;
@@ -159,7 +159,7 @@ void reset_colors(struct color *colors, int count)
}
}
-void init_colors(struct color *colors, int count)
+static void init_colors(struct color *colors, int count)
{
colors[0].r = 0x1F;
colors[0].g = 0;
@@ -174,7 +174,7 @@ void init_colors(struct color *colors, int count)
count = count;
}
-void step_colors(struct color *colors, int count)
+static void step_colors(struct color *colors, int count)
{
int i;
struct color tmp_color1;