forking microbit-dal

Dependencies:   BLE_API mbed-dev-bin nRF51822-bluetooth-mdw

Fork of microbit-dal by Martin Woolley

Revision:
22:23d7b9a4b082
Parent:
1:8aa5cdb4ab67
Child:
23:6055f6c19fa6
diff -r cab56b701601 -r 23d7b9a4b082 inc/drivers/MicroBitSerial.h
--- a/inc/drivers/MicroBitSerial.h	Wed Jul 13 12:17:53 2016 +0100
+++ b/inc/drivers/MicroBitSerial.h	Wed Jul 13 12:17:54 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
@@ -584,4 +588,4 @@
 
 };
 
-#endif
+#endif
\ No newline at end of file