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: EthernetInterface mbed-rtos
SerialDevice.h@7:6c7af1d50fb3, 2013-08-29 (annotated)
- Committer:
- ysuga
- Date:
- Thu Aug 29 05:29:55 2013 +0000
- Revision:
- 7:6c7af1d50fb3
- Parent:
- 1:f74116b37bc9
update v5
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ysuga | 0:5f7bc45bc2e8 | 1 | #ifndef SERIAL_DEVICE_HEADER_INCLUDED |
| ysuga | 0:5f7bc45bc2e8 | 2 | #define SERIAL_DEVICE_HEADER_INCLUDED |
| ysuga | 0:5f7bc45bc2e8 | 3 | |
| ysuga | 0:5f7bc45bc2e8 | 4 | #include <stdint.h> |
| ysuga | 0:5f7bc45bc2e8 | 5 | |
| ysuga | 1:f74116b37bc9 | 6 | #define TIMEOUT 1 |
| ysuga | 1:f74116b37bc9 | 7 | |
| ysuga | 1:f74116b37bc9 | 8 | |
| ysuga | 0:5f7bc45bc2e8 | 9 | extern void(*SerialDevice_putc)(const char c); |
| ysuga | 0:5f7bc45bc2e8 | 10 | extern uint8_t(*SerialDevice_available)(); |
| ysuga | 1:f74116b37bc9 | 11 | extern uint8_t(*SerialDevice_getc)(); |
| ysuga | 0:5f7bc45bc2e8 | 12 | |
| ysuga | 1:f74116b37bc9 | 13 | extern int32_t INFINITE; |
| ysuga | 1:f74116b37bc9 | 14 | int8_t SerialDevice_read(uint8_t* buffer, const uint8_t size, const int32_t &wait_usec=INFINITE); |
| ysuga | 0:5f7bc45bc2e8 | 15 | #endif |