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