소스 검색

update Kconfig, add RT_HOOK_USING_FUNC_PTR

guozhanxin 3 년 전
부모
커밋
0e5dd7d1ab
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/Kconfig

+ 5 - 0
src/Kconfig

@@ -84,6 +84,11 @@ config RT_USING_HOOK
     help
         Enable the hook function when system running, such as idle thread hook,
         thread context switch etc.
+    if RT_USING_HOOK
+        config RT_HOOK_USING_FUNC_PTR
+        bool "Using function pointers as system hook"
+        default y
+    endif
 
 config RT_USING_IDLE_HOOK
     bool "Enable IDLE Task hook"