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:
parent
fb3b434438
commit
ab24be5552
15 changed files with 50 additions and 32 deletions
|
@ -48,6 +48,9 @@ BUILD_ASSERT(!IS_ENABLED(CONFIG_SMP), "APIC timer doesn't support SMP");
|
|||
#define LVT_MODE_MASK 0x00060000 /* timer mode bits */
|
||||
#define LVT_MODE 0x00000000 /* one-shot */
|
||||
|
||||
#if defined(CONFIG_TEST)
|
||||
const int32_t z_sys_timer_irq_for_test = CONFIG_APIC_TIMER_IRQ;
|
||||
#endif
|
||||
/*
|
||||
* CYCLES_PER_TICK must always be at least '2', otherwise MAX_TICKS
|
||||
* will overflow int32_t, which is how 'ticks' are currently represented.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue