mirror of
https://github.com/olofk/serv.git
synced 2026-01-25 19:36:16 +00:00
Initialize state of verilator UART decoder
This commit is contained in:
@@ -43,6 +43,7 @@ typedef struct {
|
||||
|
||||
void uart_init(uart_context_t *context, uint32_t baud_rate) {
|
||||
context->baud_t = 1000*1000*1000/baud_rate;
|
||||
context->state = 0;
|
||||
}
|
||||
|
||||
void do_uart(uart_context_t *context, bool rx) {
|
||||
|
||||
Reference in New Issue
Block a user