comparison Makefile @ 18:021e6e0006f4

debug printing, 5v adc, fixes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Jun 2013 23:44:59 +0800
parents 21717153e0f1
children 5f9a40d6991b bc48a1d17edf
comparison
equal deleted inserted replaced
17:21717153e0f1 18:021e6e0006f4
27 SOURCE = main.c 27 SOURCE = main.c
28 SOURCE += $(SOURCE_CRYPTO) 28 SOURCE += $(SOURCE_CRYPTO)
29 LIBS = -lm 29 LIBS = -lm
30 30
31 # default but 2mhz 31 # default but 2mhz
32 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x62:m 32 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x77:m -U efuse:w:0xfd:m
33 33
34 # ATMega8 fuse bits used above (fuse bits for other devices are different!): 34 # ATMega8 fuse bits used above (fuse bits for other devices are different!):
35 # Example for 8 MHz internal oscillator 35 # Example for 8 MHz internal oscillator
36 # Fuse high byte: 36 # Fuse high byte:
37 # 0xd9 = 1 1 0 1 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000) 37 # 0xd9 = 1 1 0 1 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000)
41 # | | | +-------------- WDTON 41 # | | | +-------------- WDTON
42 # | | +---------------- SPIEN (if set to 1, serial programming is disabled) 42 # | | +---------------- SPIEN (if set to 1, serial programming is disabled)
43 # | +------------------ DWEN 43 # | +------------------ DWEN
44 # +-------------------- RSTDISBL (if set to 0, RESET pin is disabled) 44 # +-------------------- RSTDISBL (if set to 0, RESET pin is disabled)
45 # Fuse low byte: 45 # Fuse low byte:
46 # 0x77 0 1 1 1 0 1 1 1 (low rising, full swing, crystal)
46 # 0x62 = 0 1 1 0 0 0 1 0 47 # 0x62 = 0 1 1 0 0 0 1 0
47 # ^ ^ \ / \--+--/ 48 # ^ ^ \ / \--+--/
48 # | | | +------- CKSEL 3..0 (8M internal RC) 49 # | | | +------- CKSEL 3..0 (8M internal RC)
49 # | | +--------------- SUT 1..0 (slowly rising power) 50 # | | +--------------- SUT 1..0 (slowly rising power)
50 # | +------------------ CKOUT 51 # | +------------------ CKOUT
51 # +-------------------- CLKDIV8 52 # +-------------------- CLKDIV8 (initial)
53
54 # Extended fuse:
55 # 0xfd = 2.7V BOD
56 #
52 # 57 #
53 # For computing fuse byte values for other devices and options see 58 # For computing fuse byte values for other devices and options see
54 # the fuse bit calculator at http://www.engbedded.com/fusecalc/ 59 # the fuse bit calculator at http://www.engbedded.com/fusecalc/
55 60
56 61