diff --git a/boards/nxp/ucans32k146/src/board_config.h b/boards/nxp/ucans32k146/src/board_config.h index 3e97c8d76b..4112c04284 100644 --- a/boards/nxp/ucans32k146/src/board_config.h +++ b/boards/nxp/ucans32k146/src/board_config.h @@ -106,7 +106,7 @@ __BEGIN_DECLS * Defined in board.h */ -#define DIRECT_PWM_OUTPUT_CHANNELS 1 +#define DIRECT_PWM_OUTPUT_CHANNELS 2 #define BOARD_HAS_LED_PWM 1 diff --git a/boards/nxp/ucans32k146/src/timer_config.cpp b/boards/nxp/ucans32k146/src/timer_config.cpp index 104936e7a6..cf567fb905 100644 --- a/boards/nxp/ucans32k146/src/timer_config.cpp +++ b/boards/nxp/ucans32k146/src/timer_config.cpp @@ -110,6 +110,7 @@ constexpr io_timers_t io_timers[MAX_IO_TIMERS] = { constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = { initIOTimerChannel(io_timers, {Timer::FTM2, Timer::Channel1}, {GPIO::PortA, GPIO::Pin0}), + initIOTimerChannel(io_timers, {Timer::FTM2, Timer::Channel2}, {GPIO::PortA, GPIO::Pin1}), }; constexpr io_timers_channel_mapping_t io_timers_channel_mapping = diff --git a/platforms/nuttx/src/px4/nxp/s32k1xx/include/px4_arch/io_timer.h b/platforms/nuttx/src/px4/nxp/s32k1xx/include/px4_arch/io_timer.h index 71a026b5c5..62a35ef786 100644 --- a/platforms/nuttx/src/px4/nxp/s32k1xx/include/px4_arch/io_timer.h +++ b/platforms/nuttx/src/px4/nxp/s32k1xx/include/px4_arch/io_timer.h @@ -46,7 +46,7 @@ __BEGIN_DECLS /* configuration limits */ #define MAX_IO_TIMERS 1 -#define MAX_TIMER_IO_CHANNELS 1 +#define MAX_TIMER_IO_CHANNELS 2 #define MAX_LED_TIMERS 1 #define MAX_TIMER_LED_CHANNELS 3