/* * 模块名称:主机侧单测桩 - usart.h(console_log 模块专用) * 模块功能:与真实 Inc/usart.h 对本模块可见的部分逐字一致:extern UART_HandleTypeDef * huart5; + void MX_UART5_Init(void);(真实那份还声明 huart1~4 与 * MX_USART1~3_UART_Init / MX_UART4_Init,本模块只碰 UART5,搬多出来的声明 * 没有意义)。 * 2026-10-29 批 0:控制台从 USART1 迁到 RS232#1/UART5,本桩随之改。 * ⚠ 仅供 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 huart5; void MX_UART5_Init(void); #endif /* USART_H */