Rev 9 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9 | Rev 28 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * misc.h |
2 | * misc.h |
3 | * |
3 | * |
4 | * Created on: 21 Sep 2016 |
4 | * Created on: 21 Sep 2016 |
5 | * Author: Mike |
5 | * Author: Mike |
- | 6 | * |
|
- | 7 | * $Log$ |
|
6 | */ |
8 | */ |
7 | 9 | ||
8 | #ifndef MISC_H_ |
10 | #ifndef MISC_H_ |
9 | #define MISC_H_ |
11 | #define MISC_H_ |
10 | 12 | ||
Line 12... | Line 14... | ||
12 | 14 | ||
13 | 15 | ||
14 | #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing |
16 | #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing |
15 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz |
17 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz |
16 | 18 | ||
17 | extern volatile unsigned long RPM_Time[]; // sampled on falling edge |
19 | extern volatile unsigned long RPM_Time[]; // sampled on both edges |
- | 20 | extern volatile unsigned char RPM_Level[]; // level at time of sampling |
|
18 | extern volatile unsigned long RPM_Count; // incremented every reading |
21 | extern volatile unsigned long RPM_Count; // incremented every reading |
19 | extern volatile char TimerFlag; |
22 | extern volatile char TimerFlag; |
20 | 23 | ||
21 | extern volatile char NoSerialInCTR; // Missing characters coming in on USART1 |
24 | extern volatile char NoSerialInCTR; // Missing characters coming in on USART1 |
22 | extern volatile char NoSerialIn; |
25 | extern volatile char NoSerialIn; |
23 | 26 | ||
- | 27 | extern void resetSerialTimeout(void); |
|
- | 28 | ||
- | 29 | ||
24 | #endif /* MISC_H_ */ |
30 | #endif /* MISC_H_ */ |