From 29176ebabdf2d96b267511069530da0ec276cdf1 Mon Sep 17 00:00:00 2001 From: cuav-chen2 Date: Wed, 11 Sep 2024 19:10:44 +1000 Subject: [PATCH] Tools: Add in BMM350 Driver --- Tools/scripts/build_options.py | 1 + Tools/scripts/decode_devid.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 1fbfae8cca4892..7c58e47b03743e 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -162,6 +162,7 @@ def config_option(self): Feature('Compass', 'AK09916', 'AP_COMPASS_AK09916_ENABLED', 'Enable AK09916 compasses', 1, None), Feature('Compass', 'AK8963', 'AP_COMPASS_AK8963_ENABLED', 'Enable AK8963 compasses', 1, None), Feature('Compass', 'BMM150', 'AP_COMPASS_BMM150_ENABLED', 'Enable BMM150 compasses', 1, None), + Feature('Compass', 'BMM350', 'AP_COMPASS_BMM350_ENABLED', 'Enable BMM350 compasses', 1, None), Feature('Compass', 'EXTERNALAHRS_COMPASS', 'AP_COMPASS_EXTERNALAHRS_ENABLED', 'Enable ExternalAHRS compasses', 0, "AHRS_EXT"), # noqa Feature('Compass', 'HMC5843', 'AP_COMPASS_HMC5843_ENABLED', 'Enable HMC5843 compasses', 1, None), Feature('Compass', 'ICM20948', 'AP_COMPASS_ICM20948_ENABLED', 'Enable AK09916 on ICM20948 compasses', 1, "AK09916"), diff --git a/Tools/scripts/decode_devid.py b/Tools/scripts/decode_devid.py index 05eecd7604ea4c..ee80f080ae0c8f 100755 --- a/Tools/scripts/decode_devid.py +++ b/Tools/scripts/decode_devid.py @@ -66,6 +66,7 @@ def num(s): 0x14 : "DEVTYPE_AK09918", 0x15 : "DEVTYPE_AK09915", 0x16 : "DEVTYPE_QMC5883P", + 0x17 : "DEVTYPE_BMM350", } imu_types = {