VFD modular clock firmware
Dependencies: DipCortex-EEprom RTC flw mbed
features.h@9:4bb5c30a475f, 2015-02-20 (annotated)
- Committer:
- Backstrom
- Date:
- Fri Feb 20 10:08:50 2015 +0000
- Revision:
- 9:4bb5c30a475f
- Parent:
- 0:f6e68b4ce169
Update flw library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Backstrom | 0:f6e68b4ce169 | 1 | /* |
Backstrom | 0:f6e68b4ce169 | 2 | * VFD Modular Clock - mbed |
Backstrom | 0:f6e68b4ce169 | 3 | * (C) 2011-14 Akafugu Corporation |
Backstrom | 0:f6e68b4ce169 | 4 | * |
Backstrom | 0:f6e68b4ce169 | 5 | * This program is free software; you can redistribute it and/or modify it under the |
Backstrom | 0:f6e68b4ce169 | 6 | * terms of the GNU General Public License as published by the Free Software |
Backstrom | 0:f6e68b4ce169 | 7 | * Foundation; either version 2 of the License, or (at your option) any later |
Backstrom | 0:f6e68b4ce169 | 8 | * version. |
Backstrom | 0:f6e68b4ce169 | 9 | * |
Backstrom | 0:f6e68b4ce169 | 10 | * This program is distributed in the hope that it will be useful, but WITHOUT ANY |
Backstrom | 0:f6e68b4ce169 | 11 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
Backstrom | 0:f6e68b4ce169 | 12 | * PARTICULAR PURPOSE. See the GNU General Public License for more details. |
Backstrom | 0:f6e68b4ce169 | 13 | * |
Backstrom | 0:f6e68b4ce169 | 14 | */ |
Backstrom | 0:f6e68b4ce169 | 15 | |
Backstrom | 0:f6e68b4ce169 | 16 | #ifndef FEATURES_H_ |
Backstrom | 0:f6e68b4ce169 | 17 | #define FEATURES_H_ |
Backstrom | 0:f6e68b4ce169 | 18 | |
Backstrom | 0:f6e68b4ce169 | 19 | #define YES 2 |
Backstrom | 0:f6e68b4ce169 | 20 | #define NO 1 |
Backstrom | 0:f6e68b4ce169 | 21 | |
Backstrom | 0:f6e68b4ce169 | 22 | /////////////////////////////////////////// |
Backstrom | 0:f6e68b4ce169 | 23 | |
Backstrom | 0:f6e68b4ce169 | 24 | #if !(defined FEATURE_3BUTTON) || FEATURE_3BUTTON < NO || FEATURE_3BUTTON > YES |
Backstrom | 0:f6e68b4ce169 | 25 | # error Must define FEATURE_3BUTTON to be YES or NO |
Backstrom | 0:f6e68b4ce169 | 26 | #endif |
Backstrom | 0:f6e68b4ce169 | 27 | |
Backstrom | 0:f6e68b4ce169 | 28 | #if FEATURE_3BUTTON == YES |
Backstrom | 0:f6e68b4ce169 | 29 | #define HAVE_3BUTTON |
Backstrom | 0:f6e68b4ce169 | 30 | #endif |
Backstrom | 0:f6e68b4ce169 | 31 | |
Backstrom | 0:f6e68b4ce169 | 32 | /////////////////////////////////////////// |
Backstrom | 0:f6e68b4ce169 | 33 | |
Backstrom | 0:f6e68b4ce169 | 34 | #if !(defined FEATURE_GPS) || FEATURE_GPS < NO || FEATURE_GPS > YES |
Backstrom | 0:f6e68b4ce169 | 35 | # error Must define FEATURE_GPS to be YES or NO |
Backstrom | 0:f6e68b4ce169 | 36 | #endif |
Backstrom | 0:f6e68b4ce169 | 37 | |
Backstrom | 0:f6e68b4ce169 | 38 | #if FEATURE_GPS == YES |
Backstrom | 0:f6e68b4ce169 | 39 | #define HAVE_GPS |
Backstrom | 0:f6e68b4ce169 | 40 | #endif |
Backstrom | 0:f6e68b4ce169 | 41 | |
Backstrom | 0:f6e68b4ce169 | 42 | /////////////////////////////////////////// |
Backstrom | 0:f6e68b4ce169 | 43 | |
Backstrom | 0:f6e68b4ce169 | 44 | #if !(defined FEATURE_DS1302) || FEATURE_DS1302 < NO || FEATURE_DS1302 > YES |
Backstrom | 0:f6e68b4ce169 | 45 | # error Must define FEATURE_DS1302 to be YES or NO |
Backstrom | 0:f6e68b4ce169 | 46 | #endif |
Backstrom | 0:f6e68b4ce169 | 47 | |
Backstrom | 0:f6e68b4ce169 | 48 | #if FEATURE_DS1302 == YES |
Backstrom | 0:f6e68b4ce169 | 49 | #define HAVE_DS1302 |
Backstrom | 0:f6e68b4ce169 | 50 | #endif |
Backstrom | 0:f6e68b4ce169 | 51 | |
Backstrom | 0:f6e68b4ce169 | 52 | /////////////////////////////////////////// |
Backstrom | 0:f6e68b4ce169 | 53 | |
Backstrom | 0:f6e68b4ce169 | 54 | #if !(defined FEATURE_DS3231M) || FEATURE_DS3231M < NO || FEATURE_DS3231M > YES |
Backstrom | 0:f6e68b4ce169 | 55 | # error Must define FEATURE_DS3231M to be YES or NO |
Backstrom | 0:f6e68b4ce169 | 56 | #endif |
Backstrom | 0:f6e68b4ce169 | 57 | |
Backstrom | 0:f6e68b4ce169 | 58 | #if FEATURE_DS3231M == YES |
Backstrom | 0:f6e68b4ce169 | 59 | #define HAVE_DS3231M |
Backstrom | 0:f6e68b4ce169 | 60 | #endif |
Backstrom | 0:f6e68b4ce169 | 61 | |
Backstrom | 0:f6e68b4ce169 | 62 | #if FEATURE_DS1302 == YES && FEATURE_DS3231M == YES |
Backstrom | 0:f6e68b4ce169 | 63 | # error Use either FEATURE_DS1202 or FEATURE_DS3231M, not both |
Backstrom | 0:f6e68b4ce169 | 64 | #endif |
Backstrom | 0:f6e68b4ce169 | 65 | |
Backstrom | 0:f6e68b4ce169 | 66 | #endif /* FEATURES_H_ */ |