/** Trigger Select mapping for slave timer from master timer. This was * unfortunately not very straightforward; There ' s no tidy-on-the-algorithmically. To avoid burning memory for a lookup table, use macros to * compute the offset. This also have the benefit that compilation would fail if * An unsupported master/slave pairing is used. * * Slave Master * 1 2 3 4 (stm32f100 only) * 2 9 10 3 4 * 3 9 2 11 4 * 4 2 3 9 * 9 2 3 (stm32l15x only) *--------------------* ts = 0 1 2 3*/#defineStm32_tim_ts_slave_1_master_15 0#defineStm32_tim_ts_slave_1_master_2 1#defineStm32_tim_ts_slave_1_master_3 2#defineStm32_tim_ts_slave_1_master_4 3#defineStm32_tim_ts_slave_2_master_9 0#defineStm32_tim_ts_slave_2_master_10 1#defineStm32_tim_ts_slave_2_master_3 2#defineStm32_tim_ts_slave_2_master_4 3#defineStm32_tim_ts_slave_3_master_9 0#defineStm32_tim_ts_slave_3_master_2 1#defineStm32_tim_ts_slave_3_master_11 2#defineStm32_tim_ts_slave_3_master_4 3#defineStm32_tim_ts_slave_4_master_10 0#defineStm32_tim_ts_slave_4_master_2 1#defineStm32_tim_ts_slave_4_master_3 2#defineStm32_tim_ts_slave_4_master_9 3#defineStm32_tim_ts_slave_9_master_2 0#defineStm32_tim_ts_slave_9_master_3 1#defineStm32_tim_ts_slave_9_master_10 2#defineStm32_tim_ts_slave_9_master_11 3
Stm32f4 Timer Internal Trigger Connection