This commit is contained in:
leo 2025-11-21 21:53:16 +01:00
parent 8f4a6d8c6c
commit 8720083f62
4 changed files with 7 additions and 4 deletions

View file

@ -18,7 +18,6 @@ void handler_USART1 (void) {
MyGPIO_Reset(GPIOA, 1);
Mytimer_PWM_cycle(TIM3, 3, data);
}
MyTimer_Base_Start(TIM3);
}
void Plateau_Init (void){
@ -28,4 +27,5 @@ void Plateau_Init (void){
Mytimer_PWM(TIM3, 3);
My_USART_Init(USART1);
MyUSART_ActiveIT(USART1, 6, &handler_USART1);
MyTimer_Base_Start(TIM3);
}

View file

@ -55,3 +55,4 @@ void MyGPIO_Reset(GPIO_TypeDef *GPIO, char GPIO_Pin){
void MyGPIO_Toggle(GPIO_TypeDef *GPIO, char GPIO_Pin){
if (((GPIO->ODR>>GPIO_Pin)&1) == 1) MyGPIO_Reset(GPIO, GPIO_Pin);
else MyGPIO_Set(GPIO, GPIO_Pin);
}

View file

@ -88,3 +88,4 @@ void TIM3_IRQHandler(void){
void TIM4_IRQHandler(void){
TIM4->SR&=~TIM_SR_UIF;
Ptr_fct_t4();
}

View file

@ -75,3 +75,4 @@ void USART1_IRQHandler(void){
void USART3_IRQHandler(void){
USART3->SR&=~USART_SR_RXNE;
ptr_fct_u3();
}