Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 85 | johboh | 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 | |||
| 13 | #ifndef stackTasks_H |
||
| 14 | #define stackTasks_H |
||
| 15 | |||
| 16 | #define USE_CAN |
||
| 17 | |||
| 18 | #define TICKS_PER_SECOND (100) // 10ms |
||
| 19 | |||
| 20 | #if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255) |
||
| 21 | #error Invalid TICKS_PER_SECONDS specified. |
||
| 22 | #endif |
||
| 23 | |||
| 24 | /* |
||
| 25 | * Manually select prescale value to achieve necessary tick period |
||
| 26 | * for a given clock frequency. |
||
| 27 | */ |
||
| 28 | #define TICK_PRESCALE_VALUE (256) |
||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | #endif |