Skip to content

Commit

Permalink
APDS9922
Browse files Browse the repository at this point in the history
WIP

WIP - ALS now OK with full IOCTL.

WIP

WIP

ALS now works as intended

WIP - getting to bottom of crash when ctrl-c the app

Seems to all work...

ioctl #define changes

Update ioctl.h

Maybe final changes

Maybe final changes - again

Delete .settings directory

Delete nuttx Default.launch

Maybe final changes - again

changes after initial feedback

changes after initial feedback

Add snerr error when incorrect device ID seen

Update apds9922.c

Revert "Merge branch 'apds9922' of https://github.com/TimJTi/nuttx into apds9922"

This reverts commit 8fdf5cb, reversing
changes made to 0d58237.

Improve probe error messages

APDS9922

WIP

WIP - ALS now OK with full IOCTL.

WIP

WIP

ALS now works as intended

WIP - getting to bottom of crash when ctrl-c the app

Seems to all work...

ioctl #define changes

Update ioctl.h

Maybe final changes

Maybe final changes - again

Delete .settings directory

Delete nuttx Default.launch

Maybe final changes - again

changes after initial feedback

changes after initial feedback

Add snerr error when incorrect device ID seen

Update apds9922.c

Revert "Merge branch 'apds9922' of https://github.com/TimJTi/nuttx into apds9922"

This reverts commit 8fdf5cb, reversing
changes made to 0d58237.

Improve probe error messages

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Update drivers/sensors/apds9922.c

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>

Delete .gitignore

Changes after PR review

Remove static arrays from header file

Update apds9922.c

improvements to enum usage

Restore .gitignore

Update Kconfig

Update .gitignore

Update .gitignore
  • Loading branch information
TimJTi authored and xiaoxiang781216 committed Apr 22, 2023
1 parent 9bc3a9e commit 4719e44
Show file tree
Hide file tree
Showing 5 changed files with 2,926 additions and 0 deletions.
26 changes: 26 additions & 0 deletions drivers/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,32 @@ config APDS9960_I2C_FREQUENCY
default 400000
depends on SENSORS_APDS9960

config SENSORS_APDS9922
bool "Broadcom APDS-9922 Proximity and Ambient Light Sensor"
default n
select I2C
---help---
Enable driver support for the Broadcom APDS-9922 proximity and ambient light sensor.

config APDS9922_I2C_FREQUENCY
int "APDS-9922 I2C frequency"
default 400000
depends on SENSORS_APDS9922

config APDS9922_ALS_NPOLLWAITERS
int "APDS-9922 - number of ALS poll waiters"
default 2
depends on SENSORS_APDS9922
---help---
Sets the number of poll waiters for the ambient light sensor

config APDS9922_PS_NPOLLWAITERS
int "APDS-9922 - number of PS poll waiters"
default 2
depends on SENSORS_APDS9922
---help---
Sets the number of poll waiters for the proximity sensor

config SENSORS_AK09912
bool "Asahi AK09911/AK09912 Compass Sensor"
default n
Expand Down
4 changes: 4 additions & 0 deletions drivers/sensors/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ ifeq ($(CONFIG_SENSORS_APDS9960),y)
CSRCS += apds9960.c
endif

ifeq ($(CONFIG_SENSORS_APDS9922),y)
CSRCS += apds9922.c
endif

ifeq ($(CONFIG_SENSORS_AK09912),y)
CSRCS += ak09912.c
endif
Expand Down

0 comments on commit 4719e44

Please sign in to comment.