2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-08-10 20:44:56 +08:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2020-05-29 08:58:50 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2018-10-25 22:54:09 +08:00
|
|
|
project(interrupt)
|
2018-03-09 21:43:10 +08:00
|
|
|
|
2021-02-28 22:34:06 +08:00
|
|
|
target_include_directories(app PRIVATE
|
|
|
|
${ZEPHYR_BASE}/kernel/include
|
|
|
|
${ZEPHYR_BASE}/arch/${ARCH}/include
|
|
|
|
)
|
2022-07-07 00:53:59 +08:00
|
|
|
|
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/prevent_irq.c
|
|
|
|
src/interrupt_offload.c
|
|
|
|
src/nested_irq.c
|
|
|
|
)
|
|
|
|
|
|
|
|
target_sources_ifdef(CONFIG_DYNAMIC_INTERRUPTS app PRIVATE src/dynamic_isr.c)
|
|
|
|
target_sources_ifdef(CONFIG_X86 app PRIVATE src/regular_isr.c)
|