From 1b8d7b3557f43d393b35810f6351cc95ba047b97 Mon Sep 17 00:00:00 2001 From: geniusgogo Date: Thu, 8 Nov 2018 22:25:47 +0800 Subject: [PATCH 1/2] fixed Kconfig IDLE hook config --- src/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Kconfig b/src/Kconfig index d3889f4211..79205e0a5a 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -51,11 +51,16 @@ config RT_USING_OVERFLOW_CHECK config RT_USING_HOOK bool "Enable system hook" default y + select RT_USING_IDLE_HOOK help Enable the hook function when system running, such as idle thread hook, thread context switch etc. - if RT_USING_HOOK +config RT_USING_IDLE_HOOK + bool "Enable IDLE Task hook" + default y if RT_USING_HOOK + + if RT_USING_IDLE_HOOK config RT_IDEL_HOOK_LIST_SIZE int "The max size of idel hook list" default 4 From 379451c081a25358f8bbb598414b8afff8e189ca Mon Sep 17 00:00:00 2001 From: geniusgogo Date: Sat, 10 Nov 2018 10:45:36 +0800 Subject: [PATCH 2/2] code indent --- src/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Kconfig b/src/Kconfig index 79205e0a5a..78a3bf6d67 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -51,14 +51,14 @@ config RT_USING_OVERFLOW_CHECK config RT_USING_HOOK bool "Enable system hook" default y - select RT_USING_IDLE_HOOK + select RT_USING_IDLE_HOOK help Enable the hook function when system running, such as idle thread hook, thread context switch etc. config RT_USING_IDLE_HOOK - bool "Enable IDLE Task hook" - default y if RT_USING_HOOK + bool "Enable IDLE Task hook" + default y if RT_USING_HOOK if RT_USING_IDLE_HOOK config RT_IDEL_HOOK_LIST_SIZE