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

Fork of non-os_oss by Rikita YAMADA

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

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,
    AKM_MAGNETOMETER_AK09917D,
    AKM_MAGNETOMETER_AK09918,
 
    /* aks_ir_ak9752 */
    AKM_INFRARED_AK9752,
 
    /* aks_acc_adxl34x */
    AKM_ACCELEROMETER_ADXL345,
    AKM_ACCELEROMETER_ADXL346,
 
    /* aks_gyr_l3g4200d */
    AKM_GYROSCOPE_L3G4200D,
    AKM_GYROSCOPE_L3GD20,
 
    /* aks_acc_gyr_bmi160 */
    AKM_ACCELEROMETER_BMI160,
    AKM_GYROSCOPE_BMI160,
};
 
/*** Define one of the definition in your make file. ***/
#define CONFIG_SLOT1  AKM_MAGNETOMETER_AK09917D
#define CONFIG_SLOT2  AKM_ACCELEROMETER_BMI160
#define CONFIG_SLOT3  AKM_GYROSCOPE_BMI160

All wikipages