Rev 25 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 25 | Rev 50 | ||
|---|---|---|---|
| 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 |
- | |
| 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 | ||