Skip to content

Commit 7c84758

Browse files
committed
Revert "common chconf.h: allow custom idle hooks"
This reverts commit 92d5f99.
1 parent 92d5f99 commit 7c84758

File tree

1 file changed

+2
-4
lines changed
  • platforms/chibios/boards/common/configs

1 file changed

+2
-4
lines changed

platforms/chibios/boards/common/configs/chconf.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -749,22 +749,20 @@
749749
* should be invoked from here.
750750
* @note This macro can be used to activate a power saving mode.
751751
*/
752-
#if !defined(CH_CFG_IDLE_ENTER_HOOK)
753752
#define CH_CFG_IDLE_ENTER_HOOK() { \
754753
/* Idle-enter code here.*/ \
755754
}
756-
#endif
755+
757756
/**
758757
* @brief Idle thread leave hook.
759758
* @note This hook is invoked within a critical zone, no OS functions
760759
* should be invoked from here.
761760
* @note This macro can be used to deactivate a power saving mode.
762761
*/
763-
#if !defined(CH_CFG_IDLE_LEAVE_HOOK)
764762
#define CH_CFG_IDLE_LEAVE_HOOK() { \
765763
/* Idle-leave code here.*/ \
766764
}
767-
#endif
765+
768766
/**
769767
* @brief Idle Loop hook.
770768
* @details This hook is continuously invoked by the idle thread loop.

0 commit comments

Comments
 (0)