| 12345678910111213141516171819 |
- #ifndef __COM_PC_USART_H
- #define __COM_PC_USART_H
- #include <stdint.h>
- #include "usart.h"
- /* 本模块专用 USART1: PA9=TX, PA10=RX, 波特率 115200 (PC 上位机) */
- #define COM_PC_USART_STREAM_SIZE 4096
- void Com_pc_usart_init(void);
- uint32_t Com_pc_usart_send(const uint8_t *data, uint32_t len);
- uint16_t Com_pc_usart_available(void);
- uint32_t Com_pc_usart_read(uint8_t *buf, uint32_t len);
- /* 供共享 HAL_UART_RxCpltCallback (Com_cpld_usart.c 内定义) 分发的 RX 完成处理 */
- void Com_pc_usart_rxcplt(UART_HandleTypeDef *huart);
- #endif /* __COM_PC_USART_H */
|