@@ -322,9 +322,9 @@ STATIC void UART1IntHandler(void) {
322
322
STATIC void pyb_uart_print (void (* print )(void * env , const char * fmt , ...), void * env , mp_obj_t self_in , mp_print_kind_t kind ) {
323
323
pyb_uart_obj_t * self = self_in ;
324
324
if (!self -> enabled ) {
325
- print (env , "UART(%u) " , self -> uart_id );
325
+ print (env , "< UART%u> " , self -> uart_id );
326
326
} else {
327
- print (env , "UART(%u, baudrate=%u, bits=" , self -> uart_id , self -> baudrate );
327
+ print (env , "< UART%u baudrate=%u, bits=" , self -> uart_id , self -> baudrate );
328
328
switch (self -> config & UART_CONFIG_WLEN_MASK ) {
329
329
case UART_CONFIG_WLEN_5 :
330
330
print (env , "5" );
@@ -346,7 +346,7 @@ STATIC void pyb_uart_print(void (*print)(void *env, const char *fmt, ...), void
346
346
} else {
347
347
print (env , ", parity=%u" , (self -> config & UART_CONFIG_PAR_MASK ) == UART_CONFIG_PAR_EVEN ? 0 : 1 );
348
348
}
349
- print (env , ", stop=%u, timeout=%u, timeout_char=%u, read_buf_len=%u) " ,
349
+ print (env , ", stop=%u, timeout=%u, timeout_char=%u, read_buf_len=%u> " ,
350
350
(self -> config & UART_CONFIG_STOP_MASK ) == UART_CONFIG_STOP_ONE ? 1 : 2 ,
351
351
self -> timeout , self -> timeout_char , self -> read_buf_len );
352
352
}
0 commit comments