aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f2/jobygps/spi_test/spi_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f2/jobygps/spi_test/spi_test.c')
-rw-r--r--examples/stm32/f2/jobygps/spi_test/spi_test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/stm32/f2/jobygps/spi_test/spi_test.c b/examples/stm32/f2/jobygps/spi_test/spi_test.c
index e5c9539..2d6ab00 100644
--- a/examples/stm32/f2/jobygps/spi_test/spi_test.c
+++ b/examples/stm32/f2/jobygps/spi_test/spi_test.c
@@ -28,12 +28,11 @@
void clock_setup(void)
{
- /* Enable clocks on all the peripherals we are going to use. */
+ /* Enable clocks on all the peripherals we are going to use. */
rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_SPI2EN);
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_USART1EN);
- rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPCEN | \
- RCC_AHB1ENR_IOPAEN | \
- RCC_AHB1ENR_IOPBEN);
+ rcc_peripheral_enable_clock(&RCC_AHB1ENR,
+ RCC_AHB1ENR_IOPCEN | RCC_AHB1ENR_IOPAEN | RCC_AHB1ENR_IOPBEN);
}
void spi_setup(void)