drivers: timer: provide timer irq to tests

As with previous commit, make the timer irq a simple integer variable
exported by the timer driver for the benefit of this one test
(tests/kernel/context).

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-06-28 17:58:40 -04:00 committed by Carles Cufí
commit ab24be5552
15 changed files with 50 additions and 32 deletions

View file

@ -24,6 +24,9 @@
#define CYCLES_PER_SEC sys_clock_hw_cycles_per_sec()
#define CYCLES_PER_TICK (CYCLES_PER_SEC / CONFIG_SYS_CLOCK_TICKS_PER_SEC)
#if defined(CONFIG_TEST)
const int32_t z_sys_timer_irq_for_test = DT_IRQN(DT_ALIAS(system_lptmr));
#endif
/*
* As a simplifying assumption, we only support a clock ticking at the