summaryrefslogtreecommitdiff
path: root/cc3200/hal/uart.c
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-03-15 10:05:15 +0100
committerdanicampora <danicampora@gmail.com>2015-03-16 00:42:05 +0100
commit0d0646d915b51191ce55cbb2750e5422ee1766db (patch)
tree5beed462e80f529eee10a7cab2c9f45ae9999d16 /cc3200/hal/uart.c
parentdac79324b5a49a81435a9dafc389353a4fa8739b (diff)
cc3200: Update HAL to SDK release version 1.1.0.
Diffstat (limited to 'cc3200/hal/uart.c')
-rw-r--r--cc3200/hal/uart.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/cc3200/hal/uart.c b/cc3200/hal/uart.c
index b00bbeeb1..33d91414b 100644
--- a/cc3200/hal/uart.c
+++ b/cc3200/hal/uart.c
@@ -1167,13 +1167,8 @@ UARTIntRegister(unsigned long ulBase, void (*pfnHandler)(void))
//
// Determine the interrupt number based on the UART port.
//
-#if 1
- ulInt = UARTIntNumberGet(ulBase);
-#else
- ulInt = ((ulBase == UART0_BASE) ? INT_UART0 :
- ((ulBase == UART1_BASE) ? INT_UART1 : INT_UART2));
-#endif
+ ulInt = UARTIntNumberGet(ulBase);
//
// Register the interrupt handler.
@@ -1216,12 +1211,7 @@ UARTIntUnregister(unsigned long ulBase)
//
// Determine the interrupt number based on the UART port.
//
-#if 1
ulInt = UARTIntNumberGet(ulBase);
-#else
- ulInt = ((ulBase == UART0_BASE) ? INT_UART0 :
- ((ulBase == UART1_BASE) ? INT_UART1 : INT_UART2));
-#endif
//
// Disable the interrupt.