Mercurial > pihelp
comparison Makefile @ 35:cce426bb6d3e
fix rng and short watchdog
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 27 Jun 2013 05:40:00 +0000 |
parents | b210df11f968 |
children | d07aa7644c66 |
comparison
equal
deleted
inserted
replaced
34:b210df11f968 | 35:cce426bb6d3e |
---|---|
19 | 19 |
20 DEVICE = atmega328p | 20 DEVICE = atmega328p |
21 PROGDEVICE = atmega328p | 21 PROGDEVICE = atmega328p |
22 CLOCK = 11059200L | 22 CLOCK = 11059200L |
23 PROGRAMMER = #-c stk500v2 -P avrdoper | 23 PROGRAMMER = #-c stk500v2 -P avrdoper |
24 PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) -B 2 | 24 PROGRAMMER = -c arduino -b 115200 -P /dev/ttyAMA0 -p $(PROGDEVICE) -B 2 |
25 SOURCE_1WIRE = onewire.c simple_ds18b20.c crc8.c | 25 SOURCE_1WIRE = onewire.c simple_ds18b20.c crc8.c |
26 SOURCE_CRYPTO = hmac-sha1.c sha1-asm.S aes.c | 26 SOURCE_CRYPTO = hmac-sha1.c sha1-asm.S aes.c |
27 SOURCE_SD = byteordering.c fat.c partition.c sd_raw.c | 27 SOURCE_SD = byteordering.c fat.c partition.c sd_raw.c |
28 SOURCE = main.c | 28 SOURCE = main.c |
29 SOURCE += $(SOURCE_CRYPTO) $(SOURCE_SD) | 29 SOURCE += $(SOURCE_CRYPTO) $(SOURCE_SD) |
34 | 34 |
35 # default but 2mhz | 35 # default but 2mhz |
36 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x77:m -U efuse:w:0xfd:m | 36 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x77:m -U efuse:w:0xfd:m |
37 | 37 |
38 #LOCKBIT | 38 #LOCKBIT |
39 # -U lock:w:0x28:m | 39 # prevent bootloader write protect: |
40 # -U lock:w:0x2f:m | |
40 # 0 unused bit7 | 41 # 0 unused bit7 |
41 # 0 unused | 42 # 0 unused |
42 # 1 blb12 no writing to bootloader | 43 # 1 blb12 no writing to bootloader |
43 # 0 blb11 | 44 # 0 blb11 |
44 # 1 blb02 no writing to app | 45 # 1 blb02 bootloader can write to app |
46 # 1 blb01 | |
47 # 1 lb2 external serial prog unrestricted | |
48 # 1 lb1 bit0 | |
49 | |
50 # stop everything: | |
51 # -U lock:w:0x20:m | |
52 # 0 unused bit7 | |
53 # 0 unused | |
54 # 1 blb12 no writing to bootloader | |
55 # 0 blb11 | |
56 # 0 blb02 | |
45 # 0 blb01 | 57 # 0 blb01 |
46 # 0 lb2 | 58 # 0 lb2 |
47 # 0 lb1 bit0 | 59 # 0 lb1 bit0 |
48 | 60 |
49 # ATMega8 fuse bits used above (fuse bits for other devices are different!): | 61 # ATMega8 fuse bits used above (fuse bits for other devices are different!): |
50 # Example for 8 MHz internal oscillator | 62 # Example for 8 MHz internal oscillator |
51 # Fuse high byte: | 63 # Fuse high byte: |