Rev 47 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 47 | Rev 48 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | #ifndef MISC_H_ |
10 | #ifndef MISC_H_ |
11 | #define MISC_H_ |
11 | #define MISC_H_ |
12 | 12 | ||
13 | extern void _init(void); |
13 | extern void _init(void); |
14 | 14 | ||
15 | #define RPM_FLAG (1UL<<16) // set high if the CB points are opened |
- | |
16 | #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing |
- | |
17 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz |
- | |
18 | - | ||
19 | extern volatile unsigned long RPM_Time[]; // sampled on both edges |
- | |
20 | extern volatile unsigned char RPM_Level[]; // level at time of sampling |
- | |
21 | extern volatile unsigned long RPM_Count; // incremented every reading |
- | |
22 | extern volatile char TimerFlag; |
15 | extern volatile char TimerFlag; |
23 | 16 | ||
24 | extern volatile char NoSerialInCTR; // Missing characters coming in on USART1 |
17 | extern volatile char NoSerialInCTR; // Missing characters coming in on USART1 |
25 | extern volatile char NoSerialIn; |
18 | extern volatile char NoSerialIn; |
26 | 19 |