Change Details
atusb/fw/Makefile |
18 | 18 | -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes |
19 | 19 | |
20 | 20 | CHIP=atmega32u2 |
| 21 | HOST=jlime |
21 | 22 | |
22 | 23 | AVR_PREFIX = $(BIN_PATH) avr- |
23 | 24 | CC = $(AVR_PREFIX)gcc |
... | ... | |
102 | 103 | # ----- Programming and device control ---------------------------------------- |
103 | 104 | |
104 | 105 | upload: $(NAME).bin |
105 | | scp $(NAME).bin jlime: |
| 106 | scp $(NAME).bin $(HOST): |
106 | 107 | |
107 | 108 | prog: |
108 | | ssh jlime avrdude -F -p $(CHIP) -c nanonote_atusb -e \ |
| 109 | ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \ |
109 | 110 | -U flash:w:$(NAME).bin:r \ |
110 | 111 | -U lfuse:w:0x60:m # external clock, slow start-up |
111 | 112 | |
112 | 113 | on: |
113 | | ssh jlime poke 0x10010318 4 |
| 114 | ssh $(HOST) poke 0x10010318 4 |
114 | 115 | |
115 | 116 | off: |
116 | | ssh jlime poke 0x10010314 4 |
| 117 | ssh $(HOST) poke 0x10010314 4 |
117 | 118 | |
118 | 119 | reset: |
119 | | ssh jlime poke 0x10010318 2048 |
120 | | ssh jlime poke 0x10010314 2048 |
| 120 | ssh $(HOST) poke 0x10010318 2048 |
| 121 | ssh $(HOST) poke 0x10010314 2048 |
Download the corresponding diff file