TP_microcontroleur/timer_act2/Includes/Driver_TIMER.c
2021-09-23 16:27:33 +02:00

15 lines
278 B
C

#include "Driver_TIMER.h"
/*typedef struct {
TIM_TypeDef * Timer ;
uint16_t ARR ;
uint16_t PSC ;
} MyTimer_Struct_TypeDef ;
*/
void MyTimer_Base_Init(MyTimer_Struct_TypeDef * Timer) {
Timer -> Timer -> ARR = Timer -> ARR -1;
Timer -> Timer -> PSC = Timer -> PSC -1;
}