diff --git a/Application/principal.c b/Application/principal.c index 46e2dd1..26de2c0 100644 --- a/Application/principal.c +++ b/Application/principal.c @@ -4,6 +4,7 @@ #include "Accelerometre.h" #include "Girouette.h" #include "Servo.h" +#include "MyUart.h" #include "I2C.h" #include "RTC.h" diff --git a/Pilotes/Include/MyUart.h b/Pilotes/Include/MyUart.h new file mode 100644 index 0000000..fea73da --- /dev/null +++ b/Pilotes/Include/MyUart.h @@ -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)); \ No newline at end of file diff --git a/Pilotes/Include/Plateau.h b/Pilotes/Include/Plateau.h new file mode 100644 index 0000000..84a9138 --- /dev/null +++ b/Pilotes/Include/Plateau.h @@ -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); \ No newline at end of file diff --git a/Pilotes/Source/Plateau.c b/Pilotes/Source/Plateau.c index 5bac28b..dc446f1 100644 --- a/Pilotes/Source/Plateau.c +++ b/Pilotes/Source/Plateau.c @@ -1,4 +1,5 @@ #include "stm32f10x.h" +#include "PWM.h" void initPlato(TIM_TypeDef * Timer, int Channel){ // Config du moteur servo