1
0
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:
Olof Kindgren
2019-11-04 13:01:31 +01:00
parent 98bfcc3b62
commit 9c83e39635

View File

@@ -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) {