mbed library sources

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Fri Nov 14 16:00:07 2014 +0000
Parent:
404:cbc7dfcb0ce9
Child:
406:7b834b41c730
Commit message:
Synchronized with git revision 570c25d2553887ad71646b57858223df88dc3c8a

Full URL: https://github.com/mbedmicro/mbed/commit/570c25d2553887ad71646b57858223df88dc3c8a/

Targets: K64F - UART_NUM fix in a condition

Changed in this revision

targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c	Fri Nov 14 10:15:07 2014 +0000
+++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c	Fri Nov 14 16:00:07 2014 +0000
@@ -150,10 +150,10 @@
         case 0: irq_n=UART0_RX_TX_IRQn; vector = (uint32_t)&uart0_irq; break;
         case 1: irq_n=UART1_RX_TX_IRQn; vector = (uint32_t)&uart1_irq; break;
         case 2: irq_n=UART2_RX_TX_IRQn; vector = (uint32_t)&uart2_irq; break;
-        #if (NUM_UART > 3)
+#if (UART_NUM > 3)
         case 3: irq_n=UART3_RX_TX_IRQn; vector = (uint32_t)&uart3_irq; break;
         case 4: irq_n=UART4_RX_TX_IRQn; vector = (uint32_t)&uart4_irq; break;
-        #endif
+#endif
     }
     uint32_t uart_addrs[] = UART_BASE_ADDRS;
     if (enable) {