Skip to content

[sensor_v2] ap3216c pkg adapt sensor_v2 frame #1772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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
10 changes: 6 additions & 4 deletions peripherals/sensors/ap3216c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ if PKG_USING_AP3216C
string
default "/packages/peripherals/sensors/ap3216c"

config AP3216C_USING_SENSOR_DEVICE
bool "Enable sensor divce framework"
config PKG_AP3216C_USING_SENSOR_V2
bool "Enable sensor_v2 divce framework"
depends on RT_VER_NUM >= 0x50001
select RT_USING_SENSOR
select RT_USING_SENSOR_V2
default n

config AP3216C_USING_HW_INT
config PKG_AP3216C_USING_HW_INT
bool "Enable hardware interrupt."
default n
help
"It will enable hardware interrupt for the sensor, include als and ps interrupt."

if AP3216C_USING_HW_INT
if PKG_AP3216C_USING_HW_INT

config AP3216C_INT_PIN
int "The number of the sensor hardware interrupt pin."
Expand Down
Loading