Update vom 10.05.15
Dependencies: FreescaleIAP MODSERIAL mbed monitor timer0
Fork of 18_PT1000 by
main.h@20:b85406f52de3, 2015-05-11 (annotated)
- Committer:
- rs27
- Date:
- Mon May 11 17:32:06 2015 +0000
- Revision:
- 20:b85406f52de3
- Parent:
- 19:f3c41bbc809a
- Child:
- 21:6f524a6caabe
Stand 11.05.15
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rs27 | 19:f3c41bbc809a | 1 | #ifndef MAIN_H |
rs27 | 19:f3c41bbc809a | 2 | #define MAIN_H |
rs27 | 19:f3c41bbc809a | 3 | |
rs27 | 19:f3c41bbc809a | 4 | #define CR 13 |
rs27 | 19:f3c41bbc809a | 5 | #define LED_AUS 0 |
rs27 | 19:f3c41bbc809a | 6 | #define LED_EIN 1 |
rs27 | 19:f3c41bbc809a | 7 | |
rs27 | 19:f3c41bbc809a | 8 | #define BOOL_FMT(bool_expr) (bool_expr) ? "ein" : "aus" |
rs27 | 19:f3c41bbc809a | 9 | |
rs27 | 19:f3c41bbc809a | 10 | struct di_struct { |
rs27 | 19:f3c41bbc809a | 11 | bool aktiv; // Flag zur Steuerung |
rs27 | 19:f3c41bbc809a | 12 | bool old; // alter Wert vom Eingang für Flankenerkennung |
rs27 | 19:f3c41bbc809a | 13 | bool filter; // ein Flankengetriggertes Signal muss mindestens 10ms anliegen |
rs27 | 19:f3c41bbc809a | 14 | bool optischer_alarm; // für die Bestätigung von IN3 |
rs27 | 19:f3c41bbc809a | 15 | bool summer; // Flag für Zeitsteuerung des Summers |
rs27 | 19:f3c41bbc809a | 16 | }; |
rs27 | 19:f3c41bbc809a | 17 | |
rs27 | 19:f3c41bbc809a | 18 | #endif |