needs to be filled out. blinks though

This commit is contained in:
Scott Shawcroft
2018-11-27 18:11:03 -08:00
parent 4ec7dba453
commit b4103eef06
181 changed files with 384628 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ MKDIR = mkdir
SED = sed
CP = cp
RM = rm
AS = $(CROSS_COMPILE)as
INC += -Isrc \
-I$(TOP)/hw \
@@ -57,7 +58,7 @@ else
CFLAGS += -flto -Os
endif
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -DBOARD_$(shell echo $(BOARD) | tr a-z A-Z)
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -DBOARD_$(shell echo $(BOARD) | tr a-z\- A-Z_)
LDFLAGS += $(CFLAGS) -nostartfiles -fshort-enums -Wl,-T,$(TOP)/$(LD_FILE) -Wl,-Map=$@.map -Wl,-cref -Wl,-gc-sections -specs=nosys.specs -specs=nano.specs
LIBS := -lgcc -lc -lm -lnosys
@@ -118,5 +119,10 @@ $(BUILD)/obj/%.o: %.c
-e '/^$$/ d' -e 's/$$/ :/' < $(@:.o=.d) >> $(@:.o=.P); \
$(RM) $(@:.o=.d)
vpath %.s . $(TOP)
$(BUILD)/obj/%.o: %.s
@echo "AS $<"
@$(AS) -o $@ $<
clean:
rm -rf build-$(BOARD)

View File

@@ -96,7 +96,7 @@
//------------- CLASS -------------//
#define CFG_TUD_CDC 1
#define CFG_TUD_MSC 1
#define CFG_TUD_MSC 0
#define CFG_TUD_CUSTOM_CLASS 0
#define CFG_TUD_HID 0