mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-23 05:30:17 +02:00
fw2/Makefile: use the ATmega32U2 configuration (experimental) of avrdude
- Makefile (prog): use $(CHIP) instead of $(CHIP_AVRDUDE) - Makefile (CHIP_AVRDUDE): removed
This commit is contained in:
parent
1d6fbcbd21
commit
85612e5150
@ -3,8 +3,6 @@ CFLAGS = -g -Wall -Wextra -Wshadow -Werror -Wno-unused \
|
|||||||
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
|
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
|
||||||
|
|
||||||
CHIP=atmega32u2
|
CHIP=atmega32u2
|
||||||
CHIP_AVRDUDE=at90usb162 # @@@ fix this when support for the ATmega32U2 becomes
|
|
||||||
# available
|
|
||||||
|
|
||||||
AVR_PREFIX = $(BIN_PATH) avr-
|
AVR_PREFIX = $(BIN_PATH) avr-
|
||||||
CC = $(AVR_PREFIX)gcc
|
CC = $(AVR_PREFIX)gcc
|
||||||
@ -42,7 +40,7 @@ upload: $(NAME).bin
|
|||||||
scp $(NAME).bin jlime:
|
scp $(NAME).bin jlime:
|
||||||
|
|
||||||
prog:
|
prog:
|
||||||
ssh jlime avrdude -F -p $(CHIP_AVRDUDE) -c nanonote_atusb -e \
|
ssh jlime avrdude -F -p $(CHIP) -c nanonote_atusb -e \
|
||||||
-U flash:w:$(NAME).bin:r \
|
-U flash:w:$(NAME).bin:r \
|
||||||
-U lfuse:w:0x60:m # external clock, slow start-up
|
-U lfuse:w:0x60:m # external clock, slow start-up
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user