diff options
| author | Damien George | 2016-01-07 15:09:36 +0000 |
|---|---|---|
| committer | Damien George | 2016-01-07 16:34:11 +0000 |
| commit | 2621f8a3409fc0290190adb86c25504e43420115 (patch) | |
| tree | 179c272b1646dc124f78f523c8478d0ca91b25d6 /stmhal/Makefile | |
| parent | ea8be373a975356808a19a79f1dd20383bec82ba (diff) | |
stmhal: Make stm constants big ints when they don't fit in a small int.
Adds 924 bytes of code, but means that no more hacks and work-arounds are
needed due to large constants becoming negative.
Diffstat (limited to 'stmhal/Makefile')
| -rw-r--r-- | stmhal/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile index 316867542..9f8c13a87 100644 --- a/stmhal/Makefile +++ b/stmhal/Makefile @@ -330,6 +330,7 @@ $(BUILD)/pins_$(BOARD).o: $(BUILD)/pins_$(BOARD).c GEN_STMCONST_HDR = $(HEADER_BUILD)/modstm_const.h GEN_STMCONST_QSTR = $(BUILD)/modstm_qstr.h +GEN_STMCONST_MPZ = $(HEADER_BUILD)/modstm_mpz.h CMSIS_MCU_LOWER = $(shell echo $(CMSIS_MCU) | tr '[:upper:]' '[:lower:]') CMSIS_MCU_HDR = cmsis/devinc/$(CMSIS_MCU_LOWER).h @@ -338,7 +339,7 @@ $(BUILD)/modstm.o: $(GEN_STMCONST_HDR) # make both modstm_const.h and modstm_qstr.h $(HEADER_BUILD)/%_const.h $(BUILD)/%_qstr.h: $(CMSIS_MCU_HDR) make-stmconst.py | $(HEADER_BUILD) $(ECHO) "Create stmconst $@" - $(Q)$(PYTHON) make-stmconst.py --qstr $(GEN_STMCONST_QSTR) $(CMSIS_MCU_HDR) > $(GEN_STMCONST_HDR) + $(Q)$(PYTHON) make-stmconst.py --qstr $(GEN_STMCONST_QSTR) --mpz $(GEN_STMCONST_MPZ) $(CMSIS_MCU_HDR) > $(GEN_STMCONST_HDR) $(GEN_CDCINF_HEADER): $(GEN_CDCINF_FILE) $(FILE2H) | $(HEADER_BUILD) $(ECHO) "Create $@" |
