Skip to content

Commit 582e0ab

Browse files
zhangshanminxiaoxiang781216
authored andcommitted
goldfish: add goldfish sensors driver
Implemented Goldfish Sensors: Accelerometer Gyroscope MagneticField AmbientTemperature Proximity Light Pressure RelativeHumidity MagneticFieldUncalibrated GyroscopeFieldUncalibrated HeartRate Unimplemented Goldfish Sensors: (sensor type is not defined nuttx) Orientation HingeAngle0 HingeAngle1 HingeAngle2 WristTilt Verification: uorb_listener -r 1 sensor_accel uorb_listener -r 1 sensor_mag uorb_listener -r 1 sensor_gyro uorb_listener -r 1 sensor_prox uorb_listener -r 1 sensor_light uorb_listener -r 1 sensor_humi uorb_listener -r 1 sensor_baro uorb_listener -r 1 sensor_temp uorb_listener -r 1 sensor_hrate Signed-off-by: Shanmin Zhang <zhangshanmin@xiaomi.com>
1 parent a104fdc commit 582e0ab

File tree

4 files changed

+828
-0
lines changed

4 files changed

+828
-0
lines changed

drivers/sensors/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ config SENSORS_GOLDFISH_GPS
6161
depends on SENSORS_GPS
6262
default n
6363

64+
config SENSORS_GOLDFISH_SENSOR
65+
bool "Goldfish SENSORS Support"
66+
default n
67+
6468
config SENSORS_APDS9960
6569
bool "Avago APDS-9960 Gesture Sensor support"
6670
default n

drivers/sensors/Make.defs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ ifeq ($(CONFIG_SENSORS_GOLDFISH_GPS),y)
4848
CSRCS += goldfish_gps_uorb.c
4949
endif
5050

51+
ifeq ($(CONFIG_SENSORS_GOLDFISH_SENSOR),y)
52+
CSRCS += goldfish_sensor_uorb.c
53+
endif
54+
5155
ifeq ($(CONFIG_SENSORS_HCSR04),y)
5256
CSRCS += hc_sr04.c
5357
endif

0 commit comments

Comments
 (0)