generated from hulk/gd32e23x_template_cmake_vscode
添加bldc板led配置io
This commit is contained in:
@@ -20,8 +20,9 @@
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>[BOARD TYPE CONFIG]<<<<<<<<<<<<<<<<<<<< */
|
||||
|
||||
#define ULTRASONIC_BOARD
|
||||
// #define ULTRASONIC_BOARD
|
||||
// #define EDDY_BOARD
|
||||
#define BLDC_BOARD
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
@@ -38,17 +39,22 @@
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
#ifdef ULTRASONIC_BOARD
|
||||
#if defined(ULTRASONIC_BOARD)
|
||||
|
||||
#define LED_RCU RCU_GPIOA
|
||||
#define LED_PORT GPIOA
|
||||
#define LED_PIN GPIO_PIN_9
|
||||
|
||||
#elif EDDY_BOARD
|
||||
#elif defined(EDDY_BOARD)
|
||||
#define LED_RCU RCU_GPIOA
|
||||
#define LED_PORT GPIOA
|
||||
#define LED_PIN GPIO_PIN_7
|
||||
|
||||
#elif defined(BLDC_BOARD)
|
||||
#define LED_RCU RCU_GPIOB
|
||||
#define LED_PORT GPIOB
|
||||
#define LED_PIN GPIO_PIN_1
|
||||
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
|
Reference in New Issue
Block a user