Advertisement
Guest User

RTC.h

a guest
May 18th, 2014
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. /*
  2.  * RTC.h
  3.  *
  4.  *  Created on: 16 mai 2013
  5.  *      Author: Valentin
  6.  */
  7.  
  8. #ifndef RTC_H_
  9. #define RTC_H_
  10.  
  11. #include "msp430.h"
  12. #include <stdint.h>
  13.  
  14. #define MIN_IN_HALF_DAY 720 // minutes in 1/2 day (12*60)
  15. #define LED_MASK 0x3B
  16.  
  17. struct Time {
  18.     uint8_t min_rough;          // Rough minutes
  19.     uint8_t min_precise;        // Precise minutes
  20.     uint8_t hour;               // Hours (12h format)
  21. };
  22.  
  23. #endif /* RTC_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement