Skip to content

Commit

Permalink
Revert "common chconf.h: allow custom idle hooks"
Browse files Browse the repository at this point in the history
This reverts commit 92d5f99.
  • Loading branch information
dexter93 committed Oct 12, 2022
1 parent 92d5f99 commit 7c84758
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions platforms/chibios/boards/common/configs/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,22 +749,20 @@
* should be invoked from here.
* @note This macro can be used to activate a power saving mode.
*/
#if !defined(CH_CFG_IDLE_ENTER_HOOK)
#define CH_CFG_IDLE_ENTER_HOOK() { \
/* Idle-enter code here.*/ \
}
#endif

/**
* @brief Idle thread leave hook.
* @note This hook is invoked within a critical zone, no OS functions
* should be invoked from here.
* @note This macro can be used to deactivate a power saving mode.
*/
#if !defined(CH_CFG_IDLE_LEAVE_HOOK)
#define CH_CFG_IDLE_LEAVE_HOOK() { \
/* Idle-leave code here.*/ \
}
#endif

/**
* @brief Idle Loop hook.
* @details This hook is continuously invoked by the idle thread loop.
Expand Down

0 comments on commit 7c84758

Please sign in to comment.