Sensor control program for mbed OS. / Mbed OS non-os_oss

Fork of non-os_oss by Rikita YAMADA

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.

/media/uploads/rikita/import.jpg

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


All wikipages