28 lines
356 B
C
28 lines
356 B
C
#include "bsp_print.h"
|
|
|
|
#include "bsp_Uart.h"
|
|
|
|
#include "stdio.h"
|
|
|
|
|
|
//#include "wk_usart.h"
|
|
|
|
|
|
|
|
/*ÖØ¶¨Òåfputcº¯Êý*/
|
|
int fputc(int ch, FILE *f)
|
|
{
|
|
u8 Data = ch;
|
|
COM_Uart1.Send(&COM_Uart1,&Data,1);
|
|
}
|
|
|
|
void Debug_UartSend(u8 *pData,u16 Len)
|
|
{
|
|
//COM_Uart1.Send(&COM_Uart1,pData,Len);
|
|
}
|
|
|
|
void UartSend(u8 ch)
|
|
{
|
|
COM_Uart1.Send(&COM_Uart1,&ch,1);
|
|
}
|