Subversion Repositories HomeAutomation

Rev

Rev 242 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 242 Rev 250
Line 1... Line 1...
1
PRG            = bios
1
PRG            = bios
2
OBJ            = vectors.o bios.o flash.o can.o mcp2515/mcp2515.o
2
OBJ            = vectors.o bios.o flash.o mcp2515/mcp2515.o
3
MCU_TARGET     = atmega88
3
MCU_TARGET     = atmega8
4
OPTIMIZE       = -Os -mcall-prologues
4
OPTIMIZE       = -Os -mcall-prologues
5
BIOS_START     = 0xd00
5
BIOS_START     = 0x12c2
6
BOOT_START     = 0x1f00
6
BOOT_START     = 0x1f00
7
 
7
 
8
DEFS           =
8
DEFS           =
9
LIBS           =
9
LIBS           =
10
 
10
 
11
TARGET_CLK_SRC = 0xe2
11
TARGET_CLK_SRC = 0x24
12
#TARGET_CLK_SRC for mega88		
12
#TARGET_CLK_SRC for mega88		
13
#0xe7		#CKDIV8=1, external crystal
13
#0xe7		#CKDIV8=1, external crystal
14
#0xe0		#CKDIV8=1, external clock
14
#0xe0		#CKDIV8=1, external clock
15
#0xe2		#CKDIV8=1, internal RC
15
#0xe2		#CKDIV8=1, internal RC
16
#TARGET_CLK_SRC for mega8
16
#TARGET_CLK_SRC for mega8
Line 33... Line 33...
33
OBJDUMP        = avr-objdump
33
OBJDUMP        = avr-objdump
34
SIZE           = avr-size
34
SIZE           = avr-size
35
SZFLAGS        = 
35
SZFLAGS        = 
36
UPLOAD         = avrdude
36
UPLOAD         = avrdude
37
#avrispv2 avr910
37
#avrispv2 avr910
38
ULFLAGS        = -p $(MCU_TARGET) -P /dev/ttyUSB0 -c avrispv2 -b 115200 -U flash:w:$(PRG).hex
38
ULFLAGS        = -p $(MCU_TARGET) -P /dev/ttyS0 -c avr910 -b 115200 -U flash:w:$(PRG).hex
39
 
39
 
40
ifeq ($(MCU_TARGET),atmega88)
40
ifeq ($(MCU_TARGET),atmega88)
41
#BOOTRST=0, BOOTSZ0=1, BOOTSZ1=1
41
#BOOTRST=0, BOOTSZ0=1, BOOTSZ1=1
42
EXTFUSE  = 0x06
42
EXTFUSE  = 0x06
43
#BODLEVEL = 4.3V
43
#BODLEVEL = 4.3V