Subversion Repositories HomeAutomation

Rev

Details | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
85 johboh 1
/*********************************************************************
2
 *
86 johboh 3
 *                  Ticker module header file
85 johboh 4
 *
5
 *********************************************************************
86 johboh 6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canBase/Include/Tick.h $
7
 * Last changed:    $LastChangedDate: 2007-03-03 19:07:14 +0100 (Sat, 03 Mar 2007) $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 353 $
85 johboh 10
 ********************************************************************/
11
 
12
#ifndef TICK_H
13
#define TICK_H
14
 
353 johboh 15
#include <Compiler.h>
85 johboh 16
#include <stackTasks.h>
353 johboh 17
#include <typedefs.h>
85 johboh 18
 
19
typedef unsigned long TICK;
20
 
353 johboh 21
#define TICK_1S    (TICK)100
22
#define TICK_100MS  (TICK)10
85 johboh 23
 
353 johboh 24
#define TICK_COUNTER 62411
25
#define TICK_PRESCALE 0b100 //32
85 johboh 26
 
27
void tickInit(void);
28
TICK tickGet(void);
29
void tickUpdate(void);
30
 
31
#endif