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.
Fork of DDRO_Farrari by
serialIO.h@6:d772ad205bc7, 2014-02-11 (annotated)
- Committer:
- josewang
- Date:
- Tue Feb 11 05:24:56 2014 +0000
- Revision:
- 6:d772ad205bc7
Successful reliable data transmission using USB serial interrupt
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| josewang | 6:d772ad205bc7 | 1 | #ifndef SERIALIO_H |
| josewang | 6:d772ad205bc7 | 2 | #define SERIALIO_H |
| josewang | 6:d772ad205bc7 | 3 | |
| josewang | 6:d772ad205bc7 | 4 | #include "pinout.h" |
| josewang | 6:d772ad205bc7 | 5 | |
| josewang | 6:d772ad205bc7 | 6 | const int buffer_size = 255; |
| josewang | 6:d772ad205bc7 | 7 | |
| josewang | 6:d772ad205bc7 | 8 | extern char rx_line[]; |
| josewang | 6:d772ad205bc7 | 9 | extern char tx_line[]; |
| josewang | 6:d772ad205bc7 | 10 | // functions for sending data |
| josewang | 6:d772ad205bc7 | 11 | extern void send_line(); |
| josewang | 6:d772ad205bc7 | 12 | extern void Tx_interrupt(); |
| josewang | 6:d772ad205bc7 | 13 | // functions for receiving data |
| josewang | 6:d772ad205bc7 | 14 | extern void read_line(); |
| josewang | 6:d772ad205bc7 | 15 | extern void Rx_interrupt(); |
| josewang | 6:d772ad205bc7 | 16 | #endif |
