URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1516 to Rev 1517
- ↔ Reverse comparison
Rev 1516 → Rev 1517
/trunk/or1ksim/peripheral/16450.c
531,13 → 531,14
void uart_check_char(void *dat) |
{ |
struct dev_16450 *uart = dat; |
char buffer[1]; |
uint8_t buffer; |
int retval; |
|
/* Check if there is something waiting, and put it into rxser */ |
retval = channel_read(uart->channel, buffer, 1); |
retval = channel_read(uart->channel, &buffer, 1); |
if(retval > 0) { |
uart->iregs.rxser = (unsigned char)buffer[0]; |
TRACE("Shifting 0x%02"PRIx8" (`%c') into shift reg\n", buffer, buffer); |
uart->iregs.rxser = buffer; |
uart->istat.receiveing = 1; |
SCHED_ADD(uart_recv_char, uart, uart->char_clks * UART_CLOCK_DIVIDER); |
return; |