
Library set up as dummy module on mbed to mimic Nordic.
comms.h@0:226550611f0d, 2016-12-12 (annotated)
- Committer:
- Stephen_NewVistas
- Date:
- Mon Dec 12 23:06:58 2016 +0000
- Revision:
- 0:226550611f0d
Got system working on bus, calling registered functions with ACK/NACK/RESPONSE. Need to clean up.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Stephen_NewVistas | 0:226550611f0d | 1 | #ifndef COMMS_H |
Stephen_NewVistas | 0:226550611f0d | 2 | #define COMMS_H |
Stephen_NewVistas | 0:226550611f0d | 3 | |
Stephen_NewVistas | 0:226550611f0d | 4 | #include "mbed.h" |
Stephen_NewVistas | 0:226550611f0d | 5 | |
Stephen_NewVistas | 0:226550611f0d | 6 | //global hardware |
Stephen_NewVistas | 0:226550611f0d | 7 | extern I2C i2c; |
Stephen_NewVistas | 0:226550611f0d | 8 | extern Serial pc; |
Stephen_NewVistas | 0:226550611f0d | 9 | extern Serial bus; |
Stephen_NewVistas | 0:226550611f0d | 10 | |
Stephen_NewVistas | 0:226550611f0d | 11 | |
Stephen_NewVistas | 0:226550611f0d | 12 | void initComms(); |
Stephen_NewVistas | 0:226550611f0d | 13 | |
Stephen_NewVistas | 0:226550611f0d | 14 | |
Stephen_NewVistas | 0:226550611f0d | 15 | void debugLog( char* fmt, ...); |
Stephen_NewVistas | 0:226550611f0d | 16 | |
Stephen_NewVistas | 0:226550611f0d | 17 | #endif |