oled added, PWM and so on configured, unfortunately not working so far, target not longer found by stlink
This commit is contained in:
@ -43,6 +43,36 @@
|
||||
|
||||
#define LED_Pin GPIO_PIN_13
|
||||
#define LED_GPIO_Port GPIOC
|
||||
#define MOT4_CNT_Pin GPIO_PIN_0
|
||||
#define MOT4_CNT_GPIO_Port GPIOA
|
||||
#define OLED_DC_Pin GPIO_PIN_1
|
||||
#define OLED_DC_GPIO_Port GPIOA
|
||||
#define OLED_RST_Pin GPIO_PIN_2
|
||||
#define OLED_RST_GPIO_Port GPIOA
|
||||
#define OLED_CS_Pin GPIO_PIN_3
|
||||
#define OLED_CS_GPIO_Port GPIOA
|
||||
#define MOT1_DIR_Pin GPIO_PIN_8
|
||||
#define MOT1_DIR_GPIO_Port GPIOE
|
||||
#define MOT1_PWM_Pin GPIO_PIN_9
|
||||
#define MOT1_PWM_GPIO_Port GPIOE
|
||||
#define MOT2_DIR_Pin GPIO_PIN_10
|
||||
#define MOT2_DIR_GPIO_Port GPIOE
|
||||
#define MOT2_PWM_Pin GPIO_PIN_11
|
||||
#define MOT2_PWM_GPIO_Port GPIOE
|
||||
#define MOT3_DIR_Pin GPIO_PIN_12
|
||||
#define MOT3_DIR_GPIO_Port GPIOE
|
||||
#define MOT3_PWM_Pin GPIO_PIN_13
|
||||
#define MOT3_PWM_GPIO_Port GPIOE
|
||||
#define MOT4_PWM_Pin GPIO_PIN_14
|
||||
#define MOT4_PWM_GPIO_Port GPIOE
|
||||
#define MOT4_DIR_Pin GPIO_PIN_15
|
||||
#define MOT4_DIR_GPIO_Port GPIOE
|
||||
#define MOT1_CNT_Pin GPIO_PIN_15
|
||||
#define MOT1_CNT_GPIO_Port GPIOA
|
||||
#define MOT2_CNT_Pin GPIO_PIN_2
|
||||
#define MOT2_CNT_GPIO_Port GPIOD
|
||||
#define MOT3_CNT_Pin GPIO_PIN_0
|
||||
#define MOT3_CNT_GPIO_Port GPIOE
|
||||
/* USER CODE BEGIN Private defines */
|
||||
|
||||
/* USER CODE END Private defines */
|
||||
|
@ -75,9 +75,9 @@
|
||||
/*#define HAL_SD_MODULE_ENABLED */
|
||||
/*#define HAL_SDRAM_MODULE_ENABLED */
|
||||
/*#define HAL_SMARTCARD_MODULE_ENABLED */
|
||||
/*#define HAL_SPI_MODULE_ENABLED */
|
||||
#define HAL_SPI_MODULE_ENABLED
|
||||
/*#define HAL_SRAM_MODULE_ENABLED */
|
||||
/*#define HAL_TIM_MODULE_ENABLED */
|
||||
#define HAL_TIM_MODULE_ENABLED
|
||||
/*#define HAL_UART_MODULE_ENABLED */
|
||||
/*#define HAL_USART_MODULE_ENABLED */
|
||||
/*#define HAL_WWDG_MODULE_ENABLED */
|
||||
|
Reference in New Issue
Block a user