Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of non-os_oss by
You are viewing an older revision! See the latest version
SW_Config
Software configuration¶
Start development.¶
Please go to this project's Home, then click "Import into Compiler". Then you will find imported source code in your compiler environment.
Edit source code¶
AKM_Config.h
Please define magnetometer and accelerometer. Supported devices are listed in AKM_DEVICES.
Example of definition
/*** Define one of the definition in your make file. ***/
enum AKM_DEVICES {
/* Empty sensors. These are not phisical sensor */
AKM_DEVICE_NONE = -1,
AKM_DEVICE_TEST = 0,
/* List of supported sensors.
* List is grouped by a sensor module. */
/* aks_mag_ak8963 */
AKM_MAGNETOMETER_AK8963,
/* aks_mag_ak099xx */
AKM_MAGNETOMETER_AK09911,
AKM_MAGNETOMETER_AK09912,
AKM_MAGNETOMETER_AK09913,
AKM_MAGNETOMETER_AK09915,
AKM_MAGNETOMETER_AK09915D,
AKM_MAGNETOMETER_AK09916C,
AKM_MAGNETOMETER_AK09916D,
/* aks_acc_gyr_bmi160 */
AKM_ACCELEROMETER_BMI160,
AKM_GYROSCOPE_BMI160,
};
/*** Define one of the definition in your make file. ***/
#define CONFIG_MAG AKM_MAGNETOMETER_AK09915
#define CONFIG_ACC AKM_ACCELEROMETER_BMI160
#define CONFIG_GYR AKM_GYROSCOPE_BMI160
