Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 554 | andfri | 1 | ## Node specific configuration file for bios |
| 361 | andfri | 2 | |
| 769 | arune | 3 | HW_NAME=CoreCard |
| 4 | HW_VERSION=1 |
||
| 361 | andfri | 5 | |
| 585 | arune | 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 |
||
| 8 | # This should not be used on nodes with application under developement |
||
| 9 | #AUTOSTART=5 |
||
| 10 | |||
| 769 | arune | 11 | # Node hardware id, this number should be unique on your network |
| 880 | arune | 12 | # leave as <GENERATE_HW> at first compile, the build will then automatically set it to whatever gets generated (see config.h) |
| 779 | arune | 13 | # Never set this manually if you are not sure what you are doing |
| 769 | arune | 14 | NODE_HW_ID=<GENERATE_HW> |
| 15 | |||
| 16 | # example: |
||
| 17 | #NODE_HW_ID=0x12345678 |
||
| 18 | |||
| 19 | # This number should be unique on your network (for nodes with HW_ID it's not clear if this id is needed) |
||
| 656 | eqlazer | 20 | NODE_ID=0x02UL |
| 416 | arune | 21 | # F_CPU is the clock frequency of your microcontroller, check fuses below for external/internal clock source |
| 22 | F_CPU=8000000UL |
||
| 361 | andfri | 23 | |
| 373 | arune | 24 | #---MEGA8--- |
| 368 | arune | 25 | #MCU=atmega8 |
| 26 | #HIGHFUSE=0xd4 |
||
| 27 | #LOWFUSE=0x24 |
||
| 28 | #BOOT_START=0x1e00 |
||
| 29 | |||
| 373 | arune | 30 | #---MEGA88--- |
| 554 | andfri | 31 | #MCU=atmega88 |
| 32 | #HIGHFUSE=0xdc |
||
| 33 | #LOWFUSE=0xe2 |
||
| 34 | #EXTFUSE=0x04 |
||
| 35 | #BOOT_START=0x1e00 |
||
| 361 | andfri | 36 | |
| 554 | andfri | 37 | #---MEGA168--- |
| 769 | arune | 38 | MCU=atmega168 |
| 39 | HIGHFUSE=0xdc |
||
| 40 | LOWFUSE=0xe2 |
||
| 41 | EXTFUSE=0x02 |
||
| 42 | BOOT_START=0x3c00 |
||
| 373 | arune | 43 | |
| 1415 | arune | 44 | #---MEGA328P--- |
| 45 | #MCU=atmega328p |
||
| 46 | #HIGHFUSE=0xdc |
||
| 47 | #LOWFUSE=0xe2 |
||
| 48 | #EXTFUSE=0x04 |
||
| 49 | #BOOT_START=0x7c00 |
||
| 50 | |||
| 769 | arune | 51 | # CAN configuration (old nodes: PORTB, DDRB, PB2) |
| 361 | andfri | 52 | CAN_CONTROLLER=MCP2515 |
| 769 | arune | 53 | MCP_CS_PORT=PORTC |
| 54 | MCP_CS_DDR=DDRC |
||
| 55 | MCP_CS_BIT=PC3 |
||
| 628 | arune | 56 | MCP_CAN_BITRATE_KBPS=250 |
| 368 | arune | 57 | MCP_CLOCK_FREQ_MHZ=20 |
| 628 | arune | 58 | MCP_CLOCK_PRESC=1 |
| 368 | arune | 59 | |
| 769 | arune | 60 | |
| 61 | |||
| 62 | # Everything below is just help |
||
| 63 | |||
| 628 | arune | 64 | # For MCP_CLOCK_FREQ_MHZ=20 MCP_CLOCK_FREQ_MHZ=16 |
| 65 | # MCP_CLOCK_PRESC external clock external clock |
||
| 66 | # 1 20MHz 16MHz |
||
| 67 | # 2 10MHz 8MHz |
||
| 68 | # 4 5MHz 4MHz |
||
| 69 | # 8 2.5MHz 2MHz |
||
| 70 | # Make sure to change F_CPU accordingly if using external clock on AVR (LOWFUSE) |
||
| 373 | arune | 71 | |
| 628 | arune | 72 | |
| 554 | andfri | 73 | #Some common settings of fuses |
| 74 | #LOWFUSE for mega88 and mega168 |
||
| 368 | arune | 75 | #0xe7 #CKDIV8=1, external crystal |
| 416 | arune | 76 | #0xe0 #CKDIV8=1, external clock (used if mcu is clocked from can-controller, F_CPU should be 16MHz or 20MHz) |
| 77 | #0xe2 #CKDIV8=1, internal RC (internal AVR-clock, F_CPU should be 8MHz) |
||
| 368 | arune | 78 | #LOWFUSE for mega8 |
| 79 | #0x24 #BODLEVEL = 4.0V, BODEN=enabled, internal 8MHz |
||
| 373 | arune | 80 | #0x20 #BODLEVEL = 4.0V, BODEN=enabled, external clock |