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.
defines.h@8:7c56fb1ed8c0, 2017-10-25 (annotated)
- Committer:
- ThierryLeonard
- Date:
- Wed Oct 25 04:17:42 2017 +0000
- Revision:
- 8:7c56fb1ed8c0
- Parent:
- 7:332766fb3114
No guarantees
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ThierryLeonard | 6:ac7c0ccf9b5d | 1 | #ifndef DEFINES_H |
ThierryLeonard | 6:ac7c0ccf9b5d | 2 | #define DEFINES_H |
ThierryLeonard | 6:ac7c0ccf9b5d | 3 | |
ThierryLeonard | 8:7c56fb1ed8c0 | 4 | |
ThierryLeonard | 8:7c56fb1ed8c0 | 5 | // Test for minimal period |
ThierryLeonard | 8:7c56fb1ed8c0 | 6 | //#define TESTPERIOD |
ThierryLeonard | 8:7c56fb1ed8c0 | 7 | |
ThierryLeonard | 8:7c56fb1ed8c0 | 8 | #ifndef TESTPERIOD |
ThierryLeonard | 8:7c56fb1ed8c0 | 9 | |
ThierryLeonard | 6:ac7c0ccf9b5d | 10 | extern const int us_period ; |
ThierryLeonard | 7:332766fb3114 | 11 | extern const int us_timeout ; |
ThierryLeonard | 7:332766fb3114 | 12 | extern const int us_prepare ; |
ThierryLeonard | 7:332766fb3114 | 13 | |
ThierryLeonard | 8:7c56fb1ed8c0 | 14 | #else |
ThierryLeonard | 8:7c56fb1ed8c0 | 15 | extern int us_period ; |
ThierryLeonard | 8:7c56fb1ed8c0 | 16 | #define us_timeout us_period*5/4 |
ThierryLeonard | 8:7c56fb1ed8c0 | 17 | #define us_prepare us_period*3/4 |
ThierryLeonard | 8:7c56fb1ed8c0 | 18 | |
ThierryLeonard | 8:7c56fb1ed8c0 | 19 | #endif |
ThierryLeonard | 8:7c56fb1ed8c0 | 20 | |
ThierryLeonard | 6:ac7c0ccf9b5d | 21 | extern const unsigned char preamble_byte ; |
ThierryLeonard | 6:ac7c0ccf9b5d | 22 | |
ThierryLeonard | 6:ac7c0ccf9b5d | 23 | extern const unsigned char STARTBYTE ; |
ThierryLeonard | 6:ac7c0ccf9b5d | 24 | extern const unsigned char ENDBYTE ; |
ThierryLeonard | 6:ac7c0ccf9b5d | 25 | |
ThierryLeonard | 6:ac7c0ccf9b5d | 26 | |
ThierryLeonard | 6:ac7c0ccf9b5d | 27 | #endif |