1 /*
2  * Copyright (C) 2015-2017 Alibaba Group Holding Limited
3  */
4 
5 #include <stdio.h>
6 #include <stdint.h>
7 #include <string.h>
8 
9 #include "aos/kernel.h"
10 #include "aos/hal/uart.h"
11 #include "uart_test.h"
12 #include "ymodem.h"
13 
14 uart_dev_t uart_dev;
15 
hal_uart_test(void)16 void hal_uart_test(void)
17 {
18     int32_t ret = -1;
19 
20     printf("*********** uart test start ! ***********\n");
21 
22     printf("send file from the PC by ymodem protocol !\n");
23 
24     ret = SerialDownload();
25     if (ret > 0) {
26         printf("uart test result: succeed !\n");
27     } else {
28         printf("uart test result: failed !\n");
29     }
30 
31     printf("*********** uart test end ! ***********\n");
32 }
33