Swimate V2 without RTOS code
Dependencies: Adafruit_GFX_128x64 DS3231 PinDetect SDFileSystem USBDevice mbed RealtimeMath MODSERIAL
sync.h
- Committer:
- ellingjp
- Date:
- 2014-06-09
- Revision:
- 24:f2503d1256ad
- Parent:
- 22:9350752f5414
File content as of revision 24:f2503d1256ad:
#ifndef _SYNC_H #define _SYNC_H bool sync_init(); void sync(); #define CMD_RTCSET 0x01 #define CMD_LISTSESSIONS 0x02 #define CMD_SYNCOLDEST 0x03 #define CMD_DELETEOLDEST 0x04 #define CMD_DONE 0x05 #define ACK 0x06 #define NACK 0x07 #define PACKET_MAX_DATA 110 #define TIMEOUT 5000 #endif // _SYNC_H