Subversion Repositories HomeAutomation

Rev

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

Rev 282 Rev 339
1
/*********************************************************************
1
/*********************************************************************
2
 *
2
 *
3
 *                  Stack specific like which modules to use.
3
 *                  Stack specific like which modules to use.
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Include/stackTasks.h $
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Include/stackTasks.h $
7
 * Last changed:    $LastChangedDate: 2007-02-03 16:58:13 +0100 (Sat, 03 Feb 2007) $
7
 * Last changed:    $LastChangedDate: 2007-02-25 20:51:08 +0100 (Sun, 25 Feb 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 282 $
9
 * Revision:        $Revision: 339 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
#ifndef stackTasks_H
12
#ifndef stackTasks_H
13
#define stackTasks_H
13
#define stackTasks_H
14
 
14
 
15
//#define USE_ADC
15
//#define USE_ADC
16
#define USE_BLINDS
16
//#define USE_BLINDS
17
 
17
 
18
#define TICKS_PER_SECOND               (100)        // 10ms
18
#define TICKS_PER_SECOND               (100)        // 10ms
19
 
19
 
20
#if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255)
20
#if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255)
21
#error Invalid TICKS_PER_SECONDS specified.
21
#error Invalid TICKS_PER_SECONDS specified.
22
#endif
22
#endif
23
 
23
 
24
/*
24
/*
25
 * Manually select prescale value to achieve necessary tick period
25
 * Manually select prescale value to achieve necessary tick period
26
 * for a given clock frequency.
26
 * for a given clock frequency.
27
 */
27
 */
28
#define TICK_PRESCALE_VALUE             (256)
28
#define TICK_PRESCALE_VALUE             (256)
29
 
29
 
30
 
30
 
31
 
31
 
32
#endif
32
#endif
33
 
33