Implemented PETERS_PLATINE

This commit is contained in:
2020-10-19 18:20:52 +02:00
parent c7c0b768ac
commit 4cf506652f
4 changed files with 45 additions and 13 deletions

View File

@@ -45,14 +45,23 @@
#define LEFT_TIM_UL_PIN GPIO_PIN_7
#define LEFT_TIM_UL_PORT GPIOA
#define LEFT_TIM_V CCR2
#ifdef PETERS_PLATINE
#define LEFT_TIM_VH_PIN GPIO_PIN_8
#define LEFT_TIM_VL_PIN GPIO_PIN_1
#else
#define LEFT_TIM_VH_PIN GPIO_PIN_7
#define LEFT_TIM_VH_PORT GPIOC
#define LEFT_TIM_VL_PIN GPIO_PIN_0
#endif
#define LEFT_TIM_VH_PORT GPIOC
#define LEFT_TIM_VL_PORT GPIOB
#define LEFT_TIM_W CCR3
#define LEFT_TIM_WH_PIN GPIO_PIN_8
#define LEFT_TIM_WH_PORT GPIOC
#ifdef PETERS_PLATINE
#define LEFT_TIM_WL_PIN GPIO_PIN_0
#else
#define LEFT_TIM_WL_PIN GPIO_PIN_1
#endif
#define LEFT_TIM_WL_PORT GPIOB
#define RIGHT_TIM TIM1