modules: hal_nordic: Add NRFX_GPIOTE_NUM_OF_EVT_HANDLERS option
Add option to specifiy number of nrfx_gpiote user handlers in Kconfig. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
241b477f93
commit
3457ebc667
2 changed files with 12 additions and 0 deletions
|
@ -66,6 +66,14 @@ config NRFX_GPIOTE
|
||||||
bool "Enable GPIOTE driver"
|
bool "Enable GPIOTE driver"
|
||||||
depends on HAS_HW_NRF_GPIOTE
|
depends on HAS_HW_NRF_GPIOTE
|
||||||
|
|
||||||
|
config NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
|
||||||
|
int "Number of event handlers"
|
||||||
|
depends on NRFX_GPIOTE
|
||||||
|
range 1 15
|
||||||
|
help
|
||||||
|
Specifies number of handlers that can be registered to nrfx_gpiote driver
|
||||||
|
by the user.
|
||||||
|
|
||||||
config NRFX_I2S
|
config NRFX_I2S
|
||||||
bool "Enable I2S driver"
|
bool "Enable I2S driver"
|
||||||
depends on HAS_HW_NRF_I2S
|
depends on HAS_HW_NRF_I2S
|
||||||
|
|
|
@ -97,6 +97,10 @@
|
||||||
#define NRFX_GPIOTE_ENABLED 1
|
#define NRFX_GPIOTE_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
|
||||||
|
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_NRFX_I2S
|
#ifdef CONFIG_NRFX_I2S
|
||||||
#define NRFX_I2S_ENABLED 1
|
#define NRFX_I2S_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue