diff options
| author | Dave Hylands | 2014-08-20 13:21:11 -0700 |
|---|---|---|
| committer | Dave Hylands | 2014-09-19 09:26:13 -0700 |
| commit | becbc87fd73c98664b472b4a06c2b54558dd5669 (patch) | |
| tree | 44b1e1daaab750fa2c10899bc9c3489ab4ec738f /teensy/Makefile | |
| parent | 2842945e760c98793cb0c62a66345ab8850afc1a (diff) | |
Add Timer support (PWM, OC, IC) for stmhal and teensy
Diffstat (limited to 'teensy/Makefile')
| -rw-r--r-- | teensy/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/teensy/Makefile b/teensy/Makefile index 09bee1dbc..478389e30 100644 --- a/teensy/Makefile +++ b/teensy/Makefile @@ -42,8 +42,11 @@ CFLAGS += -Og -ggdb else CFLAGS += -Os #-DNDEBUG endif +CFLAGS += -fdata-sections -ffunction-sections +LDFLAGS += -Wl,--gc-sections SRC_C = \ + hal_ftm.c \ hal_gpio.c \ help.c \ import.c \ @@ -54,7 +57,9 @@ SRC_C = \ memzip.c \ modpyb.c \ pin_defs_teensy.c \ + reg.c \ teensy_hal.c \ + timer.c \ uart.c \ usb.c \ @@ -141,6 +146,7 @@ GEN_PINS_SRC = $(BUILD)/pins_gen.c GEN_PINS_HDR = $(HEADER_BUILD)/pins.h GEN_PINS_QSTR = $(BUILD)/pins_qstr.h GEN_PINS_AF_CONST = $(HEADER_BUILD)/pins_af_const.h +GEN_PINS_AF_PY = $(BUILD)/pins_af.py # Making OBJ use an order-only depenedency on the generated pins.h file # has the side effect of making the pins.h file before we actually compile @@ -153,7 +159,7 @@ $(OBJ): | $(HEADER_BUILD)/pins.h # both pins_$(BOARD).c and pins.h $(BUILD)/%_gen.c $(HEADER_BUILD)/%.h $(HEADER_BUILD)/%_af_const.h $(BUILD)/%_qstr.h: teensy_%.csv $(MAKE_PINS) $(AF_FILE) $(PREFIX_FILE) | $(HEADER_BUILD) $(ECHO) "Create $@" - $(Q)$(PYTHON) $(MAKE_PINS) --board $(BOARD_PINS) --af $(AF_FILE) --prefix $(PREFIX_FILE) --hdr $(GEN_PINS_HDR) --qstr $(GEN_PINS_QSTR) --af-const $(GEN_PINS_AF_CONST) > $(GEN_PINS_SRC) + $(Q)$(PYTHON) $(MAKE_PINS) --board $(BOARD_PINS) --af $(AF_FILE) --prefix $(PREFIX_FILE) --hdr $(GEN_PINS_HDR) --qstr $(GEN_PINS_QSTR) --af-const $(GEN_PINS_AF_CONST) --af-py $(GEN_PINS_AF_PY) > $(GEN_PINS_SRC) $(BUILD)/pins_gen.o: $(BUILD)/pins_gen.c $(call compile_c) |
