-
Notifications
You must be signed in to change notification settings - Fork 0
/
micronucleus.patch
67 lines (56 loc) · 2.21 KB
/
micronucleus.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff --git a/firmware/Makefile b/firmware/Makefile
index 828d464..66b77f8 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -22,7 +22,7 @@ CFLAGS =
CONFIGPATH = configuration/$(CONFIG)
include $(CONFIGPATH)/Makefile.inc
-PROGRAMMER ?= -c USBasp
+PROGRAMMER ?= -c USBtiny
# PROGRAMMER contains AVRDUDE options to address your programmer
# Tools:
@@ -43,17 +43,17 @@ OBJECTS += osccalASM.o
all: main.hex
.c.o:
- @$(CC) $(CFLAGS) -c $< -o $@ -Wa,-ahls=$<.lst
+ $(CC) $(CFLAGS) -c $< -o $@ -Wa,-ahls=$<.lst
.S.o:
- @$(CC) $(CFLAGS) -x assembler-with-cpp -c $< -o $@
+ $(CC) $(CFLAGS) -x assembler-with-cpp -c $< -o $@
# "-x assembler-with-cpp" should not be necessary since this is the default
# file type for the .S (with capital S) extension. However, upper case
# characters are not always preserved on Windows. To ensure WinAVR
# compatibility define the file type manually.
.c.s:
- @$(CC) $(CFLAGS) -S $< -o $@
+ $(CC) $(CFLAGS) -S $< -o $@
flash: all
$(AVRDUDE) -U flash:w:main.hex:i -B 20
@@ -71,16 +71,16 @@ read_fuses:
$(UISP) --rd_fuses -B 20
clean:
- @rm -f main.hex main.bin main.c.lst main.map main.raw *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s main.lss
+ rm -f main.hex main.bin main.c.lst main.map main.raw *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s main.lss
# file targets:
main.bin: $(OBJECTS)
- @$(CC) $(CFLAGS) -o main.bin $(OBJECTS) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o main.bin $(OBJECTS) $(LDFLAGS)
main.hex: main.bin
@echo Building Micronucleus configuration: $(CONFIG)
@rm -f main.hex main.eep.hex
- @avr-objcopy -j .text -j .data -O ihex main.bin main.hex
+ avr-objcopy -j .text -j .data -O ihex main.bin main.hex
@echo Size of sections:
@avr-size main.bin
@echo Size of binary hexfile. Use the "data" size to calculate the bootloader address:
diff --git a/firmware/configuration/t85_default/bootloaderconfig.h b/firmware/configuration/t85_default/bootloaderconfig.h
index 9b3ac63..6bc0a92 100644
--- a/firmware/configuration/t85_default/bootloaderconfig.h
+++ b/firmware/configuration/t85_default/bootloaderconfig.h
@@ -206,7 +206,7 @@
*
*/
-#define LED_MODE NONE
+#define LED_MODE ACTIVE_HIGH
#define LED_DDR DDRB
#define LED_PORT PORTB