MàJ avec le pilote Horloge.c
This commit is contained in:
parent
8fe96167f6
commit
7d032ee3ce
2 changed files with 3 additions and 33 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
#include "stm32f10x.h"
|
#include "stm32f10x.h"
|
||||||
#include "Timer.h"
|
#include "Horloge.h"
|
||||||
#include "DriverGPIO.h"
|
#include "DriverGPIO.h"
|
||||||
#include "Girouette.h"
|
#include "Girouette.h"
|
||||||
#include "PWM.h"
|
#include "PWM.h"
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
void configEncoder(TIM_TypeDef * Timer) {
|
void configEncoder(TIM_TypeDef * Timer) {
|
||||||
// Timer
|
// Timer
|
||||||
EnableTimer(Timer);
|
Timer_init(Timer, 0, 0);
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
Timer -> CCMR1 |= TIM_CCMR1_CC1S; // TI1FP1 mapped on TI1
|
Timer -> CCMR1 |= TIM_CCMR1_CC1S; // TI1FP1 mapped on TI1
|
||||||
|
|
|
||||||
30
gitignore
30
gitignore
|
|
@ -1,30 +0,0 @@
|
||||||
*.obj
|
|
||||||
*.o
|
|
||||||
*.bin
|
|
||||||
*.list
|
|
||||||
*.map
|
|
||||||
*.mk
|
|
||||||
*.makefile
|
|
||||||
*.o
|
|
||||||
*.su
|
|
||||||
*.d
|
|
||||||
*.elf
|
|
||||||
*.scvd
|
|
||||||
*.crf
|
|
||||||
*.map
|
|
||||||
*.sct
|
|
||||||
*.dbgconf
|
|
||||||
*.axf
|
|
||||||
*.htm
|
|
||||||
*.lnp
|
|
||||||
*.dep
|
|
||||||
*.uvguix.*
|
|
||||||
*.lst
|
|
||||||
*.iex
|
|
||||||
**/Objects/
|
|
||||||
**/Listings/
|
|
||||||
**/Debug/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in a new issue