ajout uart.h

This commit is contained in:
Jarno Dreschler 2025-12-16 19:52:11 +01:00
parent d3781bbe3f
commit cb112ab21f
4 changed files with 14 additions and 0 deletions

View file

@ -4,6 +4,7 @@
#include "Accelerometre.h"
#include "Girouette.h"
#include "Servo.h"
#include "MyUart.h"
#include "I2C.h"
#include "RTC.h"

8
Pilotes/Include/MyUart.h Normal file
View file

@ -0,0 +1,8 @@
#include "stm32f10x.h"
void My_USART_Config(USART_TypeDef* , uint32_t );
void USART_Send_Char(USART_TypeDef* , char );
void USART_Send_String(USART_TypeDef*, char*);
void USART_IT_Receive_Enable(USART_TypeDef*);
void Init_IT_Receive(void (*Receive_IT_function) (int));

View file

@ -0,0 +1,4 @@
#include "stm32f10x.h"
void initPlato(TIM_TypeDef * Timer, int Channel);
void Update_Motor_PWM(int Consigne, TIM_TypeDef * Timer, int Channel);

View file

@ -1,4 +1,5 @@
#include "stm32f10x.h"
#include "PWM.h"
void initPlato(TIM_TypeDef * Timer, int Channel){ // Config du moteur servo