1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2025-04-21 12:27:27 +03:00

uart/: great renaming to nxuart, including references in Makefile

This commit is contained in:
Werner Almesberger
2011-03-07 14:42:44 -03:00
parent 271a50f3c2
commit 5b14b505b4
17 changed files with 21 additions and 21 deletions

25
nxuart/fw/Makefile Normal file
View File

@@ -0,0 +1,25 @@
CFLAGS = -g -Wall -Wshadow -Werror \
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
CHIP=atmega48
AVR_PREFIX = $(BIN_PATH) avr-
CC = $(AVR_PREFIX)gcc
OBJCOPY = $(AVR_PREFIX)objcopy
#OBJDUMP = $(AVR_PREFIX)objdump
.PHONY: all upload prog
all: uart.bin
%.elf: %.c
$(CC) -mmcu=$(CHIP) -Os -o $@ $<
%.bin: %.elf
$(OBJCOPY) -j .text -j .data -O binary $< $@
upload: uart.bin
scp uart.bin jlime:
prog:
ssh jlime avrdude -p atmega48 -c nanonote_uart -e -U flash:w:uart.bin:r