This test is intended to verify the interrupt nesting. Interrupt nesting feature allows an ISR to be preempted in mid-execution if a higher priority interrupt is signaled. The lower priority ISR resumes execution once the higher priority ISR has completed its processing. Signed-off-by: Ajay Kishore <ajay.kishore@intel.com>
20 lines
384 B
C
20 lines
384 B
C
/*
|
|
* Copyright (c) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <ztest.h>
|
|
|
|
extern void test_nested_isr(void);
|
|
extern void test_prevent_interruption(void);
|
|
|
|
void test_main(void)
|
|
{
|
|
ztest_test_suite(interrupt_feature,
|
|
ztest_unit_test(test_nested_isr),
|
|
ztest_unit_test(test_prevent_interruption)
|
|
);
|
|
ztest_run_test_suite(interrupt_feature);
|
|
}
|