mbed.org local branch of microbit-dal. The real version lives in git at https://github.com/lancaster-university/microbit-dal
Dependencies: BLE_API nRF51822 mbed-dev-bin
Dependents: microbit Microbit IoTChallenge1 microbit ... more
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