Rev 53 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 53 | Rev 67 | ||
|---|---|---|---|
| Line 12... | Line 12... | ||
| 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 | - | ||
| 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 | 17 | ||
| 31 | 18 | ||
| 32 | #endif |
19 | #endif |