ext: hal: nordic: Make it possible to build NRFX GPIOTE and PPI
This makes it possible for the application to enable building of the GPIOTE and PPI subsystems in NRFX. Signed-off-by: Jonas Norling <jonas.norling@greeneggs.se>
This commit is contained in:
parent
bfc4281cc0
commit
ac960bf91b
6 changed files with 24 additions and 16 deletions
|
@ -28,7 +28,9 @@ 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_GPIOTE nrfx/drivers/src/nrfx_gpiote.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_NFCT nrfx/drivers/src/nrfx_nfct.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_PPI nrfx/drivers/src/nrfx_ppi.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)
|
||||
|
|
|
@ -16,10 +16,16 @@ config NRFX_ADC
|
|||
config NRFX_CLOCK
|
||||
bool
|
||||
|
||||
config NRFX_GPIOTE
|
||||
bool
|
||||
|
||||
config NRFX_NFCT
|
||||
bool
|
||||
select NRFX_TIMER4
|
||||
|
||||
config NRFX_PPI
|
||||
bool
|
||||
|
||||
config NRFX_PWM
|
||||
bool
|
||||
|
||||
|
|
|
@ -186,8 +186,8 @@
|
|||
|
||||
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_GPIOTE
|
||||
#define NRFX_GPIOTE_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
|
@ -421,8 +421,8 @@
|
|||
|
||||
// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
|
||||
//==========================================================
|
||||
#ifndef NRFX_PPI_ENABLED
|
||||
#define NRFX_PPI_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_PPI
|
||||
#define NRFX_PPI_ENABLED 1
|
||||
#endif
|
||||
// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
|
||||
//==========================================================
|
||||
|
|
|
@ -260,8 +260,8 @@
|
|||
|
||||
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_GPIOTE
|
||||
#define NRFX_GPIOTE_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
|
@ -479,8 +479,8 @@
|
|||
|
||||
// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
|
||||
//==========================================================
|
||||
#ifndef NRFX_PPI_ENABLED
|
||||
#define NRFX_PPI_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_PPI
|
||||
#define NRFX_PPI_ENABLED 1
|
||||
#endif
|
||||
// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
|
||||
//==========================================================
|
||||
|
|
|
@ -262,8 +262,8 @@
|
|||
|
||||
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_GPIOTE
|
||||
#define NRFX_GPIOTE_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
|
@ -878,8 +878,8 @@
|
|||
|
||||
// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
|
||||
//==========================================================
|
||||
#ifndef NRFX_PPI_ENABLED
|
||||
#define NRFX_PPI_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_PPI
|
||||
#define NRFX_PPI_ENABLED 1
|
||||
#endif
|
||||
// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
|
||||
//==========================================================
|
||||
|
|
|
@ -262,8 +262,8 @@
|
|||
|
||||
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_GPIOTE_ENABLED
|
||||
#define NRFX_GPIOTE_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_GPIOTE
|
||||
#define NRFX_GPIOTE_ENABLED 1
|
||||
#endif
|
||||
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
|
||||
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
|
||||
|
@ -878,8 +878,8 @@
|
|||
|
||||
// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
|
||||
//==========================================================
|
||||
#ifndef NRFX_PPI_ENABLED
|
||||
#define NRFX_PPI_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_PPI
|
||||
#define NRFX_PPI_ENABLED 1
|
||||
#endif
|
||||
// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
|
||||
//==========================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue