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.
Dependents: Autoflight2018_22_MODSERIAL
Fork of MODSERIAL by
Diff: example2.cpp
- Revision:
- 18:21ef26402365
- Parent:
- 15:a1d9e745d71e
--- a/example2.cpp Tue Mar 08 01:42:25 2011 +0000
+++ b/example2.cpp Thu Apr 21 09:20:41 2011 +0000
@@ -99,9 +99,11 @@
char messageBufferOutgoing[MESSAGE_BUFFER_SIZE];
bool messageReceived;
-void messageReceive(void) {
- messageSystem.move(messageBufferIncoming, MESSAGE_BUFFER_SIZE);
+void messageReceive(MODSERIAL_IRQ_INFO *q) {
+ MODSERIAL *sys = q->serial;
+ sys->move(messageBufferIncoming, MESSAGE_BUFFER_SIZE);
messageReceived = true;
+ return 0;
}
void messageProcess(void) {
