generated from hulk/gd32e23x_template_cmake_vscode
finish command
This commit is contained in:
@@ -6,6 +6,21 @@
|
||||
// #define RS485_MAX13487 //RS485 PHY : MAX13487 (AutoDir)
|
||||
#undef RS485_MAX13487 //RS485 PHY : SP3487 (no AutoDir)
|
||||
|
||||
/* >>>>>>>>>>>>>>>>>>>>[IIC TYPE DEFINE]<<<<<<<<<<<<<<<<<<<< */
|
||||
|
||||
// #define SOFTWARE_IIC //IIC Type : Software IIC
|
||||
#undef SOFTWARE_IIC //IIC Type : Hardware IIC
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
#define RCU_GPIO_I2C RCU_GPIOF
|
||||
#define RCU_I2C RCU_I2C0
|
||||
#define I2C_SCL_PORT GPIOF
|
||||
#define I2C_SCL_PIN GPIO_PIN_1
|
||||
#define I2C_SDA_PORT GPIOF
|
||||
#define I2C_SDA_PIN GPIO_PIN_0
|
||||
#define I2C_GPIO_AF GPIO_AF_1
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
#define LED_PORT GPIOA
|
||||
|
@@ -4,6 +4,9 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
bool get_sensor_report_enabled(void);
|
||||
void set_sensor_report_enabled(bool enabled);
|
||||
|
||||
void command_process(void);
|
||||
void handle_command(const uint8_t *cmd, uint8_t len);
|
||||
|
||||
|
@@ -3,14 +3,6 @@
|
||||
|
||||
#include "gd32e23x.h"
|
||||
|
||||
#define RX_BUFFER_SIZE 32
|
||||
|
||||
typedef enum {
|
||||
UART_PRINTF_USART0 = 0,
|
||||
UART_PRINTF_USART1 = 1,
|
||||
UART_PRINTF_BOTH = 2
|
||||
} uart_printf_port_t;
|
||||
|
||||
void rs485_init(void);
|
||||
|
||||
#endif // UART_H
|
||||
|
Reference in New Issue
Block a user