mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Updated timerHardware_t to match betaflight
This commit is contained in:
parent
cc46b0c415
commit
99f4264bf3
17 changed files with 36 additions and 59 deletions
|
@ -423,7 +423,7 @@ void timerChConfigOC(const timerHardware_t* timHw, bool outEnable, bool stateHig
|
|||
if(outEnable) {
|
||||
TIM_OCInitStructure.TIM_OCMode = TIM_OCMode_Inactive;
|
||||
TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;
|
||||
if (timHw->outputInverted) {
|
||||
if (timHw->output & TIMER_OUTPUT_INVERTED) {
|
||||
stateHigh = !stateHigh;
|
||||
}
|
||||
TIM_OCInitStructure.TIM_OCPolarity = stateHigh ? TIM_OCPolarity_High : TIM_OCPolarity_Low;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue