1
0
forked from me/IronOS

Update Setup.cpp

This commit is contained in:
Ben V. Brown
2021-09-15 21:18:23 +10:00
parent 7c014062be
commit f88e6bccf4

View File

@@ -274,7 +274,7 @@ void setup_timers() {
/* CH0 configured to implement the PWM irq's for the output control*/
timer_channel_output_struct_para_init(&timer_ocintpara);
timer_ocintpara.ocpolarity = TIMER_OC_POLARITY_HIGH;
timer_ocintpara.ocpolarity = TIMER_OC_POLARITY_LOW;
timer_ocintpara.outputstate = TIMER_CCX_ENABLE;
timer_channel_output_config(TIMER1, TIMER_CH_0, &timer_ocintpara);