Rev 656 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 656 | Rev 769 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | ## Node specific configuration file for bios |
1 | ## Node specific configuration file for bios |
| 2 | 2 | ||
| 3 |
|
3 | HW_NAME=CoreCard |
| 4 |
|
4 | HW_VERSION=1 |
| 5 | 5 | ||
| 6 | # Uncomment to make node autostart after X time-msgs has been sent to node |
6 | # Uncomment to make node autostart after X time-msgs has been sent to node |
| 7 | # Do not choose 0 as X, also 1 is a bad choice |
7 | # Do not choose 0 as X, also 1 is a bad choice |
| 8 | # This should not be used on nodes with application under developement |
8 | # This should not be used on nodes with application under developement |
| 9 | #AUTOSTART=5 |
9 | #AUTOSTART=5 |
| 10 | 10 | ||
| 11 | # |
11 | # Node hardware id, this number should be unique on your network |
| - | 12 | # leave as <GENERATE_HW> at first compile, then set it to whatever gets generated (see config.h) |
|
| - | 13 | NODE_HW_ID=<GENERATE_HW> |
|
| - | 14 | ||
| - | 15 | # example: |
|
| - | 16 | #NODE_HW_ID=0x12345678 |
|
| - | 17 | ||
| - | 18 | # This number should be unique on your network (for nodes with HW_ID it's not clear if this id is needed) |
|
| 12 | NODE_ID=0x02UL |
19 | NODE_ID=0x02UL |
| 13 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
20 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
| 14 | F_CPU=8000000UL |
21 | F_CPU=8000000UL |
| 15 | 22 | ||
| 16 | #---MEGA8--- |
23 | #---MEGA8--- |
| 17 | #MCU=atmega8 |
24 | #MCU=atmega8 |
| 18 | #HIGHFUSE=0xd4 |
25 | #HIGHFUSE=0xd4 |
| 19 | #LOWFUSE=0x24 |
26 | #LOWFUSE=0x24 |
| 20 | #BOOT_START=0x1e00 |
27 | #BOOT_START=0x1e00 |
| 21 | 28 | ||
| 22 | #---MEGA88--- |
29 | #---MEGA88--- |
| 23 | #MCU=atmega88 |
30 | #MCU=atmega88 |
| 24 | #HIGHFUSE=0xdc |
31 | #HIGHFUSE=0xdc |
| 25 | #LOWFUSE=0xe2 |
32 | #LOWFUSE=0xe2 |
| 26 | #EXTFUSE=0x04 |
33 | #EXTFUSE=0x04 |
| 27 | #BOOT_START=0x1e00 |
34 | #BOOT_START=0x1e00 |
| 28 | 35 | ||
| 29 | #---MEGA168--- |
36 | #---MEGA168--- |
| 30 |
|
37 | MCU=atmega168 |
| 31 |
|
38 | HIGHFUSE=0xdc |
| 32 |
|
39 | LOWFUSE=0xe2 |
| 33 |
|
40 | EXTFUSE=0x02 |
| 34 |
|
41 | BOOT_START=0x3c00 |
| 35 | 42 | ||
| 36 | # CAN configuration |
43 | # CAN configuration (old nodes: PORTB, DDRB, PB2) |
| 37 | CAN_CONTROLLER=MCP2515 |
44 | CAN_CONTROLLER=MCP2515 |
| 38 |
|
45 | MCP_CS_PORT=PORTC |
| 39 |
|
46 | MCP_CS_DDR=DDRC |
| 40 |
|
47 | MCP_CS_BIT=PC3 |
| 41 | MCP_CAN_BITRATE_KBPS=250 |
48 | MCP_CAN_BITRATE_KBPS=250 |
| 42 | MCP_CLOCK_FREQ_MHZ=20 |
49 | MCP_CLOCK_FREQ_MHZ=20 |
| 43 | MCP_CLOCK_PRESC=1 |
50 | MCP_CLOCK_PRESC=1 |
| - | 51 | ||
| - | 52 | ||
| - | 53 | ||
| - | 54 | # Everything below is just help |
|
| 44 | 55 | ||
| 45 | # For MCP_CLOCK_FREQ_MHZ=20 MCP_CLOCK_FREQ_MHZ=16 |
56 | # For MCP_CLOCK_FREQ_MHZ=20 MCP_CLOCK_FREQ_MHZ=16 |
| 46 | # MCP_CLOCK_PRESC external clock external clock |
57 | # MCP_CLOCK_PRESC external clock external clock |
| 47 | # 1 20MHz 16MHz |
58 | # 1 20MHz 16MHz |
| 48 | # 2 10MHz 8MHz |
59 | # 2 10MHz 8MHz |