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
|
@ -29,6 +29,9 @@
|
|||
#define TIMER_DISABLE 0x0
|
||||
#define TIMER_ENABLE 0x1
|
||||
#define TIMER_UPTIME_LATCH 0x1
|
||||
#if defined(CONFIG_TEST)
|
||||
const int32_t z_sys_timer_irq_for_test = TIMER_IRQ;
|
||||
#endif
|
||||
|
||||
static void litex_timer_irq_handler(const void *device)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue