添加新配置
This commit is contained in:
27
app/config/board_config/sertrf_esp32c3.h
Normal file
27
app/config/board_config/sertrf_esp32c3.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#if (CONFIG_BOARD_NAME_SERTRF_ESP32C3)
|
||||
|
||||
#define CONFIG_IDF_TARGET "esp32c3" /* 警告:请使用命令 idf.py set-target <参数> 选择对应的平台 */
|
||||
|
||||
static cfg_board_t const s_cfg_board_default = {
|
||||
.firmware_str = PRODUCT_ID,
|
||||
.platform_str = CONFIG_IDF_TARGET,
|
||||
.board_name = "sertrf_esp32c3",
|
||||
|
||||
/* 数据透传串口 */
|
||||
.uart_fc = {
|
||||
.pin_txd = {7, _GPIO_DIR_OUT, _GPIO_PUD_PULL_UP},
|
||||
.pin_rxd = {6, _GPIO_DIR_IN, _GPIO_PUD_PULL_UP},
|
||||
.id = UART_NUM_1,
|
||||
.irq_prior = 24,
|
||||
.br = 115200,
|
||||
},
|
||||
|
||||
/* ISP 控制脚 */
|
||||
.io_isp = {
|
||||
.nrst = 4, // 复位控制引脚
|
||||
.boot0 = 5, // boot0 控制引脚
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user