Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 361 | andfri | 1 | ## Node specific configuration file |
| 416 | arune | 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 |
||
| 361 | andfri | 4 | |
| 5 | HW_NAME=NodeEssential |
||
| 368 | arune | 6 | HW_VERSION=2 |
| 361 | andfri | 7 | |
| 416 | arune | 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 |
||
| 423 | eqlazer | 10 | NODE_ID=0x02 |
| 416 | arune | 11 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
| 12 | F_CPU=8000000UL |
||
| 361 | andfri | 13 | |
| 373 | arune | 14 | #---MEGA8--- |
| 368 | arune | 15 | #MCU=atmega8 |
| 16 | #HIGHFUSE=0xd4 |
||
| 17 | #LOWFUSE=0x24 |
||
| 18 | #BOOT_START=0x1e00 |
||
| 19 | |||
| 373 | arune | 20 | #---MEGA88--- |
| 368 | arune | 21 | MCU=atmega88 |
| 22 | HIGHFUSE=0xdc |
||
| 416 | arune | 23 | LOWFUSE=0xe2 |
| 368 | arune | 24 | EXTFUSE=0x04 |
| 373 | arune | 25 | BOOT_START=0x1E00 |
| 361 | andfri | 26 | |
| 373 | arune | 27 | #---mega168--- |
| 28 | #MCU=atmega168 |
||
| 29 | #HIGHFUSE=0xdc |
||
| 422 | eqlazer | 30 | #LOWFUSE=0xe2 |
| 373 | arune | 31 | #EXTFUSE=0x02 |
| 374 | arune | 32 | #BOOT_START=0x3C00 |
| 373 | arune | 33 | |
| 361 | andfri | 34 | # CAN configuration |
| 35 | CAN_CONTROLLER=MCP2515 |
||
| 368 | arune | 36 | MCP_CLOCK_FREQ_MHZ=20 |
| 422 | eqlazer | 37 | MCP_CAN_BITRATE_KBPS=250 |
| 368 | arune | 38 | |
| 373 | arune | 39 | |
| 368 | arune | 40 | #Some usual settings of fuses |
| 373 | arune | 41 | #LOWFUSE for mega88 and mega168 |
| 368 | arune | 42 | #0xe7 #CKDIV8=1, external crystal |
| 416 | arune | 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) |
||
| 368 | arune | 45 | #LOWFUSE for mega8 |
| 46 | #0x24 #BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz |
||
| 373 | arune | 47 | #0x20 #BODLEVEL = 4.0V, BODEN=enabled, external clock |