确定引脚功能
This commit is contained in:
@@ -58,6 +58,24 @@ void Error_Handler(void);
|
||||
/* USER CODE END EFP */
|
||||
|
||||
/* Private defines -----------------------------------------------------------*/
|
||||
#define MOTA_Pin GPIO_PIN_0
|
||||
#define MOTA_GPIO_Port GPIOF
|
||||
#define MOTB_Pin GPIO_PIN_1
|
||||
#define MOTB_GPIO_Port GPIOF
|
||||
#define HC595_DCK_Pin GPIO_PIN_3
|
||||
#define HC595_DCK_GPIO_Port GPIOA
|
||||
#define HC595_RCK_Pin GPIO_PIN_4
|
||||
#define HC595_RCK_GPIO_Port GPIOA
|
||||
#define HC595_SCK_Pin GPIO_PIN_5
|
||||
#define HC595_SCK_GPIO_Port GPIOA
|
||||
#define KEY1_Pin GPIO_PIN_6
|
||||
#define KEY1_GPIO_Port GPIOA
|
||||
#define KEY2_Pin GPIO_PIN_7
|
||||
#define KEY2_GPIO_Port GPIOA
|
||||
#define KEY3_Pin GPIO_PIN_9
|
||||
#define KEY3_GPIO_Port GPIOA
|
||||
#define KEY4_Pin GPIO_PIN_10
|
||||
#define KEY4_GPIO_Port GPIOA
|
||||
/* USER CODE BEGIN Private defines */
|
||||
|
||||
/* USER CODE END Private defines */
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
* @brief This is the list of modules to be used in the HAL driver
|
||||
*/
|
||||
#define HAL_MODULE_ENABLED
|
||||
/*#define HAL_ADC_MODULE_ENABLED */
|
||||
#define HAL_ADC_MODULE_ENABLED
|
||||
/*#define HAL_CRYP_MODULE_ENABLED */
|
||||
/*#define HAL_CAN_MODULE_ENABLED */
|
||||
/*#define HAL_CEC_MODULE_ENABLED */
|
||||
|
||||
Reference in New Issue
Block a user