ext: hal: nrfx: adding clock driver to Kconfig
Added configuration option for CLOCK driver to Kconfig. Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
parent
4ebf2afeb3
commit
307a84771a
6 changed files with 12 additions and 8 deletions
|
@ -21,6 +21,7 @@ if(CONFIG_HAS_NRFX)
|
|||
zephyr_sources_ifdef(CONFIG_NRFX_PRS nrfx/drivers/prs/nrfx_prs.c)
|
||||
|
||||
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_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)
|
||||
|
|
|
@ -13,6 +13,9 @@ config HAS_NRFX
|
|||
config NRFX_ADC
|
||||
bool
|
||||
|
||||
config NRFX_CLOCK
|
||||
bool
|
||||
|
||||
config NRFX_PWM
|
||||
bool
|
||||
|
||||
|
|
|
@ -107,8 +107,8 @@
|
|||
|
||||
// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_CLOCK_ENABLED
|
||||
#define NRFX_CLOCK_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_CLOCK
|
||||
#define NRFX_CLOCK_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
|
||||
// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_CLOCK_ENABLED
|
||||
#define NRFX_CLOCK_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_CLOCK
|
||||
#define NRFX_CLOCK_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
|
||||
// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_CLOCK_ENABLED
|
||||
#define NRFX_CLOCK_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_CLOCK
|
||||
#define NRFX_CLOCK_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
|
||||
// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_CLOCK_ENABLED
|
||||
#define NRFX_CLOCK_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_CLOCK
|
||||
#define NRFX_CLOCK_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue