添加新版型

This commit is contained in:
2026-01-23 20:17:07 +08:00
parent bd541d585e
commit 3a56d5937a
5 changed files with 64 additions and 15 deletions

View File

@@ -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