Swimate V2 without RTOS code
Dependencies: Adafruit_GFX_128x64 DS3231 PinDetect SDFileSystem USBDevice mbed RealtimeMath MODSERIAL
sync.h@24:f2503d1256ad, 2014-06-09 (annotated)
- Committer:
- ellingjp
- Date:
- Mon Jun 09 04:55:16 2014 +0000
- Revision:
- 24:f2503d1256ad
- Parent:
- 22:9350752f5414
Using RTC filenames
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ellingjp | 9:a711b5b34d73 | 1 | #ifndef _SYNC_H |
ellingjp | 9:a711b5b34d73 | 2 | #define _SYNC_H |
ellingjp | 9:a711b5b34d73 | 3 | |
ellingjp | 9:a711b5b34d73 | 4 | bool sync_init(); |
ellingjp | 9:a711b5b34d73 | 5 | void sync(); |
ellingjp | 9:a711b5b34d73 | 6 | |
paulbartell | 13:227a6cfd2097 | 7 | #define CMD_RTCSET 0x01 |
paulbartell | 13:227a6cfd2097 | 8 | #define CMD_LISTSESSIONS 0x02 |
briggsa | 18:06b718f8e6fd | 9 | #define CMD_SYNCOLDEST 0x03 |
briggsa | 18:06b718f8e6fd | 10 | #define CMD_DELETEOLDEST 0x04 |
paulbartell | 13:227a6cfd2097 | 11 | #define CMD_DONE 0x05 |
paulbartell | 13:227a6cfd2097 | 12 | #define ACK 0x06 |
paulbartell | 13:227a6cfd2097 | 13 | #define NACK 0x07 |
paulbartell | 13:227a6cfd2097 | 14 | |
ellingjp | 21:2fa676f214fe | 15 | #define PACKET_MAX_DATA 110 |
paulbartell | 13:227a6cfd2097 | 16 | |
ellingjp | 21:2fa676f214fe | 17 | #define TIMEOUT 5000 |
ellingjp | 9:a711b5b34d73 | 18 | #endif // _SYNC_H |