SC7A20 tweaks (#1251)

* Clean up handling of addresses

* Update SC7A20.hpp

* Try remapped Accel readings

* Fake LIS setup?

* Refining build options
This commit is contained in:
Ben V. Brown
2022-04-03 12:37:27 +10:00
committed by GitHub
parent 0b8192b690
commit 787bc46bdc
5 changed files with 1951 additions and 2436 deletions

View File

@@ -192,7 +192,7 @@ $(shell find $(DEVICE_BSP_DIR) -type f -name '*.cpp') \
$(shell find $(SOURCE_MIDDLEWARES_DIR) -type f -name '*.cpp')
# code optimisation ------------------------------------------------------------
OPTIM=-Os -flto -finline-small-functions -findirect-inlining -fdiagnostics-color -ffunction-sections -fdata-sections -fshort-enums -fsingle-precision-constant -ffreestanding -fno-common
OPTIM=-Os -flto -finline-small-functions -fshort-wchar -findirect-inlining -fdiagnostics-color -ffunction-sections -fdata-sections -fshort-enums -fsingle-precision-constant -fno-common
# global defines ---------------------------------------------------------------
GLOBAL_DEFINES += $(DEV_GLOBAL_DEFS) -D USE_RTOS_SYSTICK -D MODEL_$(model) -D VECT_TAB_OFFSET=$(bootldr_size)U
@@ -293,8 +293,6 @@ CXXFLAGS=$(DEV_CXXFLAGS) \
-fno-non-call-exceptions \
-fno-use-cxa-atexit \
-fno-strict-aliasing \
-fno-rtti \
-fno-exceptions \
-fno-threadsafe-statics \
-T$(LDSCRIPT)
@@ -307,7 +305,7 @@ CFLAGS=$(DEV_CFLAGS) \
$(GLOBAL_DEFINES) \
-D${COMPILER} \
-MMD \
-std=gnu99 \
-std=gnu11 \
$(OPTIM) \
-T$(LDSCRIPT) \
-c