Compare commits

..

3 commits

3 changed files with 4 additions and 4 deletions

View file

@ -15,15 +15,15 @@ void initServo(TIM_TypeDef * Timer, int Channel) { // Config du moteur servo
Timer_Init(TIM4, 0xFFFF, 22); // Pour obtenir un période de 20 ms Timer_Init(TIM4, 0xFFFF, 22); // Pour obtenir un période de 20 ms
if (Channel == 3){ if (Channel == 3){
MyGPIO_Init(GPIOB, 8, AltOut_Ppull); // Outut push pull alternate MyGPIO_Init(GPIOB, 8, AltOut_Ppull); // Output push pull alternate
MyTimer_PWM(TIM4, 3); //TIM4 CH3 pour PB8 MyTimer_PWM(TIM4, 3); // TIM4 CH3 pour PB8
} }
else{ else{
//printf("Cet pilôte n'existe pas"); //printf("Ce pilote n'existe pas");
} }
} }
else{ else{
//printf("Cet pilôte n'existe pas"); //printf("Ce pilote n'existe pas");
} }
} }