Ejemplo n.º 1
0
void sys_info_print(void *s, int len)
{
	
#ifdef PRINT_DEBUG
	int i;
  uint8 turn[2] ={13,10};
  USART2_Send((uint8_t*)s, len);
	USART2_Send(turn, 2);
	USART2_Send(turn, 2);
#endif

}	
Ejemplo n.º 2
0
void RecvDone(void)
{
    uint32_t recv_length;
    recv_length = USART2_Recv(DemoString, sizeof(DemoString));
    USART2_Send(DemoString, recv_length);
}