/* * 模块名称:主机侧单测桩 - usart.h(console_log 模块专用) * 模块功能:与真实 Inc/usart.h 对本模块可见的部分逐字一致:extern UART_HandleTypeDef * huart1; + void MX_USART1_UART_Init(void);(真实那份还声明 huart2~5 与 * MX_USART2~5_UART_Init,本模块只碰 USART1,搬多出来的声明没有意义)。 * ⚠ 仅供 test/host/console_log/ 使用,不参与 MCU 构建。 * 真实 Inc/usart.h 的 include 链(main.h -> stm32f4xx_hal.h -> stm32f4xx.h -> * core_cm4.h)在宿主上编不动,寄存器面由 stm32f4_fake.h 提供(理由见该文件头)。 * 创建日期:2026-10-24 */ #ifndef USART_H #define USART_H #include #include "stm32f4_fake.h" extern UART_HandleTypeDef huart1; void MX_USART1_UART_Init(void); #endif /* USART_H */