UART read should not have timeout

This commit is contained in:
weiting2
2020-05-15 16:13:17 +08:00
parent 7e42d35d00
commit ee9b117da0
2 changed files with 5 additions and 5 deletions
@@ -5,12 +5,12 @@
#define VERSION_DATE_YEAR 20
#define VERSION_DATE_MONTH 5
#define VERSION_DATE_DAY 15
#define VERSION_DATE_HOUR 12
#define VERSION_DATE_MINUTE 46
#define VERSION_DATE_HOUR 16
#define VERSION_DATE_MINUTE 12
// this is NOT the version hash !!
// it's the last version hash
#define VERSION_HASH c715aba1b8b2ff676b369bcdb81c5cf78d96f3d1
#define VERSION_HASH 7e42d35d005648fb2b9b09987a41b798c0a186e3
#define VERSION_GIT_BRANCH central_pseudo_controller
static void get_board_name(char *board_name_ch, uint8 *board_name_int, uint8 name_size){
@@ -25,7 +25,8 @@ static void pesudo_pi_uart_init(){
UART_Params_init(&params);
params.baudRate = 9600;
params.writeDataMode = UART_DATA_BINARY;
params.readTimeout = timeoutUs / Clock_tickPeriod; // Default tick period is 10us
// params.readTimeout = timeoutUs / Clock_tickPeriod; // Default tick period is 10us
params.readTimeout = ti_sysbios_BIOS_WAIT_FOREVER;
// Open the UART and do the read
handle = UART_open(Board_UART, &params);
@@ -33,5 +34,4 @@ static void pesudo_pi_uart_init(){
return;
}
#endif