Fix uart messy code bug

freertos
zhaozhongxiang 2019-05-15 11:17:59 +08:00
parent 94b22746e5
commit 908689942b
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@ uart_config(uart_device_number_t channel, uint32_t baud_rate, uart_bitwidth_t da
void uart_init(uart_device_number_t channel)
{
sysctl_clock_enable(SYSCTL_CLOCK_UART1 + channel);
sysctl_reset(SYSCTL_RESET_UART1 + channel);
}
void uart_set_send_trigger(uart_device_number_t channel, uart_send_trigger_t trigger)