File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -68,47 +68,47 @@ choice ESB_SYS_TIMER
6868config ESB_SYS_TIMER0
6969 bool "TIMER0"
7070 depends on $(dt_nodelabel_has_compat,timer0,$(DT_COMPAT_NORDIC_NRF_TIMER))
71- select NRFX_TIMER0
71+ select NRFX_TIMER
7272
7373config ESB_SYS_TIMER1
7474 bool "TIMER1"
7575 depends on $(dt_nodelabel_has_compat,timer1,$(DT_COMPAT_NORDIC_NRF_TIMER))
76- select NRFX_TIMER1
76+ select NRFX_TIMER
7777
7878config ESB_SYS_TIMER2
7979 bool "TIMER2"
8080 depends on $(dt_nodelabel_has_compat,timer2,$(DT_COMPAT_NORDIC_NRF_TIMER))
81- select NRFX_TIMER2
81+ select NRFX_TIMER
8282
8383config ESB_SYS_TIMER3
8484 bool "TIMER3"
8585 depends on $(dt_nodelabel_has_compat,timer3,$(DT_COMPAT_NORDIC_NRF_TIMER))
86- select NRFX_TIMER3
86+ select NRFX_TIMER
8787
8888config ESB_SYS_TIMER4
8989 bool "TIMER4"
9090 depends on $(dt_nodelabel_has_compat,timer4,$(DT_COMPAT_NORDIC_NRF_TIMER))
91- select NRFX_TIMER4
91+ select NRFX_TIMER
9292
9393config ESB_SYS_TIMER10
9494 bool "TIMER10"
9595 depends on $(dt_nodelabel_has_compat,timer10,$(DT_COMPAT_NORDIC_NRF_TIMER))
96- select NRFX_TIMER10
96+ select NRFX_TIMER
9797
9898config ESB_SYS_TIMER020
9999 bool "TIMER020"
100100 depends on $(dt_nodelabel_has_compat,timer020,$(DT_COMPAT_NORDIC_NRF_TIMER))
101- select NRFX_TIMER020
101+ select NRFX_TIMER
102102
103103config ESB_SYS_TIMER021
104104 bool "TIMER021"
105105 depends on $(dt_nodelabel_has_compat,timer021,$(DT_COMPAT_NORDIC_NRF_TIMER))
106- select NRFX_TIMER021
106+ select NRFX_TIMER
107107
108108config ESB_SYS_TIMER022
109109 bool "TIMER022"
110110 depends on $(dt_nodelabel_has_compat,timer022,$(DT_COMPAT_NORDIC_NRF_TIMER))
111- select NRFX_TIMER022
111+ select NRFX_TIMER
112112
113113endchoice
114114
Original file line number Diff line number Diff line change @@ -244,7 +244,8 @@ struct esb_address {
244244 atomic_t rf_channel_flags ; /* Flags for setting the channel. */
245245};
246246
247- static nrfx_timer_t esb_timer = ESB_NRFX_TIMER_INSTANCE ;
247+ static nrfx_timer_t esb_timer = NRFX_TIMER_INSTANCE (ESB_NRFX_TIMER_INSTANCE_REG );
248+ NRFX_INSTANCE_IRQ_HANDLER_DEFINE (timer , ESB_TIMER_INSTANCE_NO , & esb_timer );
248249
249250static bool esb_initialized ;
250251static struct esb_config esb_cfg ;
@@ -1827,7 +1828,7 @@ static void evt_dynamic_irq_handler(const void *args)
18271828static void timer_dynamic_irq_handler (const void * args )
18281829{
18291830 ARG_UNUSED (args );
1830- ESB_TIMER_IRQ_HANDLER ( );
1831+ nrfx_timer_irq_handler ( & esb_timer );
18311832 ISR_DIRECT_PM ();
18321833}
18331834
Original file line number Diff line number Diff line change @@ -104,8 +104,7 @@ extern "C" {
104104 NRFX_CONCAT_2(NRF_TIMER, ESB_TIMER_INSTANCE_NO)
105105
106106/** ESB nrfx timer instance. */
107- #define ESB_NRFX_TIMER_INSTANCE NRFX_TIMER_INSTANCE(ESB_TIMER_INSTANCE_NO)
108-
107+ #define ESB_NRFX_TIMER_INSTANCE_REG NRF_TIMER_INST_GET(ESB_TIMER_INSTANCE_NO)
109108#if !defined(CONFIG_NRFX_DPPI )
110109/** Use fixed DPPI channels and groups if nrfx_dppi is not available. */
111110#define ESB_DPPI_FIXED
You can’t perform that action at this time.
0 commit comments