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