1.1 Android sensor support types
Now Android support sensor types as follow
Sensor types | ||
TYPE_ACCELEROMETER | TYPE_GRAVITY | TYPE_SIGNIFICANT_MOTION |
TYPE_MAGNETIC_FIELD | TYPE_LINEAR_ACCELERATION | TYPE_STEP_DETECTOR |
TYPE_ORIENTATION | TYPE_ROTATION_VECTOR | TYPE_STEP_COUNTER |
TYPE_GYROSCOPE | TYPE_RELATIVE_HUMIDITY | TYPE_GEOMAGNETIC_ROTATION_VECTOR |
TYPE_LIGHT | TYPE_AMBIENT_TEMPERATURE | TYPE_HEART_RATE |
TYPE_PRESSURE | TYPE_MAGNETIC_FIELD_UNC ALIBRATED | TYPE_TILT_DETECTOR |
TYPE_TEMPERATURE | TYPE_GAME_ROTATION_VECT OR | TYPE_TILT_DETECTOR |
TYPE_PROXIMITY | TYPE_GAME_ROTATION_VECT OR | TYPE_GLANCE_GESTURE |
1.2 Sensor system Architecture
1.3 HAL & Driver Work Flow
1.4 Config File
android:
device\${COMPANY}\${PROJECT}\ProjectConfig.mk
kernel:
kernel-3.xx\arch\armxx\configs\$(proj)_defconfig and $(proj)_debug_defconfig
kernel-3.xx\arch\armxx\boot\dts\$(proj).dts
Init.rc:
alps\device\mediatek\${PLATFORM}\init.xxx.rc