Rev 36 | Rev 48 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 36 | Rev 47 | ||
---|---|---|---|
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 | - | ||
- | 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 |
16 | #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing |
17 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz |
17 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz |
18 | 18 | ||
19 | extern volatile unsigned long RPM_Time[]; // sampled on both edges |
19 | extern volatile unsigned long RPM_Time[]; // sampled on both edges |
20 | extern volatile unsigned char RPM_Level[]; // level at time of sampling |
20 | extern volatile unsigned char RPM_Level[]; // level at time of sampling |