Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions boards/arm/rp2040/common/src/rp2040_common_bringup.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
#include "rp2040_i2c.h"
#endif

#ifdef CONFIG_SENSORS_PAC195X
#include <nuttx/sensors/pac195x.h>
#include "rp2040_i2c.h"
#endif

#ifdef CONFIG_SENSORS_MAX6675
#include <nuttx/sensors/max6675.h>
#include "rp2040_max6675.h"
Expand Down
31 changes: 31 additions & 0 deletions drivers/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1758,4 +1758,35 @@ config SENSOR_AMG88XX_ADDR

endif # SENSORS_AMG88XX

config SENSORS_PAC195X
bool "Microchip PAC195x series power monitors"
default n
select I2C
---help---
Enable driver support for the Microchip PAC195x series power monitors.

if SENSORS_PAC195X

config CONFIG_PAC195x_I2C_FREQUENCY
int "PAC195x I2C frequency"
default 400000
range 1 400000


config CONFIG_PAC195x_CHANNEL_1
bool "PAC195x I2C channel 1 enabled"
default 1

config CONFIG_PAC195x_CHANNEL_2
bool "PAC195x I2C channel 2 enabled"
default 1

# not sure what these were supposed to look like
# config CONFIG_PAC195x_SAMPLE_MODE
# bool
#
# config SAMPLE_1024_SPS_AD bool

endif # SENSORS_PAC195X

endif # SENSORS
4 changes: 4 additions & 0 deletions drivers/sensors/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ ifeq ($(CONFIG_SENSORS_BMM150),y)
CSRCS += bmm150_uorb.c
endif

ifeq ($(CONFIG_SENSORS_PAC195X),y)
CSRCS += pac195x.c
endif

endif # CONFIG_I2C

# These drivers depend on SPI support
Expand Down
Loading