mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Use timer channels in sane order
This commit is contained in:
committed by
Ben V. Brown
parent
1c1231b6fe
commit
05384ae5a0
@@ -202,10 +202,10 @@ void setup_timer_scheduler() {
|
||||
TIMER_PRELOAD_TRIG_COMP2, // Trigger; reset after trigger 0
|
||||
TIMER_COUNT_PRELOAD, // Counter mode
|
||||
22, // Clock div
|
||||
(uint16_t)(powerPWM + holdoffTicks), // CH0 compare (adc)
|
||||
(uint16_t)(powerPWM), // CH1 compare (pwm out)
|
||||
(uint16_t)(powerPWM), // CH0 compare (pwm out)
|
||||
(uint16_t)(powerPWM + holdoffTicks), // CH1 compare (adc)
|
||||
(uint16_t)(powerPWM + holdoffTicks + tempMeasureTicks), // CH2 compare end of cycle
|
||||
0, // Preload
|
||||
0, // Preload, copied to counter on trigger of comp2
|
||||
};
|
||||
TIMER_Init(&cfg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user