summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tms320dm320/uart-dm320.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-04-24 20:08:28 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-04-24 20:08:28 +0000
commit95167e01773dcfe8e5c1b356cfa1ea4b3a55441b (patch)
tree8b5312c5f1d1ecc8231bf8e14a1eb1678474bf8a /firmware/target/arm/tms320dm320/uart-dm320.c
parent46b492861152af9b91d3ab65ef0e5e14c876c3fc (diff)
downloadrockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.tar.gz
rockbox-95167e01773dcfe8e5c1b356cfa1ea4b3a55441b.zip
Commit whole Creative Zen Vision:M target tree + all related firmware/
changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/uart-dm320.c')
-rw-r--r--firmware/target/arm/tms320dm320/uart-dm320.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/tms320dm320/uart-dm320.c b/firmware/target/arm/tms320dm320/uart-dm320.c
index 151ad2921c..c3dd5459eb 100644
--- a/firmware/target/arm/tms320dm320/uart-dm320.c
+++ b/firmware/target/arm/tms320dm320/uart-dm320.c
@@ -50,7 +50,7 @@ void uart_init(void)
50 uart1_recieve_write=0; 50 uart1_recieve_write=0;
51 51
52 /* Enable the interrupt */ 52 /* Enable the interrupt */
53 IO_INTC_EINT0 |= (1<<IRQ_UART1); 53 IO_INTC_EINT0 |= INTR_EINT0_UART1;
54} 54}
55 55
56void uart1_putc(char ch) 56void uart1_putc(char ch)
@@ -75,7 +75,7 @@ void uart1_puts(const char *str, int size)
75/* This function returns the number of bytes left in the queue after a read is done (negative if fail)*/ 75/* This function returns the number of bytes left in the queue after a read is done (negative if fail)*/
76int uart1_gets_queue(char *str, unsigned int size) 76int uart1_gets_queue(char *str, unsigned int size)
77{ 77{
78 IO_INTC_EINT0 &= ~(1<<IRQ_UART1); 78 IO_INTC_EINT0 &= ~INTR_EINT0_UART1;
79 int retval; 79 int retval;
80 80
81 if(uart1_recieve_count<size) 81 if(uart1_recieve_count<size)
@@ -106,7 +106,7 @@ int uart1_gets_queue(char *str, unsigned int size)
106 } 106 }
107 107
108 /* Enable the interrupt */ 108 /* Enable the interrupt */
109 IO_INTC_EINT0 |= (1<<IRQ_UART1); 109 IO_INTC_EINT0 |= INTR_EINT0_UART1;
110 110
111 return retval; 111 return retval;
112} 112}
@@ -129,5 +129,5 @@ void UART1(void)
129 } 129 }
130 } 130 }
131 131
132 IO_INTC_IRQ0 = (1<<IRQ_UART1); 132 IO_INTC_IRQ0 = INTR_IRQ0_UART1;
133} 133}