Subversion Repositories EngineBay2

Rev

Rev 9 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * misc.h
  3.  *
  4.  *  Created on: 21 Sep 2016
  5.  *      Author: Mike
  6.  *
  7.  *      $Log$
  8.  */
  9.  
  10. #ifndef MISC_H_
  11. #define MISC_H_
  12.  
  13. extern void _init(void);
  14.  
  15.  
  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;
  23.  
  24. extern volatile char NoSerialInCTR; // Missing characters coming in on USART1
  25. extern volatile char NoSerialIn;
  26.  
  27. extern void resetSerialTimeout(void);
  28.  
  29.  
  30. #endif /* MISC_H_ */
  31.