准备驱动移植适配Rust

This commit is contained in:
冯佳
2026-01-29 15:08:30 +08:00
parent e879b18602
commit 1bdeca55ea
68 changed files with 4371 additions and 4392 deletions

View File

@ -2,7 +2,7 @@
/**
******************************************************************************
* @file : bsp_init.c
* @brief : Board support package initialization source file
* @brief : 板级支持包初始化源文件
******************************************************************************
*/
/* USER CODE END Header */
@ -15,8 +15,8 @@
#include "hal_uart.h"
/**
* @brief Initialize board support package
* @retval HAL status code
* @brief 初始化板级支持包
* @retval HAL 状态码
*/
hal_ret_t bsp_init(void) {
/* Get board configuration */
@ -137,8 +137,8 @@ hal_ret_t bsp_init(void) {
}
/**
* @brief Initialize board GPIO using configuration
* @retval HAL status code
* @brief 使用配置初始化板卡 GPIO
* @retval HAL 状态码
*/
hal_ret_t bsp_gpio_init(void) {
/* Get board configuration */
@ -254,16 +254,16 @@ hal_ret_t bsp_gpio_init(void) {
}
/**
* @brief Get board name
* @retval Board name string
* @brief 获取板卡名称
* @retval 板卡名称字符串
*/
const char* bsp_get_board_name(void) {
return bsp_board_get_name();
}
/**
* @brief Get current board configuration
* @retval Pointer to board configuration structure
* @brief 获取当前板卡配置
* @retval 指向板卡配置结构体的指针
*/
const bsp_board_config_t* bsp_get_board_config(void) {
return bsp_board_get_config();