Subversion Repositories HomeAutomation

Rev

Go to most recent revision | Details | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
51 johboh 1
/*********************************************************************
2
 *
3
 *                  Stack specific
4
 *
5
 *********************************************************************
97 johboh 6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canToSerial/Include/stackTasks.h $
7
 * Last changed:    $LastChangedDate: 2006-11-14 21:22:17 +0100 (Tue, 14 Nov 2006) $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 97 $
51 johboh 10
 ********************************************************************/
11
 
12
#ifndef stackTasks_H
13
#define stackTasks_H
14
 
15
#define USE_CAN
16
#define USE_UART
17
 
18
#define TICKS_PER_SECOND               (100)        // 10ms
19
 
20
#if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255)
21
#error Invalid TICKS_PER_SECONDS specified.
22
#endif
23
 
24
/*
25
 * Manually select prescale value to achieve necessary tick period
26
 * for a given clock frequency.
27
 */
28
#define TICK_PRESCALE_VALUE             (256)
29
 
30
 
31
 
32
#endif