|
|
@ -36,6 +36,8 @@ |
|
|
|
constexpr io_timers_t io_timers[MAX_IO_TIMERS] = { |
|
|
|
constexpr io_timers_t io_timers[MAX_IO_TIMERS] = { |
|
|
|
initIOTimer(Timer::Timer1, DMA{DMA::Index1}), |
|
|
|
initIOTimer(Timer::Timer1, DMA{DMA::Index1}), |
|
|
|
initIOTimer(Timer::Timer4, DMA{DMA::Index1}), |
|
|
|
initIOTimer(Timer::Timer4, DMA{DMA::Index1}), |
|
|
|
|
|
|
|
initIOTimer(Timer::Timer2), |
|
|
|
|
|
|
|
initIOTimer(Timer::Timer12), |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = { |
|
|
|
constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = { |
|
|
@ -44,6 +46,12 @@ constexpr timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = { |
|
|
|
initIOTimerChannel(io_timers, {Timer::Timer1, Timer::Channel2}, {GPIO::PortE, GPIO::Pin11}), |
|
|
|
initIOTimerChannel(io_timers, {Timer::Timer1, Timer::Channel2}, {GPIO::PortE, GPIO::Pin11}), |
|
|
|
initIOTimerChannel(io_timers, {Timer::Timer1, Timer::Channel1}, {GPIO::PortE, GPIO::Pin9}), |
|
|
|
initIOTimerChannel(io_timers, {Timer::Timer1, Timer::Channel1}, {GPIO::PortE, GPIO::Pin9}), |
|
|
|
initIOTimerChannel(io_timers, {Timer::Timer4, Timer::Channel2}, {GPIO::PortD, GPIO::Pin13}), |
|
|
|
initIOTimerChannel(io_timers, {Timer::Timer4, Timer::Channel2}, {GPIO::PortD, GPIO::Pin13}), |
|
|
|
|
|
|
|
initIOTimerChannelCapture(io_timers, {Timer::Timer2, Timer::Channel4}, {GPIO::PortB, GPIO::Pin11}), |
|
|
|
|
|
|
|
initIOTimerChannelCapture(io_timers, {Timer::Timer2, Timer::Channel2}, {GPIO::PortB, GPIO::Pin3}), |
|
|
|
|
|
|
|
initIOTimerChannelCapture(io_timers, {Timer::Timer2, Timer::Channel1}, {GPIO::PortA, GPIO::Pin5}), |
|
|
|
|
|
|
|
initIOTimerChannelCapture(io_timers, {Timer::Timer12, Timer::Channel2}, {GPIO::PortH, GPIO::Pin9}), |
|
|
|
|
|
|
|
initIOTimerChannelCapture(io_timers, {Timer::Timer12, Timer::Channel1}, {GPIO::PortH, GPIO::Pin6}), |
|
|
|
|
|
|
|
//initIOTimerChannelCapture(io_timers, {Timer::Timer4, Timer::Channel3}, {GPIO::PortD, GPIO::Pin14}),
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = |
|
|
|
constexpr io_timers_channel_mapping_t io_timers_channel_mapping = |
|
|
|