/*
 * Copyright (c) 2020 Great Master Wu. All rights reserved.
 * reference: https://www.keil.com/support/man/docs/uv4/uv4_ut_configwizard.htm
 * Author    Date          ChangeLog
 * Master    2020-08-09    Initialize version
*/

#ifndef __SENSOR_CONFIG_H__
#define __SENSOR_CONFIG_H__

// <<< Use Configuration Wizard in Context Menu >>>\n

// <h> Platform

// <o> SENSOR_PLATFORM  - Select a platform.
// <i> The following platform are supported:
// <i> - STM32  - Atmel serials
// <i> - NRF52  - Nordic nrf52xx serials
// <0=> STM32
// <1=> NRF52

#ifndef SENSOR_PLATFORM
#define SENSOR_PLATFORM 1
#endif

#if (SENSOR_PLATFORM == 0)
#define SENSOR_STM32_PLATFORM
#elif (SENSOR_PLATFORM == 1)
#define SENSOR_NRF52_PLATFORM
#endif

// </h> 

// <h> Support Sensor

// <e> IMU - Inertial Measurement Unit
#ifndef IMU
#define IMU 1
#endif

// <e> ICM_426XX - Wide-Range 6-Axis MotionTrackingTM IMU
// <i> applications:AR/VR Controllers,Head Mounted Displays,Wearables
// <i> Sports, Robotics, IoT Applications
#ifndef ICM_426XX
#define ICM_426XX 1
#endif
// <o> IMU_ICM_TYPE  - Select a type of icm4x6xx.
// <i> The following type are supported:
// <i> - ICM42600
// <i> - ICM42602
// <i> - ICM42605
// <i> - ICM42608
// <i> - ICM42622
// <i> - ICM42686
// <i> - ICM42688
// <0=> ICM42600
// <1=> ICM42602
// <2=> ICM42605
// <3=> ICM42608
// <4=> ICM42622
// <5=> ICM42686
// <6=> ICM42688

#ifndef IMU_ICM_TYPE
#define IMU_ICM_TYPE 5
#endif

#if (IMU_ICM_TYPE == 5)
#define ICM42686
#endif

// <o> IMU_BUFFER_SIZE Max FIFO count size 
// <16-2048:4>
#define IMU_BUFFER_SIZE            2000
// </e>

// <<< end of configuration section >>>

#endif  // @page end

