@@ -443,9 +443,11 @@ list(APPEND SOURCE_FILES
443443 drivers/DebugPins.cpp
444444 drivers/InternalFlash.cpp
445445 drivers/Hrs3300.cpp
446+ drivers/AccelerationSensor.cpp
446447 drivers/Bma421.cpp
447448 drivers/Bma421_C/bma4.c
448449 drivers/Bma421_C/bma423.c
450+ drivers/SC7A20.cpp
449451 components/battery/BatteryController.cpp
450452 components/ble/BleController.cpp
451453 components/ble/NotificationManager.cpp
@@ -510,9 +512,11 @@ list(APPEND RECOVERY_SOURCE_FILES
510512 drivers/DebugPins.cpp
511513 drivers/InternalFlash.cpp
512514 drivers/Hrs3300.cpp
515+ drivers/AccelerationSensor.cpp
513516 drivers/Bma421.cpp
514517 drivers/Bma421_C/bma4.c
515518 drivers/Bma421_C/bma423.c
519+ drivers/SC7A20.cpp
516520 components/battery/BatteryController.cpp
517521 components/ble/BleController.cpp
518522 components/ble/NotificationManager.cpp
@@ -626,9 +630,12 @@ set(INCLUDE_FILES
626630 drivers/InternalFlash.h
627631 drivers/Hrs3300.h
628632 drivers/PinMap.h
633+ drivers/AccelerationSensor.h
629634 drivers/Bma421.h
630635 drivers/Bma421_C/bma4.c
631636 drivers/Bma421_C/bma423.c
637+ drivers/SC7A20.h
638+ drivers/SC7A20_registers.h
632639 components/battery/BatteryController.h
633640 components/ble/BleController.h
634641 components/ble/NotificationManager.h
@@ -799,27 +806,32 @@ add_definitions(-DTARGET_DEVICE_NAME="${TARGET_DEVICE}")
799806if (TARGET_DEVICE STREQUAL "PINETIME" )
800807 add_definitions (-DDRIVER_PINMAP_PINETIME)
801808 add_definitions (-DCLOCK_CONFIG_LF_SRC=1) # XTAL
809+ add_definitions (-DDRIVER_ACC_BMA421)
802810 add_definitions (-DDRIVER_TOUCH_DYNAMIC)
803811elseif (TARGET_DEVICE STREQUAL "MOY-TFK5" ) # P8a
804812 add_definitions (-DDRIVER_PINMAP_P8)
805813 add_definitions (-DCLOCK_CONFIG_LF_SRC=1) # XTAL
814+ add_definitions (-DDRIVER_ACC_BMA421)
806815 add_definitions (-DDRIVER_TOUCH_GESTURE)
807816elseif (TARGET_DEVICE STREQUAL "MOY-TIN5" ) # P8a variant 2
808817 add_definitions (-DDRIVER_PINMAP_P8)
809818 add_definitions (-DCLOCK_CONFIG_LF_SRC=1) # XTAL
819+ add_definitions (-DDRIVER_ACC_SC7A20)
810820 add_definitions (-DDRIVER_TOUCH_GESTURE)
811821elseif (TARGET_DEVICE STREQUAL "MOY-TON5" ) # P8b
812822 add_definitions (-DDRIVER_PINMAP_P8)
813823 add_definitions (-DCLOCK_CONFIG_LF_SRC=0) # RC
814824 add_definitions (-DMYNEWT_VAL_BLE_LL_SCA=500)
815825 add_definitions (-DCLOCK_CONFIG_LF_CAL_ENABLED=1)
826+ add_definitions (-DDRIVER_ACC_SC7A20)
816827 add_definitions (-DDRIVER_TOUCH_REPORT)
817828elseif (TARGET_DEVICE STREQUAL "MOY-UNK" ) # P8b mirrored
818829 add_definitions (-DDRIVER_PINMAP_P8)
819830 add_definitions (-DCLOCK_CONFIG_LF_SRC=0) # RC
820831 add_definitions (-DMYNEWT_VAL_BLE_LL_SCA=500)
821832 add_definitions (-DCLOCK_CONFIG_LF_CAL_ENABLED=1)
822833 add_definitions (-DDRIVER_DISPLAY_MIRROR)
834+ add_definitions (-DDRIVER_ACC_SC7A20)
823835 add_definitions (-DDRIVER_TOUCH_REPORT)
824836else ()
825837 message (FATAL_ERROR "Invalid TARGET_DEVICE" )
0 commit comments