diff options
Diffstat (limited to 'firmware/target/arm/tms320dm320/uart-dm320.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/uart-dm320.c | 8 |
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 | ||
56 | void uart1_putc(char ch) | 56 | void 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)*/ |
76 | int uart1_gets_queue(char *str, unsigned int size) | 76 | int 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 | } |