Rev 374 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 374 | Rev 416 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | ## Node specific configuration file |
1 | ## Node specific configuration file |
| 2 |
|
2 | # This configuration sets up a NodeEssential, v2 with ID 2. The AVR is using internal clock source, 8MHz |
| - | 3 | # Rename this file to config.inc and then modify the params below |
|
| 3 | 4 | ||
| 4 | HW_NAME=NodeEssential |
5 | HW_NAME=NodeEssential |
| 5 | HW_VERSION=2 |
6 | HW_VERSION=2 |
| 6 | 7 | ||
| 7 |
|
8 | # NODE_ID should be allocated from a database and not specified here (not done yet though) |
| - | 9 | # This number should be unique on your network |
|
| 8 | NODE_ID=2 |
10 | NODE_ID=2 |
| - | 11 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
|
| 9 |
|
12 | F_CPU=8000000UL |
| 10 | 13 | ||
| 11 | #---MEGA8--- |
14 | #---MEGA8--- |
| 12 | #MCU=atmega8 |
15 | #MCU=atmega8 |
| 13 | #HIGHFUSE=0xd4 |
16 | #HIGHFUSE=0xd4 |
| 14 | #LOWFUSE=0x24 |
17 | #LOWFUSE=0x24 |
| 15 | #BOOT_START=0x1e00 |
18 | #BOOT_START=0x1e00 |
| 16 | 19 | ||
| 17 | #---MEGA88--- |
20 | #---MEGA88--- |
| 18 | MCU=atmega88 |
21 | MCU=atmega88 |
| 19 | HIGHFUSE=0xdc |
22 | HIGHFUSE=0xdc |
| 20 |
|
23 | LOWFUSE=0xe2 |
| 21 | EXTFUSE=0x04 |
24 | EXTFUSE=0x04 |
| 22 | BOOT_START=0x1E00 |
25 | BOOT_START=0x1E00 |
| 23 | 26 | ||
| 24 | #---mega168--- |
27 | #---mega168--- |
| 25 | #MCU=atmega168 |
28 | #MCU=atmega168 |
| Line 35... | Line 38... | ||
| 35 | 38 | ||
| 36 | 39 | ||
| 37 | #Some usual settings of fuses |
40 | #Some usual settings of fuses |
| 38 | #LOWFUSE for mega88 and mega168 |
41 | #LOWFUSE for mega88 and mega168 |
| 39 | #0xe7 #CKDIV8=1, external crystal |
42 | #0xe7 #CKDIV8=1, external crystal |
| 40 | #0xe0 #CKDIV8=1, external clock |
43 | #0xe0 #CKDIV8=1, external clock (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz) |
| 41 | #0xe2 #CKDIV8=1, internal RC |
44 | #0xe2 #CKDIV8=1, internal RC (internal AVR-clock, F_CPU should be 8MHz) |
| 42 | #LOWFUSE for mega8 |
45 | #LOWFUSE for mega8 |
| 43 | #0x24 #BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz |
46 | #0x24 #BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz |
| 44 | #0x20 #BODLEVEL = 4.0V, BODEN=enabled, external clock |
47 | #0x20 #BODLEVEL = 4.0V, BODEN=enabled, external clock |