Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 3 | mjames | 1 | /* |
| 2 | * misc.h |
||
| 3 | * |
||
| 4 | * Created on: 21 Sep 2016 |
||
| 5 | * Author: Mike |
||
| 6 | */ |
||
| 7 | |||
| 8 | #ifndef MISC_H_ |
||
| 9 | #define MISC_H_ |
||
| 10 | |||
| 11 | extern void _init(void); |
||
| 12 | |||
| 13 | |||
| 9 | mjames | 14 | #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing |
| 15 | #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz |
||
| 3 | mjames | 16 | |
| 9 | mjames | 17 | extern volatile unsigned long RPM_Time[]; // sampled on falling edge |
| 18 | extern volatile unsigned long RPM_Count; // incremented every reading |
||
| 19 | extern volatile char TimerFlag; |
||
| 20 | |||
| 21 | extern volatile char NoSerialInCTR; // Missing characters coming in on USART1 |
||
| 22 | extern volatile char NoSerialIn; |
||
| 23 | |||
| 3 | mjames | 24 | #endif /* MISC_H_ */ |