6 #avrdude -v -p m16 -U lfuse:w:0xa1:m -U hfuse:w:0x19:m
8 #avrdude -v -p m16 -U lfuse:w:0xa4:m -U hfuse:w:0x19:m
10 CPUFLAG
=-mmcu
=$(GCCMCU
)
12 CFLAGS
=$(CPUFLAG
) -DF_CPU
=1000000UL -Wall
-g
18 bmc
: bmc.o usart.o i2c.o ipmb.o chassis.o
21 $(OBJCOPY
) -j .text
-j .data
-O binary
$^
$@
24 avrdude
-v
-c
$(PROG
) -P
$(PORT
) -p
$(PMCU
) -U flash
:w
:$^
27 setsid avarice
-g
-D
:4242
28 -avr-gdb
-ex
'target remote localhost:4242' bmc
31 -rm -f
*.o bmc bmc.bin
33 .PHONY
: all clean flash debug