Files
ESPC3-wireless/app/config/board_config.h

41 lines
1.0 KiB
C
Raw Normal View History

2024-03-28 12:19:52 +08:00
/**
* @file board_config.h
* @author LokLiang
* @brief
* @version 0.1
* @date 2023-11-24
*
* @copyright Copyright (c) 2023
*
*
* 使
* 使
*
*
*
*
*
*/
#pragma once
#include "drivers/chip/_hal.h"
typedef struct // 按键配置
{
uint8_t pin; // 引脚号
uint8_t en_lev; // 触发电平
} cfg_board_key_t;
typedef struct // 数据结构一旦定下不可随意变更
{
/* 硬件描述类 */
hal_uart_hdl_t uart_console; // 控制台
cfg_board_key_t key_boot; // 启动按键
/* 产品功能描述类 */
} cfg_board_t;
extern const cfg_board_t *g_cfg_board; // 配置数据