https://github.com/WebBluetoothCG/demos/pull/42

Dependencies:   BLE_API mbed-dev-bin nRF51822

Fork of microbit-dal by Lancaster University

Revision:
25:27299423d813
Parent:
23:6055f6c19fa6
Child:
59:d73a257e9f89
--- a/inc/drivers/MicroBitSerial.h	Wed Jul 13 12:17:57 2016 +0100
+++ b/inc/drivers/MicroBitSerial.h	Wed Jul 13 12:17:58 2016 +0100
@@ -105,9 +105,13 @@
       * @param len the length of the string, and ultimately the maximum number of bytes
       *        that will be copied dependent on the state of txBuff
       *
+      * @param mode determines whether to configure the current fiber context or not. If
+      *             The mode is SYNC_SPINWAIT, the context will not be configured, otherwise
+      *             no context will be configured.
+      *
       * @return the number of bytes copied into the buffer.
       */
-    int setTxInterrupt(uint8_t *string, int len);
+    int setTxInterrupt(uint8_t *string, int len, MicroBitSerialMode mode);
 
     /**
       * Locks the mutex so that others can't use this serial instance for reception