Subversion Repositories HomeAutomation

Rev

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

Rev 51 Rev 73
1
/*********************************************************************
1
/*********************************************************************
2
 *
2
 *
3
 *                  Stack specific
3
 *                  Stack specific
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:        stackTasks.h
6
 * FileName:        stackTasks.h
7
 *
7
 *
8
 * Author               Date    Comment
8
 * Author               Date    Comment
9
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
 * Johan Böhlin     21-10-06    Original        (Rev 1.0)
10
 * Johan Böhlin     21-10-06    Original        (Rev 1.0)
11
 ********************************************************************/
11
 ********************************************************************/
12
 
12
 
13
#ifndef stackTasks_H
13
#ifndef stackTasks_H
14
#define stackTasks_H
14
#define stackTasks_H
15
 
15
 
16
#define USE_CAN
16
#define USE_CAN
17
#define USE_UART
17
#define USE_UART
18
 
18
 
19
#define TICKS_PER_SECOND               (100)        // 10ms
19
#define TICKS_PER_SECOND               (100)        // 10ms
20
 
20
 
21
#if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255)
21
#if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255)
22
#error Invalid TICKS_PER_SECONDS specified.
22
#error Invalid TICKS_PER_SECONDS specified.
23
#endif
23
#endif
24
 
24
 
25
/*
25
/*
26
 * Manually select prescale value to achieve necessary tick period
26
 * Manually select prescale value to achieve necessary tick period
27
 * for a given clock frequency.
27
 * for a given clock frequency.
28
 */
28
 */
29
#define TICK_PRESCALE_VALUE             (256)
29
#define TICK_PRESCALE_VALUE             (256)
30
 
30
 
31
 
31
 
32
 
32
 
33
#endif
33
#endif
34
 
34