This commit is contained in:
@@ -79,7 +79,7 @@ inline bool isModuleCrossfire(uint8_t idx)
|
|||||||
#if defined(PCBSKY9X)
|
#if defined(PCBSKY9X)
|
||||||
inline bool isExtraModule(uint8_t idx)
|
inline bool isExtraModule(uint8_t idx)
|
||||||
{
|
{
|
||||||
return idx == EXTRA_MODULE);
|
return idx == EXTRA_MODULE;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
inline bool isExtraModule(uint8_t)
|
inline bool isExtraModule(uint8_t)
|
||||||
|
|||||||
@@ -329,6 +329,10 @@ inline void startPulses()
|
|||||||
setupPulses(EXTERNAL_MODULE);
|
setupPulses(EXTERNAL_MODULE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(PCBSKY9X)
|
||||||
|
init_ppm(EXTRA_MODULE);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(HUBSAN)
|
#if defined(HUBSAN)
|
||||||
Hubsan_Init();
|
Hubsan_Init();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ void init_second_ppm(uint32_t period)
|
|||||||
pwmptr->PWM_CH_NUM[1].PWM_CDTYUPD = GET_MODULE_PPM_DELAY(EXTRA_MODULE)*2; // Duty
|
pwmptr->PWM_CH_NUM[1].PWM_CDTYUPD = GET_MODULE_PPM_DELAY(EXTRA_MODULE)*2; // Duty
|
||||||
pwmptr->PWM_ENA = PWM_ENA_CHID1; // Enable channel 1
|
pwmptr->PWM_ENA = PWM_ENA_CHID1; // Enable channel 1
|
||||||
pwmptr->PWM_IER1 = PWM_IER1_CHID1;
|
pwmptr->PWM_IER1 = PWM_IER1_CHID1;
|
||||||
|
|
||||||
|
setExtraModulePolarity();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user