From d8a57e15b061e789dd4bed5f0c4c62c4c938f3f2 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 25 Apr 2022 22:07:32 -0400 Subject: [PATCH] boards/mro/ctrl-zero-classic: fix code style --- boards/mro/ctrl-zero-classic/src/io_timer_hw_description.h | 4 ++-- boards/mro/ctrl-zero-classic/src/timer_config.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/mro/ctrl-zero-classic/src/io_timer_hw_description.h b/boards/mro/ctrl-zero-classic/src/io_timer_hw_description.h index c1d9ff995f..312815cd19 100644 --- a/boards/mro/ctrl-zero-classic/src/io_timer_hw_description.h +++ b/boards/mro/ctrl-zero-classic/src/io_timer_hw_description.h @@ -68,7 +68,7 @@ static inline constexpr timer_io_channels_t initIOTimerGPIOInOut(Timer::TimerCha case Timer::Timer15: gpio_af = GPIO_AF4; - break; + break; case Timer::Timer13: case Timer::Timer14: @@ -273,7 +273,7 @@ static inline constexpr io_timers_t initIOTimer(Timer::Timer timer, DMA dshot_dm #ifdef CONFIG_STM32_TIM15 nuttx_config_timer_enabled = true; #endif - break; + break; } // This is not strictly required, but for consistency let's make sure NuttX timers are disabled diff --git a/boards/mro/ctrl-zero-classic/src/timer_config.cpp b/boards/mro/ctrl-zero-classic/src/timer_config.cpp index 99c67cbe98..b276114826 100644 --- a/boards/mro/ctrl-zero-classic/src/timer_config.cpp +++ b/boards/mro/ctrl-zero-classic/src/timer_config.cpp @@ -50,9 +50,9 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = { initIOTimerChannel(io_timers, {Timer::Timer4, Timer::Channel3}, {GPIO::PortD, GPIO::Pin14}), initIOTimerChannel(io_timers, {Timer::Timer2, Timer::Channel3}, {GPIO::PortA, GPIO::Pin2}), initIOTimerChannel(io_timers, {Timer::Timer2, Timer::Channel1}, {GPIO::PortA, GPIO::Pin15}), - initIOTimerChannel(io_timers, {Timer::Timer2, Timer::Channel4}, {GPIO::PortB, GPIO::Pin11}), + initIOTimerChannel(io_timers, {Timer::Timer2, Timer::Channel4}, {GPIO::PortB, GPIO::Pin11}), // initIOTimerChannel(io_timers, {Timer::Timer15, Timer::Channel1}, {GPIO::PortE, GPIO::Pin5}), - initIOTimerChannel(io_timers, {Timer::Timer8, Timer::Channel1}, {GPIO::PortC, GPIO::Pin6}), + initIOTimerChannel(io_timers, {Timer::Timer8, Timer::Channel1}, {GPIO::PortC, GPIO::Pin6}), // initIOTimerChannel(io_timers, {Timer::Timer4, Timer::Channel4}, {GPIO::PortD, GPIO::Pin15}), };