Guest User

RTC.c

a guest
May 18th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. /*
  2.  * RTC.c
  3.  *
  4.  *  Created on: 16 mai 2013
  5.  *      Author: Valentin
  6.  */
  7.  
  8. #include "RTC.h"
  9.  
  10. volatile uint16_t minutes = 0;      // Minutes (0 to 12*60-1)
  11. volatile uint8_t count_time;        // 4th of seconds counter
  12. struct Time temps;
  13.  
  14.  
  15.  
  16. const uint8_t pinDir[16] = {0x09, 0x11, 0x21, 0x21,     // 0-3
  17.                             0x30, 0x30, 0x22, 0x22,     // 4-7
  18.                             0x12, 0x28, 0x18, 0x12,     // 8-11
  19.                             0x09, 0x11, 0x18, 0x28};    // minutes 1-4
  20.  
  21. const uint8_t pinOut[16] = {0x08, 0x01, 0x20, 0x01,     // 0-3
  22.                             0x10, 0x20, 0x20, 0x02,     // 4-7
  23.                             0x10, 0x08, 0x08, 0x02,     // 8-11
  24.                             0x01, 0x10, 0x10, 0x20};    // minutes 1-4
Advertisement
Add Comment
Please, Sign In to add comment