Subversion Repositories EngineBay2

Rev

Rev 9 | 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
28 mjames 6
 *
7
 *      $Log$
3 mjames 8
 */
9
 
10
#ifndef MISC_H_
11
#define MISC_H_
12
 
13
extern void _init(void);
14
 
15
 
9 mjames 16
#define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing
17
#define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz
3 mjames 18
 
28 mjames 19
extern volatile unsigned long RPM_Time[];  // sampled on both edges
20
extern volatile unsigned char RPM_Level[]; // level at time of sampling
9 mjames 21
extern volatile unsigned long RPM_Count; // incremented every reading
22
extern volatile char TimerFlag;
23
 
24
extern volatile char NoSerialInCTR; // Missing characters coming in on USART1
25
extern volatile char NoSerialIn;
26
 
28 mjames 27
extern void resetSerialTimeout(void);
28
 
29
 
3 mjames 30
#endif /* MISC_H_ */