aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/other/dma_mem2mem/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f1/other/dma_mem2mem/dma.c')
-rw-r--r--examples/stm32/f1/other/dma_mem2mem/dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32/f1/other/dma_mem2mem/dma.c b/examples/stm32/f1/other/dma_mem2mem/dma.c
index e667fec..d9dae43 100644
--- a/examples/stm32/f1/other/dma_mem2mem/dma.c
+++ b/examples/stm32/f1/other/dma_mem2mem/dma.c
@@ -23,7 +23,7 @@
#include <libopencm3/stm32/f1/dma.h>
#include <libopencm3/stm32/usart.h>
-void usart_setup(void)
+static void usart_setup(void)
{
/* Enable clocks for GPIO port A (for GPIO_USART1_TX) and USART1. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPAEN);
@@ -45,7 +45,7 @@ void usart_setup(void)
usart_enable(USART1);
}
-void gpio_setup(void)
+static void gpio_setup(void)
{
/* Enable GPIOB clock. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPBEN);
@@ -57,7 +57,7 @@ void gpio_setup(void)
GPIO_CNF_OUTPUT_PUSHPULL, GPIO7);
}
-void my_usart_print_string(u32 usart, char *s)
+static void my_usart_print_string(u32 usart, char *s)
{
while (*s != 0) {
usart_send(usart, *s);