diff --git a/drivers/Driver_ADC.c b/drivers/Driver_ADC.c new file mode 100644 index 0000000..d5bbb79 --- /dev/null +++ b/drivers/Driver_ADC.c @@ -0,0 +1 @@ +#include "Driver_Timer.h" \ No newline at end of file diff --git a/drivers/Driver_ADC.h b/drivers/Driver_ADC.h new file mode 100644 index 0000000..eb3a8d8 --- /dev/null +++ b/drivers/Driver_ADC.h @@ -0,0 +1,9 @@ +#ifndef MYADC_H +#define MYADC_H + +#include "stm32f10x.h" + +// Todo + + +#endif \ No newline at end of file diff --git a/drivers/Driver_Timer.c b/drivers/Driver_Timer.c index ad01a9e..35c6b79 100644 --- a/drivers/Driver_Timer.c +++ b/drivers/Driver_Timer.c @@ -12,8 +12,6 @@ void MyTimer_Base_Init(MyTimer_Struct_TypeDef * Timer) RCC->APB1ENR |= RCC_APB1ENR_TIM3EN; } else if (Timer->Timer == TIM4) { RCC->APB1ENR |= RCC_APB1ENR_TIM4EN; - } else if (Timer->Timer == TIM5) { - //RCC->APB1ENR |= RCC_APB1ENR_TIM5EN; } // Configuration du Timer diff --git a/projet_1/src/main.c b/projet_1/src/main.c index 72b4716..c117485 100644 --- a/projet_1/src/main.c +++ b/projet_1/src/main.c @@ -7,7 +7,7 @@ void delay() { for(i = 0; i < 1000000; i++); } -int main(void) { + int main(void) { // Configure la broche PA5 en sortie MyGPIO_Struct_TypeDef GPIO_InitStructure;