From ba4a1ec6c42e1ba8be999aecf57fdc2ee75b3450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 5 Oct 2021 13:23:11 +0200 Subject: [PATCH] boards/px4/io-v2: swap timer definitions So that the ordering of the generated params make more sense. TIM1 is now for channels 2-4 instead of 5-8. --- boards/cubepilot/io-v2/src/timer_config.cpp | 2 +- boards/px4/io-v2/src/timer_config.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/cubepilot/io-v2/src/timer_config.cpp b/boards/cubepilot/io-v2/src/timer_config.cpp index f84e69921c..bb7dfa86fe 100644 --- a/boards/cubepilot/io-v2/src/timer_config.cpp +++ b/boards/cubepilot/io-v2/src/timer_config.cpp @@ -35,8 +35,8 @@ constexpr io_timers_t io_timers[MAX_IO_TIMERS] = { initIOTimer(Timer::Timer2), - initIOTimer(Timer::Timer3), initIOTimer(Timer::Timer4), + initIOTimer(Timer::Timer3), }; constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = { diff --git a/boards/px4/io-v2/src/timer_config.cpp b/boards/px4/io-v2/src/timer_config.cpp index f84e69921c..bb7dfa86fe 100644 --- a/boards/px4/io-v2/src/timer_config.cpp +++ b/boards/px4/io-v2/src/timer_config.cpp @@ -35,8 +35,8 @@ constexpr io_timers_t io_timers[MAX_IO_TIMERS] = { initIOTimer(Timer::Timer2), - initIOTimer(Timer::Timer3), initIOTimer(Timer::Timer4), + initIOTimer(Timer::Timer3), }; constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {