Browse Source

Small changes

Thomas Buck 8 years ago
parent
commit
0cd1a685bd
3 changed files with 18 additions and 7 deletions
  1. 3
    0
      .gitignore
  2. 8
    0
      README.md
  3. 7
    7
      makefile

+ 3
- 0
.gitignore View File

1
 .DS_Store
1
 .DS_Store
2
 *.o
2
 *.o
3
 build
3
 build
4
+*.b##
5
+*.s##
6
+*.p##

+ 8
- 0
README.md View File

15
      **********************************
15
      **********************************
16
      */
16
      */
17
 
17
 
18
+## Arduino Debug Environment
19
+
20
+    D2 SO/GDO1
21
+    D3 SCLK
22
+    D7 SI
23
+    D8 CS
24
+    D9 GDO0
25
+

+ 7
- 7
makefile View File

28
 CARGS = -mmcu=$(MCU)
28
 CARGS = -mmcu=$(MCU)
29
 CARGS += -I$(EXTRAINCDIR)
29
 CARGS += -I$(EXTRAINCDIR)
30
 CARGS += -Os
30
 CARGS += -Os
31
-CARGS += -funsigned-char
32
-CARGS += -funsigned-bitfields
33
-CARGS += -fpack-struct
34
-CARGS += -fshort-enums
31
+#CARGS += -funsigned-char
32
+#CARGS += -funsigned-bitfields
33
+#CARGS += -fpack-struct
34
+#CARGS += -fshort-enums
35
 CARGS += -Wall -pedantic -Wstrict-prototypes -Wshadow
35
 CARGS += -Wall -pedantic -Wstrict-prototypes -Wshadow
36
 CARGS += -Wpointer-arith -Wcast-qual -Wextra
36
 CARGS += -Wpointer-arith -Wcast-qual -Wextra
37
 CARGS += -Wno-main -Wno-write-strings -Wno-unused-parameter
37
 CARGS += -Wno-main -Wno-write-strings -Wno-unused-parameter
38
 CARGS += -std=$(CSTANDARD)
38
 CARGS += -std=$(CSTANDARD)
39
 CARGS += -DF_CPU=$(F_CPU)
39
 CARGS += -DF_CPU=$(F_CPU)
40
-CARGS += -ffunction-sections
40
+#CARGS += -ffunction-sections
41
 
41
 
42
 ifeq ($(DEBUG),1)
42
 ifeq ($(DEBUG),1)
43
 	CARGS += -DDEBUG
43
 	CARGS += -DDEBUG
44
 endif
44
 endif
45
 
45
 
46
-LINKER = -Wl,--relax
46
+#LINKER = -Wl,--relax
47
 
47
 
48
 PROGRAMMER = avrisp2
48
 PROGRAMMER = avrisp2
49
 ISPPORT = usb
49
 ISPPORT = usb
72
 	$(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -b $(ISPBAUD) -P $(ISPPORT) -e -D -U $(BUILDDIR)/$(TARGET).hex
72
 	$(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -b $(ISPBAUD) -P $(ISPPORT) -e -D -U $(BUILDDIR)/$(TARGET).hex
73
 
73
 
74
 debugProgram:
74
 debugProgram:
75
-	$(MAKE) BUILDDIR=build/debug TARGET=debug MCU=atmega328p DEBUG=1 PROGRAMMER=arduino ISPPORT=/dev/tty.usbserial-A100OZQ1 program
75
+	$(MAKE) BUILDDIR=build/debug TARGET=debug MCU=atmega328p DEBUG=1 program
76
 
76
 
77
 clean:
77
 clean:
78
 	$(RM) $(BUILDDIR)
78
 	$(RM) $(BUILDDIR)

Loading…
Cancel
Save