NXP UCANS32K146: Configure PWM timer for production version

This commit is contained in:
Jari van Ewijk 2020-11-18 09:21:02 +01:00 committed by David Sidrane
parent 5e693180d9
commit a246defb68
1 changed files with 2 additions and 4 deletions

View File

@ -105,13 +105,11 @@
#define rPWMLOAD(t) REG(t,S32K1XX_FTM_PWMLOAD_OFFSET)
constexpr io_timers_t io_timers[MAX_IO_TIMERS] = {
initIOTimer(Timer::FTM0),
//initIOTimer(Timer::FTM2),
initIOTimer(Timer::FTM2),
};
constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
initIOTimerChannel(io_timers, {Timer::FTM0, Timer::Channel7}, {GPIO::PortE, GPIO::Pin9}),
//initIOTimerChannel(io_timers, {Timer::FTM2, Timer::Channel1}, {GPIO::PortA, GPIO::Pin0}),
initIOTimerChannel(io_timers, {Timer::FTM2, Timer::Channel1}, {GPIO::PortA, GPIO::Pin0}),
};
constexpr io_timers_channel_mapping_t io_timers_channel_mapping =