ext: hal: nordic: Enable building of NRFX QDEC
Allow project to use Nordic's NRFX QDEC driver. This closes issue #9364 Jira:DESK-259 Signed-off-by: Pawel Dunaj <pawel.dunaj@nordicsemi.no>
This commit is contained in:
parent
589ed030ec
commit
cb01d097af
6 changed files with 13 additions and 9 deletions
|
@ -24,6 +24,7 @@ if(CONFIG_HAS_NRFX)
|
||||||
zephyr_sources_ifdef(CONFIG_NRFX_CLOCK nrfx/drivers/src/nrfx_clock.c)
|
zephyr_sources_ifdef(CONFIG_NRFX_CLOCK nrfx/drivers/src/nrfx_clock.c)
|
||||||
zephyr_sources_ifdef(CONFIG_NRFX_NFCT nrfx/drivers/src/nrfx_nfct.c)
|
zephyr_sources_ifdef(CONFIG_NRFX_NFCT nrfx/drivers/src/nrfx_nfct.c)
|
||||||
zephyr_sources_ifdef(CONFIG_NRFX_PWM nrfx/drivers/src/nrfx_pwm.c)
|
zephyr_sources_ifdef(CONFIG_NRFX_PWM nrfx/drivers/src/nrfx_pwm.c)
|
||||||
|
zephyr_sources_ifdef(CONFIG_NRFX_QDEC nrfx/drivers/src/nrfx_qdec.c)
|
||||||
zephyr_sources_ifdef(CONFIG_NRFX_RTC nrfx/drivers/src/nrfx_rtc.c)
|
zephyr_sources_ifdef(CONFIG_NRFX_RTC nrfx/drivers/src/nrfx_rtc.c)
|
||||||
zephyr_sources_ifdef(CONFIG_NRFX_SAADC nrfx/drivers/src/nrfx_saadc.c)
|
zephyr_sources_ifdef(CONFIG_NRFX_SAADC nrfx/drivers/src/nrfx_saadc.c)
|
||||||
zephyr_sources_ifdef(CONFIG_NRFX_SPI nrfx/drivers/src/nrfx_spi.c)
|
zephyr_sources_ifdef(CONFIG_NRFX_SPI nrfx/drivers/src/nrfx_spi.c)
|
||||||
|
|
|
@ -23,6 +23,9 @@ config NRFX_NFCT
|
||||||
config NRFX_PWM
|
config NRFX_PWM
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config NRFX_QDEC
|
||||||
|
bool
|
||||||
|
|
||||||
config NRFX_SAADC
|
config NRFX_SAADC
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
|
|
@ -551,8 +551,8 @@
|
||||||
|
|
||||||
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
||||||
//==========================================================
|
//==========================================================
|
||||||
#ifndef NRFX_QDEC_ENABLED
|
#ifdef CONFIG_NRFX_QDEC
|
||||||
#define NRFX_QDEC_ENABLED 0
|
#define NRFX_QDEC_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
||||||
|
|
||||||
|
|
|
@ -787,8 +787,8 @@
|
||||||
|
|
||||||
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
||||||
//==========================================================
|
//==========================================================
|
||||||
#ifndef NRFX_QDEC_ENABLED
|
#ifdef CONFIG_NRFX_QDEC
|
||||||
#define NRFX_QDEC_ENABLED 0
|
#define NRFX_QDEC_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
||||||
|
|
||||||
|
|
|
@ -1228,8 +1228,8 @@
|
||||||
|
|
||||||
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
||||||
//==========================================================
|
//==========================================================
|
||||||
#ifndef NRFX_QDEC_ENABLED
|
#ifdef CONFIG_NRFX_QDEC
|
||||||
#define NRFX_QDEC_ENABLED 0
|
#define NRFX_QDEC_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
||||||
|
|
||||||
|
|
|
@ -1207,8 +1207,8 @@
|
||||||
|
|
||||||
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
|
||||||
//==========================================================
|
//==========================================================
|
||||||
#ifndef NRFX_QDEC_ENABLED
|
#ifdef CONFIG_NRFX_QDEC
|
||||||
#define NRFX_QDEC_ENABLED 0
|
#define NRFX_QDEC_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue