File tree 1 file changed +0
-44
lines changed
1 file changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -407,54 +407,10 @@ uart_has_rx_error(uart_t* uart)
407
407
return false ;
408
408
}
409
409
410
- static void
411
- uart_ignore_char (char c)
412
- {
413
- (void ) c;
414
- }
415
-
416
- static void
417
- uart0_write_char (char c)
418
- {
419
- uart_do_write_char (UART0, c);
420
- }
421
-
422
- static void
423
- uart1_write_char (char c)
424
- {
425
- uart_do_write_char (UART1, c);
426
- }
427
-
428
410
void
429
411
uart_set_debug (int uart_nr)
430
412
{
431
413
(void )uart_nr;
432
- /*
433
- TODO after there are debug log functions in the host emu
434
-
435
- s_uart_debug_nr = uart_nr;
436
- void (*func)(char) = NULL;
437
- switch(s_uart_debug_nr)
438
- {
439
- case UART0:
440
- func = &uart0_write_char;
441
- break;
442
- case UART1:
443
- func = &uart1_write_char;
444
- break;
445
- case UART_NO:
446
- default:
447
- func = &uart_ignore_char;
448
- break;
449
- }
450
-
451
- if (uart_nr == UART0 || uart_nr == UART1) {
452
- system_set_os_print(1);
453
- } else {
454
- system_set_os_print(0);
455
- }
456
- ets_install_putc1((void *) func);
457
- */
458
414
}
459
415
460
416
int
You can’t perform that action at this time.
0 commit comments