M:Robe 500/M66591: Add support for full-speed USB transfers, and fix the UART interrupt clearing.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22095 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-08-01 15:41:40 +00:00
parent 5c882be608
commit f3298a4612
2 changed files with 43 additions and 20 deletions

View file

@ -156,6 +156,7 @@ int uart1_gets_queue(char *str, int size)
/* UART1 receive/transmit interupt handler */
void UART1(void)
{
IO_INTC_IRQ0 = INTR_IRQ0_UART1; /* Clear the interrupt first */
while (IO_UART1_RFCR & 0x3f)
{
if (uart1_receive_count > RECEIVE_RING_SIZE)
@ -176,6 +177,4 @@ void UART1(void)
IO_UART1_DTRR=uart1_send_buffer_ring[uart1_send_read++];
uart1_send_count--;
}
IO_INTC_IRQ0 = INTR_IRQ0_UART1;
}