generated from hulk/gd32e23x_template_cmake_vscode
添加新版型
This commit is contained in:
@@ -20,8 +20,9 @@
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>[BOARD TYPE CONFIG]<<<<<<<<<<<<<<<<<<<< */
|
||||
|
||||
#define ULTRASONIC_BOARD
|
||||
// #define ULTRASONIC_BOARD
|
||||
// #define EDDY_BOARD
|
||||
#define CERAMIXNANO_MB
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
@@ -44,7 +45,12 @@
|
||||
#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(CERAMIXNANO_MB)
|
||||
#define LED_RCU RCU_GPIOA
|
||||
#define LED_PORT GPIOA
|
||||
#define LED_PIN GPIO_PIN_7
|
||||
@@ -59,7 +65,7 @@
|
||||
#define RS485_IRQ USART1_IRQn
|
||||
#define RS485_GPIO_RCU RCU_GPIOA
|
||||
#define RS485_GPIO_PORT GPIOA
|
||||
#define RS485_EN_PIN GPIO_PIN_1
|
||||
// #define RS485_EN_PIN GPIO_PIN_1
|
||||
#define RS485_TX_PIN GPIO_PIN_2
|
||||
#define RS485_RX_PIN GPIO_PIN_3
|
||||
#define RS485_BAUDRATE 115200U
|
||||
|
||||
Reference in New Issue
Block a user