diff options
author | Christian Cunningham <cc@localhost> | 2022-03-25 12:14:11 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-25 12:14:11 -0700 |
commit | 667e5e8cf02e3d5c530d76fa1921bafdd460b70c (patch) | |
tree | d34ffd9788e2aa7f8b0ab3c71f6c8323a40c654a /kernel/drivers | |
parent | 75ca654c2a3a4cce24459a381311c259ce7ce8a3 (diff) |
Uart and GPIO IRQ
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/uart.c b/kernel/drivers/uart.c index 68c70d6..2107a6f 100644 --- a/kernel/drivers/uart.c +++ b/kernel/drivers/uart.c @@ -31,8 +31,8 @@ void uart_init(void) // Clear pending interrupts store32(0x7FF, UART0_ICR); // Set to 3Mhz - store32(1, UART0_IBRD); - store32(40, UART0_FBRD); + store32(10, UART0_IBRD); + store32(20, UART0_FBRD); // Enable FIFO and 8 bit transmission store32((1<<4)|(1<<5)|(1<<6), UART0_LCRH); // Mask all interrupts |