Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API nRF51822 mbed-dev-bin
Diff: inc/drivers/MicroBitSerial.h
- Revision:
- 22:23d7b9a4b082
- Parent:
- 1:8aa5cdb4ab67
- Child:
- 23:6055f6c19fa6
--- 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