查看: 3068|回复: 0

FM33LC0X系列,需要使用UART5作为调试串口,使用UART5答应数据,使用重定向printf打印和不使用重定向UART5_printf打印<其余完整代码>

[复制链接]

1

主题

2

帖子

140

积分

中级工程师

Rank: 2

积分
140
发表于 2023-3-10 15:50:21 | 显示全部楼层 |阅读模式
  1. <blockquote>void MF_UART5_Init(void)
复制代码
UART5初始化函数,


print.h文件代码
  1. #ifndef __PRINT_1_H__
  2. #define __PRINT_1_H__

  3. #include "fm33lc0xx_fl.h"
  4. #include <string.h>
  5. #include <stdarg.h>
  6. #include <stdio.h>

  7. void MF_UART5_Init(void);
  8. void UART5_printf (char *fmt, ...) ;
  9. #define UART5_SEND_LEN  300


  10. #endif


复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表