[其他]
意法半导体发布 Linux Drivers and Android HAL Input
Linux Driversand Android HAL for Input framework supporting our motion/environmental sensorsare now available on official ST GitHub project, here are the links:
Introduction
This repository contains Linux kernel (v3.10, v3.4) with STMicroelectronics MEMS sensor support. STM sensor drivers are located under the directory drivers/input/misc/st organized by sensor type:
Inertial Module Unit (IMU):asm330lxh, lsm330, lsm330dlc, lsm6dl0, lsm6ds0, lsm6ds3, lsm6dsl, lsm6dsm, lsm9ds0, lsm9ds1
eCompass:lsm303agr, lsm303ah, lsm303c, lsm303d, lsm303dlhc
Accelerometer:ais328dq, ais3624dq, h3lis100dl, h3lis331dl, lis2de, lis2dh, lis2ds12, lis2hh12, lis331dlh, lis331hh, lis3de, lis3dh, lis3dsh, n2dm
Gyroscope:a3g4250d, l3g4200d, l3gd20, l3gd20h
Magnetometer:lis3mdl
Humidity:hts221
Pressure:lps22hb, lps25h
Ultraviolet:uvis25
Introduction
The STM Android sensor Hardware Abstraction Layer (HAL) defines a standard interface for STM sensors allowing Android to be agnostic about lower-level driver implementations . The HAL library is packaged into modules (.so) file and loaded by the Android system at the appropriate time. For more information see AOSP HAL Interface
STM Sensor HAL is leaning on Linux Input framework to gather data from sensor device drivers and to forward samples to the Android Framework
Currently supported sensors are:
Inertial Module Unit (IMU):asm330lxh, lsm330, lsm330dlc, lsm6ds0, lsm6ds3, lsm6dsm, lsm6dsl, lsm9ds0, lsm9ds1, lsm330d
eCompass:lsm303agr, lsm303ah, lsm303c, lsm303d, lsm303dlhc
Accelerometer:ais328dq, lis2de, lis2dh12, lis2ds12, lis2hh12, lis3dh
Gyroscope:a3g4250d, l3gd20, l3gd20h
Magnetometer:lis3mdl
Pressure and Temperature:lps22hb, lps25h
Humidity and Temperature:hts221