Rev 219 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 219 | Rev 247 | ||
|---|---|---|---|
| Line 9... | Line 9... | ||
| 9 | 9 | ||
| 10 | 10 | ||
| 11 | /*----------------------------------------------------------------------------- |
11 | /*----------------------------------------------------------------------------- |
| 12 | * Defines |
12 | * Defines |
| 13 | *---------------------------------------------------------------------------*/ |
13 | *---------------------------------------------------------------------------*/ |
| - | 14 | /* Enable timer2 if you want to use as many PWM outputs as possible */ |
|
| - | 15 | #define TIMER2 |
|
| - | 16 | ||
| 14 | #define TIMEBASE_PRESCALE (64) |
17 | #define TIMEBASE_PRESCALE (64) |
| 15 | #define TIMEBASE_HITS_PER_1MS (F_OSC/TIMEBASE_PRESCALE/1000) |
18 | #define TIMEBASE_HITS_PER_1MS (F_OSC/TIMEBASE_PRESCALE/1000) |
| 16 | 19 | ||
| 17 | #if TIMEBASE_HITS_PER_1MS > 255 |
20 | #if TIMEBASE_HITS_PER_1MS > 255 |
| 18 | #undef TIMEBASE_PRESCALE |
21 | #undef TIMEBASE_PRESCALE |