ext: hal: nrfx: adding timer driver to Kconfig
Added configuration option for TIMER driver to Kconfig. Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
parent
307a84771a
commit
21bfea667e
6 changed files with 64 additions and 40 deletions
|
@ -28,6 +28,7 @@ if(CONFIG_HAS_NRFX)
|
|||
zephyr_sources_ifdef(CONFIG_NRFX_SPI nrfx/drivers/src/nrfx_spi.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_SPIM nrfx/drivers/src/nrfx_spim.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_SPIS nrfx/drivers/src/nrfx_spis.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_TIMER nrfx/drivers/src/nrfx_timer.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_TWI nrfx/drivers/src/nrfx_twi.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_TWIM nrfx/drivers/src/nrfx_twim.c)
|
||||
zephyr_sources_ifdef(CONFIG_NRFX_UART nrfx/drivers/src/nrfx_uart.c)
|
||||
|
|
|
@ -31,6 +31,29 @@ config NRFX_SPIM
|
|||
config NRFX_SPIS
|
||||
bool
|
||||
|
||||
config NRFX_TIMER
|
||||
bool
|
||||
|
||||
config NRFX_TIMER0
|
||||
bool
|
||||
select NRFX_TIMER
|
||||
|
||||
config NRFX_TIMER1
|
||||
bool
|
||||
select NRFX_TIMER
|
||||
|
||||
config NRFX_TIMER2
|
||||
bool
|
||||
select NRFX_TIMER
|
||||
|
||||
config NRFX_TIMER3
|
||||
bool
|
||||
select NRFX_TIMER
|
||||
|
||||
config NRFX_TIMER4
|
||||
bool
|
||||
select NRFX_TIMER
|
||||
|
||||
config NRFX_TWI
|
||||
bool
|
||||
|
||||
|
|
|
@ -1160,28 +1160,28 @@
|
|||
|
||||
// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_TIMER_ENABLED
|
||||
#define NRFX_TIMER_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER
|
||||
#define NRFX_TIMER_ENABLED 1
|
||||
#endif
|
||||
// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER0_ENABLED
|
||||
#define NRFX_TIMER0_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER0
|
||||
#define NRFX_TIMER0_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER1_ENABLED
|
||||
#define NRFX_TIMER1_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER1
|
||||
#define NRFX_TIMER1_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER2_ENABLED
|
||||
#define NRFX_TIMER2_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER2
|
||||
#define NRFX_TIMER2_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
|
||||
|
|
|
@ -1530,28 +1530,28 @@
|
|||
|
||||
// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_TIMER_ENABLED
|
||||
#define NRFX_TIMER_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER
|
||||
#define NRFX_TIMER_ENABLED 1
|
||||
#endif
|
||||
// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER0_ENABLED
|
||||
#define NRFX_TIMER0_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER0
|
||||
#define NRFX_TIMER0_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER1_ENABLED
|
||||
#define NRFX_TIMER1_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER1
|
||||
#define NRFX_TIMER1_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER2_ENABLED
|
||||
#define NRFX_TIMER2_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER2
|
||||
#define NRFX_TIMER2_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
|
||||
|
|
|
@ -2138,42 +2138,42 @@
|
|||
|
||||
// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_TIMER_ENABLED
|
||||
#define NRFX_TIMER_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER
|
||||
#define NRFX_TIMER_ENABLED 1
|
||||
#endif
|
||||
// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER0_ENABLED
|
||||
#define NRFX_TIMER0_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER0
|
||||
#define NRFX_TIMER0_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER1_ENABLED
|
||||
#define NRFX_TIMER1_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER1
|
||||
#define NRFX_TIMER1_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER2_ENABLED
|
||||
#define NRFX_TIMER2_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER2
|
||||
#define NRFX_TIMER2_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER3_ENABLED
|
||||
#define NRFX_TIMER3_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER3
|
||||
#define NRFX_TIMER3_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER4_ENABLED
|
||||
#define NRFX_TIMER4_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER4
|
||||
#define NRFX_TIMER4_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
|
||||
|
|
|
@ -2241,42 +2241,42 @@
|
|||
|
||||
// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
|
||||
//==========================================================
|
||||
#ifndef NRFX_TIMER_ENABLED
|
||||
#define NRFX_TIMER_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER
|
||||
#define NRFX_TIMER_ENABLED 1
|
||||
#endif
|
||||
// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER0_ENABLED
|
||||
#define NRFX_TIMER0_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER0
|
||||
#define NRFX_TIMER0_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER1_ENABLED
|
||||
#define NRFX_TIMER1_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER1
|
||||
#define NRFX_TIMER1_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER2_ENABLED
|
||||
#define NRFX_TIMER2_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER2
|
||||
#define NRFX_TIMER2_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER3_ENABLED
|
||||
#define NRFX_TIMER3_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER3
|
||||
#define NRFX_TIMER3_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance
|
||||
|
||||
|
||||
#ifndef NRFX_TIMER4_ENABLED
|
||||
#define NRFX_TIMER4_ENABLED 0
|
||||
#ifdef CONFIG_NRFX_TIMER4
|
||||
#define NRFX_TIMER4_ENABLED 1
|
||||
#endif
|
||||
|
||||
// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue