ext: hal: nrfx: adding nfct driver to Kconfig

Added configuration option for NFCT driver to Kconfig.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
Kamil Piszczek 2018-10-02 13:20:52 +02:00 committed by Anas Nashif
commit add09c72ee
4 changed files with 9 additions and 4 deletions

View file

@ -22,6 +22,7 @@ if(CONFIG_HAS_NRFX)
zephyr_sources_ifdef(CONFIG_NRFX_ADC nrfx/drivers/src/nrfx_adc.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_PWM nrfx/drivers/src/nrfx_pwm.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)

View file

@ -16,6 +16,10 @@ config NRFX_ADC
config NRFX_CLOCK
bool
config NRFX_NFCT
bool
select NRFX_TIMER4
config NRFX_PWM
bool

View file

@ -664,8 +664,8 @@
// <e> NRFX_NFCT_ENABLED - nrfx_nfct - NFCT peripheral driver
//==========================================================
#ifndef NRFX_NFCT_ENABLED
#define NRFX_NFCT_ENABLED 0
#ifdef CONFIG_NRFX_NFCT
#define NRFX_NFCT_ENABLED 1
#endif
// <o> NRFX_NFCT_CONFIG_IRQ_PRIORITY - Interrupt priority

View file

@ -664,8 +664,8 @@
// <e> NRFX_NFCT_ENABLED - nrfx_nfct - NFCT peripheral driver
//==========================================================
#ifndef NRFX_NFCT_ENABLED
#define NRFX_NFCT_ENABLED 0
#ifdef CONFIG_NRFX_NFCT
#define NRFX_NFCT_ENABLED 1
#endif
// <o> NRFX_NFCT_CONFIG_IRQ_PRIORITY - Interrupt priority