Subversion Repositories HomeAutomation

Rev

Rev 73 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

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