fmdevelopers 发表于 2023-3-10 15:50:21

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

<blockquote>void MF_UART5_Init(void)UART5初始化函数,


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

#include "fm33lc0xx_fl.h"
#include <string.h>
#include <stdarg.h>
#include <stdio.h>

void MF_UART5_Init(void);
void UART5_printf (char *fmt, ...) ;
#define UART5_SEND_LEN300


#endif




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