From 8720083f62b10f9978917ec82099022f906dbaa2 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 21 Nov 2025 21:53:16 +0100 Subject: [PATCH] test --- Services/Plateau.c | 2 +- drivers/GPIO.c | 3 ++- drivers/MyTimer.c | 3 ++- drivers/USART.c | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Services/Plateau.c b/Services/Plateau.c index b0fa2e6..aac3fa2 100644 --- a/Services/Plateau.c +++ b/Services/Plateau.c @@ -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); } \ No newline at end of file diff --git a/drivers/GPIO.c b/drivers/GPIO.c index 893704f..1ae1c29 100644 --- a/drivers/GPIO.c +++ b/drivers/GPIO.c @@ -54,4 +54,5 @@ 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); \ No newline at end of file + else MyGPIO_Set(GPIO, GPIO_Pin); +} \ No newline at end of file diff --git a/drivers/MyTimer.c b/drivers/MyTimer.c index af8c94a..cd92a55 100644 --- a/drivers/MyTimer.c +++ b/drivers/MyTimer.c @@ -87,4 +87,5 @@ void TIM3_IRQHandler(void){ void TIM4_IRQHandler(void){ TIM4->SR&=~TIM_SR_UIF; - Ptr_fct_t4(); \ No newline at end of file + Ptr_fct_t4(); +} \ No newline at end of file diff --git a/drivers/USART.c b/drivers/USART.c index e00e080..ab52be7 100644 --- a/drivers/USART.c +++ b/drivers/USART.c @@ -74,4 +74,5 @@ void USART1_IRQHandler(void){ void USART3_IRQHandler(void){ USART3->SR&=~USART_SR_RXNE; - ptr_fct_u3(); \ No newline at end of file + ptr_fct_u3(); +} \ No newline at end of file