Deleted Added
sdiff udiff text old ( 12772:362544959c40 ) new ( 13024:aa7890e43dab )
full compact
1/*
2 * Copyright (c) 2010, 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 78 unchanged lines hidden (view full) ---

87 clearInterrupts(UART_RXINTR | UART_RTINTR);
88 if (device->dataAvailable()) {
89 DPRINTF(Uart, "Re-raising interrupt due to more data "
90 "after UART_DR read\n");
91 dataAvailable();
92 }
93 }
94 break;
95 case UART_FR:
96 data =
97 UART_FR_CTS | // Clear To Send
98 // Given we do not simulate a FIFO we are either empty or full.
99 (!device->dataAvailable() ? UART_FR_RXFE : UART_FR_RXFF) |
100 UART_FR_TXFE; // TX FIFO empty
101
102 DPRINTF(Uart,

--- 97 unchanged lines hidden (view full) ---

200
201 device->writeData(data & 0xFF);
202 // We're supposed to clear TXINTR when this register is
203 // written to, however. since we're also infinitely fast, we
204 // need to immediately raise it again.
205 clearInterrupts(UART_TXINTR);
206 raiseInterrupts(UART_TXINTR);
207 break;
208 case UART_CR:
209 control = data;
210 break;
211 case UART_IBRD:
212 ibrd = data;
213 break;
214 case UART_FBRD:
215 fbrd = data;

--- 104 unchanged lines hidden ---