Subversion Repositories EngineBay2

Rev

Rev 3 | Go to most recent revision | 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.  
  8. #ifndef MISC_H_
  9. #define MISC_H_
  10.  
  11. extern void _init(void);
  12.  
  13.  
  14. #define RPM_SAMPLES 256 // sample times per 100mS or 1000mS when testing
  15. #define RPM_COUNT_RATE 100000UL // Counter increments at 100KHz
  16.  
  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.  
  24. #endif /* MISC_H_ */
  25.