3D printed Arduino Airsoft Chronograph
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

timing.h 434B

123456789101112131415161718192021222324
  1. /*
  2. * timing.h
  3. *
  4. * OpenChrono BB speed measurement device.
  5. *
  6. * Copyright (c) 2022 Thomas Buck <thomas@xythobuz.de>
  7. *
  8. * Two phototransistors connected to external interrupts 0 and 1.
  9. */
  10. #ifndef __TIMING_H__
  11. #define __TIMING_H__
  12. extern volatile uint8_t trigger_a, trigger_b;
  13. extern volatile uint16_t time_a, time_b;
  14. void interrupt_init();
  15. void timer_init();
  16. uint16_t timer_get();
  17. void timer_start();
  18. #endif // __TIMING_H__