This commit is contained in:
Bertrand Songis
2019-05-18 23:47:30 +02:00
parent 4c8bbfc584
commit 1a5d62262d
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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)
+4
View File
@@ -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
} }