@@ -795,22 +795,27 @@ add_definitions(-DTARGET_DEVICE_${TARGET_DEVICE})
795
795
if (TARGET_DEVICE STREQUAL "PINETIME" )
796
796
add_definitions (-DDRIVER_PINMAP_PINETIME)
797
797
add_definitions (-DCLOCK_CONFIG_LF_SRC=1) # XTAL
798
+ add_definitions (-DDRIVER_ACC_BMA421)
798
799
elseif (TARGET_DEVICE STREQUAL "MOY-TFK5" ) # P8a
799
800
add_definitions (-DDRIVER_PINMAP_P8)
800
801
add_definitions (-DCLOCK_CONFIG_LF_SRC=1) # XTAL
802
+ add_definitions (-DDRIVER_ACC_BMA421)
801
803
elseif (TARGET_DEVICE STREQUAL "MOY-TIN5" ) # P8a variant 2
802
804
add_definitions (-DDRIVER_PINMAP_P8)
803
805
add_definitions (-DCLOCK_CONFIG_LF_SRC=1) # XTAL
806
+ add_definitions (-DDRIVER_ACC_SC7A20)
804
807
elseif (TARGET_DEVICE STREQUAL "MOY-TON5" ) # P8b
805
808
add_definitions (-DDRIVER_PINMAP_P8)
806
809
add_definitions (-DCLOCK_CONFIG_LF_SRC=0) # RC
807
810
add_definitions (-DMYNEWT_VAL_BLE_LL_SCA=500)
808
811
add_definitions (-DCLOCK_CONFIG_LF_CAL_ENABLED=1)
812
+ add_definitions (-DDRIVER_ACC_SC7A20)
809
813
elseif (TARGET_DEVICE STREQUAL "MOY-UNK" ) # P8b mirrored
810
814
add_definitions (-DDRIVER_PINMAP_P8)
811
815
add_definitions (-DCLOCK_CONFIG_LF_SRC=0) # RC
812
816
add_definitions (-DMYNEWT_VAL_BLE_LL_SCA=500)
813
817
add_definitions (-DCLOCK_CONFIG_LF_CAL_ENABLED=1)
818
+ add_definitions (-DDRIVER_ACC_SC7A20)
814
819
else ()
815
820
message (FATAL_ERROR "Invalid TARGET_DEVICE" )
816
821
endif ()
0 commit comments