Rev 203 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 203 | Rev 221 | ||
|---|---|---|---|
| Line 26... | Line 26... | ||
| 26 | 26 | ||
| 27 | /*----------------------------------------------------------------------------- |
27 | /*----------------------------------------------------------------------------- |
| 28 | * Main Program |
28 | * Main Program |
| 29 | *---------------------------------------------------------------------------*/ |
29 | *---------------------------------------------------------------------------*/ |
| 30 | int main(void) { |
30 | int main(void) { |
| - | 31 | Mcu_Init(); |
|
| 31 | Timebase_Init(); |
32 | Timebase_Init(); |
| 32 | Serial_Init(); |
33 | Serial_Init(); |
| 33 | #if defined(__AVR_ATmega88__) |
- | |
| 34 | // set the clock speed to 8MHz |
- | |
| 35 | // set the clock prescaler. First write CLKPCE to enable setting of clock the |
- | |
| 36 | // next four instructions. |
- | |
| 37 | CLKPR=(1<<CLKPCE); |
- | |
| 38 | CLKPR=0; // 8 MHZ |
- | |
| 39 | #endif |
- | |
| 40 | 34 | ||
| 41 | sei(); |
35 | sei(); |
| 42 | 36 | ||
| 43 | IRDDR &= ~(1<<IRBIT); |
37 | IRDDR &= ~(1<<IRBIT); |
| 44 | 38 | ||