1if(CONFIG_USE_SEGGER_RTT) 2 zephyr_library() 3 set(SEGGER_DIR ${ZEPHYR_CURRENT_MODULE_DIR}) 4 zephyr_include_directories_ifdef(CONFIG_USE_SEGGER_RTT 5 ${SEGGER_DIR}/SEGGER 6 ${SEGGER_DIR}/Config 7 . 8 ) 9 zephyr_library_sources( 10 ${SEGGER_DIR}/SEGGER/SEGGER_RTT.c 11 SEGGER_RTT_zephyr.c 12 ) 13 zephyr_library_sources_ifdef(CONFIG_SEGGER_SYSTEMVIEW ${SEGGER_DIR}/SEGGER/SEGGER_SYSVIEW.c) 14endif() 15 16if(CONFIG_SEGGER_DEBUGMON) 17 if(!CONFIG_USE_SEGGER_RTT) 18 zephyr_library() 19 endif() 20 21 set(SEGGER_DIR ${ZEPHYR_CURRENT_MODULE_DIR}) 22 zephyr_include_directories_ifdef(CONFIG_SEGGER_DEBUGMON 23 ${SEGGER_DIR}/SEGGER/DebugMon/include 24 ) 25 zephyr_library_sources( 26 ${SEGGER_DIR}/SEGGER/DebugMon/JLINK_MONITOR.c 27 ${SEGGER_DIR}/SEGGER/DebugMon/JLINK_MONITOR_ISR_SES.s 28 ) 29endif() 30