Initial commit: my SECS2 project
This commit is contained in:
27
usr/bsp/bsp_print.c
Normal file
27
usr/bsp/bsp_print.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "bsp_print.h"
|
||||
|
||||
#include "bsp_Uart.h"
|
||||
|
||||
#include "stdio.h"
|
||||
|
||||
|
||||
//#include "wk_usart.h"
|
||||
|
||||
|
||||
|
||||
/*<2A>ض<EFBFBD><D8B6><EFBFBD>fputc<74><63><EFBFBD><EFBFBD>*/
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user