PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

31 line
471B

  1. //
  2. // OSCTiming.h
  3. //
  4. //
  5. // Created by AdrianFreed on 11/10/13.
  6. //
  7. //
  8. #ifndef ____OSCTiming__
  9. #define ____OSCTiming__
  10. #include "Arduino.h"
  11. #include <stdlib.h>
  12. #include <stdint.h>
  13. #include <inttypes.h>
  14. typedef struct
  15. {
  16. uint32_t seconds;
  17. uint32_t fractionofseconds;
  18. } osctime_t;
  19. osctime_t oscTime();
  20. int adcRead(int pin, osctime_t *t);
  21. int capacitanceRead(int pin, osctime_t *t);
  22. int inputRead(int pin, uint64_t *t);
  23. #endif /* defined(____OSCTiming__) */