test

Fork of mbed-dev by mbed official

Revision:
166:e614a9f1c9e2
Parent:
157:ff67d9f36b67
Child:
171:19eb464bc2be
diff -r 289d4deac6e4 -r e614a9f1c9e2 targets/TARGET_Maxim/TARGET_MAX32630/serial_api.c
--- a/targets/TARGET_Maxim/TARGET_MAX32630/serial_api.c	Wed May 10 12:06:41 2017 +0100
+++ b/targets/TARGET_Maxim/TARGET_MAX32630/serial_api.c	Fri May 26 12:39:01 2017 +0100
@@ -202,19 +202,19 @@
 {
     switch (obj->index) {
         case 0:
-            NVIC_SetVector(UART0_IRQn, uart0_handler);
+            NVIC_SetVector(UART0_IRQn, (uint32_t)uart0_handler);
             NVIC_EnableIRQ(UART0_IRQn);
             break;
         case 1:
-            NVIC_SetVector(UART1_IRQn, uart1_handler);
+            NVIC_SetVector(UART1_IRQn, (uint32_t)uart1_handler);
             NVIC_EnableIRQ(UART1_IRQn);
             break;
         case 2:
-            NVIC_SetVector(UART2_IRQn, uart2_handler);
+            NVIC_SetVector(UART2_IRQn, (uint32_t)uart2_handler);
             NVIC_EnableIRQ(UART2_IRQn);
             break;
         case 3:
-            NVIC_SetVector(UART3_IRQn, uart3_handler);
+            NVIC_SetVector(UART3_IRQn, (uint32_t)uart3_handler);
             NVIC_EnableIRQ(UART3_IRQn);
             break;
         default: