Date:2011-03-05 01:50:01 (13 years 24 days ago)
Author:Werner Almesberger
Commit:2f85fa9d1463a78a2e4b373e626c921e3a30814d
Message:atusb/fw/Makefile: abstract host so that one can use HOST=ben instead of jlime

Files: atusb/fw/Makefile (2 diffs)

Change Details

atusb/fw/Makefile
1818     -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
1919
2020CHIP=atmega32u2
21HOST=jlime
2122
2223AVR_PREFIX = $(BIN_PATH) avr-
2324CC = $(AVR_PREFIX)gcc
...... 
102103# ----- Programming and device control ----------------------------------------
103104
104105upload: $(NAME).bin
105        scp $(NAME).bin jlime:
106        scp $(NAME).bin $(HOST):
106107
107108prog:
108        ssh jlime avrdude -F -p $(CHIP) -c nanonote_atusb -e \
109        ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \
109110          -U flash:w:$(NAME).bin:r \
110111          -U lfuse:w:0x60:m # external clock, slow start-up
111112
112113on:
113        ssh jlime poke 0x10010318 4
114        ssh $(HOST) poke 0x10010318 4
114115
115116off:
116        ssh jlime poke 0x10010314 4
117        ssh $(HOST) poke 0x10010314 4
117118
118119reset:
119        ssh jlime poke 0x10010318 2048
120        ssh jlime poke 0x10010314 2048
120        ssh $(HOST) poke 0x10010318 2048
121        ssh $(HOST) poke 0x10010314 2048

Archive Download the corresponding diff file



interactive