mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by Umar Naeem

Revision:
150:02e0a0aed4ec
Parent:
149:156823d33999
diff -r 156823d33999 -r 02e0a0aed4ec targets/TARGET_ONSEMI/TARGET_NCS36510/serial_api.c
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/serial_api.c	Fri Oct 28 11:17:30 2016 +0100
+++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/serial_api.c	Tue Nov 08 17:45:16 2016 +0000
@@ -132,8 +132,8 @@
     PadRegOffset = (PadReg_t*)(PADREG_BASE + (rx * PAD_REG_ADRS_BYTE_SIZE));
     PadRegOffset->PADIO0.WORD = PAD_UART_RX;  /* Pad settings for UART Rx */
 
-    GPIOREG->W_OUT    |= (True << tx); /* tx as OUT direction */
-    GPIOREG->W_IN     |= (True << rx); /* rx as IN directon */
+    GPIOREG->W_OUT  = (0x1 << tx); /* tx as OUT direction */
+    GPIOREG->W_IN   = (0x1 << rx); /* rx as IN directon */
 
     CLOCK_DISABLE(CLOCK_PAD);
     CLOCK_DISABLE(CLOCK_CROSSB);