Advertisement
ripred

CompileTime.h

Dec 5th, 2023 (edited)
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. /*
  2.  * CompileTime.h
  3.  *
  4.  * header file for the CompileTime library
  5.  *
  6.  * version 1.0 written June 2023 - Trent M. Wyatt
  7.  *
  8.  */
  9. #ifndef COMPILETIME_H_INCL
  10. #define COMPILETIME_H_INCL
  11.  
  12. #include <inttypes.h>
  13.  
  14. namespace CompileTime {
  15.  
  16. // Global values used at runtime
  17. extern uint32_t startTime;
  18. extern volatile int16_t second, hour, minute;
  19. extern volatile int16_t year, month, day;
  20. extern uint32_t uSecAdjust;
  21.  
  22. void setCompileTime(uint32_t const upload);
  23. void updateTime(uint32_t const now);
  24.  
  25. int isEepromValid();
  26. void writeEepromCalibrate(uint32_t cal_us);
  27.  
  28. }
  29. #endif // COMPILETIME_H_INCL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement