添加 Kconfig 样例,添加基础的板及配置
This commit is contained in:
@@ -7,21 +7,8 @@
|
||||
#define CONS_ABORT()
|
||||
#include "sys_log.h"
|
||||
|
||||
static cfg_board_t const s_cfg_board_default = {
|
||||
/* 控制台串口 */
|
||||
.uart_console = {
|
||||
.pin_txd = {43, _GPIO_DIR_OUT, _GPIO_PUD_PULL_UP},
|
||||
.pin_rxd = {44, _GPIO_DIR_IN, _GPIO_PUD_PULL_UP},
|
||||
.id = UART_NUM_0,
|
||||
.irq_prior = 0,
|
||||
.br = 115200,
|
||||
},
|
||||
|
||||
/* 启动按键 */
|
||||
.key_boot = {
|
||||
.pin = 0, // 用于切换灯效
|
||||
.en_lev = 0, // 用于切换灯效
|
||||
},
|
||||
};
|
||||
#include "board_config/devkit_esp32c2.h"
|
||||
#include "board_config/devkit_esp32c3.h"
|
||||
#include "board_config/devkit_esp32s3.h"
|
||||
|
||||
const cfg_board_t *g_cfg_board = &s_cfg_board_default;
|
||||
|
||||
Reference in New Issue
Block a user