准备驱动移植适配Rust
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file : bsp_board_manager.h
|
||||
* @brief : Board support package manager header file
|
||||
* @brief : 板级支持包管理器头文件
|
||||
******************************************************************************
|
||||
*/
|
||||
/* USER CODE END Header */
|
||||
@ -15,48 +15,48 @@
|
||||
#include "bsp_board.h"
|
||||
|
||||
/**
|
||||
* @brief Get number of supported boards
|
||||
* @retval Number of supported boards
|
||||
* @brief 获取支持的板卡数量
|
||||
* @retval 支持的板卡数量
|
||||
*/
|
||||
uint8_t bsp_board_get_count(void);
|
||||
|
||||
/**
|
||||
* @brief Get board configuration by index
|
||||
* @param index: Board configuration index
|
||||
* @retval Pointer to board configuration structure, NULL if invalid index
|
||||
* @brief 通过索引获取板卡配置
|
||||
* @param index: 板卡配置索引
|
||||
* @retval 指向板卡配置结构体的指针,无效索引返回 NULL
|
||||
*/
|
||||
const bsp_board_config_t* bsp_board_get_by_index(uint8_t index);
|
||||
|
||||
/**
|
||||
* @brief Get board configuration by name
|
||||
* @param name: Board name string
|
||||
* @retval Pointer to board configuration structure, NULL if not found
|
||||
* @brief 通过名称获取板卡配置
|
||||
* @param name: 板卡名称字符串
|
||||
* @retval 指向板卡配置结构体的指针,未找到返回 NULL
|
||||
*/
|
||||
const bsp_board_config_t* bsp_board_get_by_name(const char* name);
|
||||
|
||||
/**
|
||||
* @brief Set current board configuration by index
|
||||
* @param index: Board configuration index
|
||||
* @retval HAL status code
|
||||
* @brief 通过索引设置当前板卡配置
|
||||
* @param index: 板卡配置索引
|
||||
* @retval HAL 状态码
|
||||
*/
|
||||
hal_ret_t bsp_board_set_by_index(uint8_t index);
|
||||
|
||||
/**
|
||||
* @brief Set current board configuration by name
|
||||
* @param name: Board name string
|
||||
* @retval HAL status code
|
||||
* @brief 通过名称设置当前板卡配置
|
||||
* @param name: 板卡名称字符串
|
||||
* @retval HAL 状态码
|
||||
*/
|
||||
hal_ret_t bsp_board_set_by_name(const char* name);
|
||||
|
||||
/**
|
||||
* @brief Get current board configuration
|
||||
* @retval Pointer to current board configuration structure
|
||||
* @brief 获取当前板卡配置
|
||||
* @retval 指向当前板卡配置结构体的指针
|
||||
*/
|
||||
const bsp_board_config_t* bsp_board_get_config(void);
|
||||
|
||||
/**
|
||||
* @brief Get current board index
|
||||
* @retval Current board index
|
||||
* @brief 获取当前板卡索引
|
||||
* @retval 当前板卡索引
|
||||
*/
|
||||
uint8_t bsp_board_get_current_index(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user