mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-01 01:20:14 +00:00
clean up
This commit is contained in:
parent
b0b56a417e
commit
e823862ed1
@ -86,9 +86,6 @@ void board_init(void)
|
||||
UART_Init(BOARD_UART_PORT, &UARTConfigStruct);
|
||||
UART_TxCmd(BOARD_UART_PORT, ENABLE); // Enable UART Transmit
|
||||
#endif
|
||||
|
||||
#if CFG_PRINTF_TARGET == PRINTF_TARGET_SWO
|
||||
#endif
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -120,10 +120,7 @@ int fputc(int ch, FILE *f)
|
||||
board_uart_send(&carry, 1);
|
||||
}
|
||||
|
||||
//board_uart_send( (uint8_t*) &ch, 1);
|
||||
|
||||
uint8_t c = (uint8_t) ch;
|
||||
board_uart_send( (uint8_t*) &c, 1);
|
||||
board_uart_send( (uint8_t*) &ch, 1);
|
||||
|
||||
return ch;
|
||||
}
|
||||
@ -137,10 +134,7 @@ void _ttywrch(int ch)
|
||||
board_uart_send(&carry, 1);
|
||||
}
|
||||
|
||||
//board_uart_send( (uint8_t*) &ch, 1);
|
||||
|
||||
uint8_t c = (uint8_t) ch;
|
||||
board_uart_send( (uint8_t*) &c, 1);
|
||||
board_uart_send( (uint8_t*) &ch, 1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user