adds ISR check that is closer to productive code

This approach patches the existing trap handler to call the test routine
This commit is contained in:
2026-03-21 20:27:16 +01:00
parent 8bcbc9881e
commit 7307a86860
3 changed files with 44 additions and 1 deletions

View File

@@ -3,11 +3,15 @@ set(THREADX4TGFS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
set(MOONLIGHT_SRC_DIR ${MOONLIGHT_ROOT}/src)
set(MOONLIGHT_INC_DIR ${MOONLIGHT_ROOT}/inc)
if(NOT DEFINED MOONLIGHT_TRAP_SOURCE)
set(MOONLIGHT_TRAP_SOURCE ${MOONLIGHT_SRC_DIR}/trap_non_vectored.c)
endif()
set(MOONLIGHT_PLATFORM_SOURCES
${THREADX4TGFS_ROOT}/port/picolibc/port.c
${MOONLIGHT_SRC_DIR}/bootup.c
${MOONLIGHT_SRC_DIR}/board.c
${MOONLIGHT_SRC_DIR}/trap_non_vectored.c
${MOONLIGHT_TRAP_SOURCE}
${MOONLIGHT_SRC_DIR}/exception.c
${MOONLIGHT_SRC_DIR}/vector_table.c)