Changeset 3ffd4c3 in mainline
- Timestamp:
- 2012-09-04T16:43:52Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 15c9b26, 983cabe8
- Parents:
- 5321e48
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/arm926_uart/arm926_uart.c
r5321e48 r3ffd4c3 83 83 arm926_uart_t *uart = irq->instance; 84 84 85 // TODO make pio_read accept const spointers and remove the cast85 // TODO make pio_read accept const pointers and remove the cast 86 86 while ((pio_read_32((ioport32_t*)&uart->regs->flag) & ARM926_UART_FLAG_RXFE_FLAG) == 0) { 87 87 /* We ignore all error flags here */ … … 109 109 110 110 /* Mask all interrupts */ 111 uart->regs->interrupt_mask = ARM926_UART_INTERRUPT_ALL;111 uart->regs->interrupt_mask = 0; 112 112 113 113 outdev_initialize("arm926_uart_dev", &uart->outdev, &arm926_uart_ops); … … 133 133 irq_register(&uart->irq); 134 134 /* Enable receive interrupt */ 135 uart->regs->interrupt_mask &= ~ARM926_UART_INTERRUPT_RX_FLAG;135 uart->regs->interrupt_mask |= ARM926_UART_INTERRUPT_RX_FLAG; 136 136 } 137 137
Note:
See TracChangeset
for help on using the changeset viewer.