generated from hulk/gd32e23x_template_cmake_vscode
add(gpio):增加addr引脚宏定义
This commit is contained in:
+13
-3
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "version.h"
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>>[IIC TYPE DEFINE]<<<<<<<<<<<<<<<<<<<< */
|
||||
/* >>>>>>>>>>>>>>>>>>>>[IIC TYPE CONFIG]<<<<<<<<<<<<<<<<<<<< */
|
||||
|
||||
#define SOFTWARE_IIC CFG_DISABLE // CFG_DISABLE: Hardware IIC; CFG_ENABLE: Software IIC
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
|
||||
#define COM_DEBUG CFG_DISABLE // CFG_DISABLE: Command debug off; CFG_ENABLE: Command debug on
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>>[DEBUG ASSERTIONS DEFINE]<<<<<<<<<<<<<<<<<<<< */
|
||||
/* >>>>>>>>>>>>>>>>>>>>[DEBUG ASSERTIONS CONFIG]<<<<<<<<<<<<<<<<<<<< */
|
||||
|
||||
#define DEBUG_VERBOSE CFG_DISABLE // CFG_DISABLE: Verbose debug off; CFG_ENABLE: Verbose debug on
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>>[SEGGER RTT DETECTION]<<<<<<<<<<<<<<<<<<<< */
|
||||
/* >>>>>>>>>>>>>>>>>>>>[SEGGER RTT CONFIG]<<<<<<<<<<<<<<<<<<<< */
|
||||
|
||||
#define SEGGER_RTT_DETECTION CFG_ENABLE // CFG_DISABLE: SEGGER RTT off; CFG_ENABLE: SEGGER RTT on
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
#define RTT_PutChar(ch, c)
|
||||
#endif
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>>[RS485 MODE CONFIG]<<<<<<<<<<<<<<<<<<<< */
|
||||
|
||||
#define RS485_MODE CFG_ENABLE // CFG_DISABLE: RS485 off; CFG_ENABLE: RS485 on
|
||||
|
||||
/******************************************************************************/
|
||||
@@ -137,6 +139,14 @@ typedef enum {
|
||||
#define RS485_DE_PIN GPIO_PIN_1
|
||||
#endif
|
||||
|
||||
|
||||
#define ADDR_RCU RCU_GPIOA
|
||||
#define ADDR_PORT GPIOA
|
||||
#define ADDR_BITO_PIN GPIO_PIN_0
|
||||
#define ADDR_BIT1_PIN GPIO_PIN_4
|
||||
#define ADDR_BIT2_PIN GPIO_PIN_5
|
||||
#define ADDR_BIT3_PIN GPIO_PIN_6
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
#define DEBUG_UART USART0
|
||||
|
||||
Reference in New Issue
Block a user