Remove redundant init (done in pwrInit())
This commit is contained in:
@@ -40,13 +40,12 @@ extern Fifo<32> sbusFifo;
|
|||||||
|
|
||||||
#define setupTrainerPulses() setupPulsesPPM(TRAINER_MODULE)
|
#define setupTrainerPulses() setupPulsesPPM(TRAINER_MODULE)
|
||||||
|
|
||||||
// Trainer PPM oputput PC9, Timer 3 channel 4, (Alternate Function 2)
|
// Trainer PPM output PC9, Timer 3 channel 4, (Alternate Function 2)
|
||||||
void init_trainer_ppm()
|
void init_trainer_ppm()
|
||||||
{
|
{
|
||||||
trainerPulsesData.ppm.ptr = trainerPulsesData.ppm.pulses;
|
trainerPulsesData.ppm.ptr = trainerPulsesData.ppm.pulses;
|
||||||
|
|
||||||
configure_pins( TRAINER_GPIO_PIN_OUT, PIN_PERIPHERAL | PIN_PORTC | PIN_PER_2 | PIN_OS25) ;
|
configure_pins( TRAINER_GPIO_PIN_OUT, PIN_PERIPHERAL | PIN_PORTC | PIN_PER_2 | PIN_OS25) ;
|
||||||
configure_pins( TRAINER_GPIO_PIN_DETECT, PIN_PORTA | PIN_INPUT ) ;
|
|
||||||
|
|
||||||
TRAINER_TIMER->CR1 &= ~TIM_CR1_CEN ;
|
TRAINER_TIMER->CR1 &= ~TIM_CR1_CEN ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user