File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
platforms/chibios/boards/common/configs Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 749
749
* should be invoked from here.
750
750
* @note This macro can be used to activate a power saving mode.
751
751
*/
752
+ #if !defined(CH_CFG_IDLE_ENTER_HOOK )
752
753
#define CH_CFG_IDLE_ENTER_HOOK () { \
753
754
/* Idle-enter code here.*/ \
754
755
}
755
-
756
+ #endif
756
757
/**
757
758
* @brief Idle thread leave hook.
758
759
* @note This hook is invoked within a critical zone, no OS functions
759
760
* should be invoked from here.
760
761
* @note This macro can be used to deactivate a power saving mode.
761
762
*/
763
+ #if !defined(CH_CFG_IDLE_LEAVE_HOOK )
762
764
#define CH_CFG_IDLE_LEAVE_HOOK () { \
763
765
/* Idle-leave code here.*/ \
764
766
}
765
-
767
+ #endif
766
768
/**
767
769
* @brief Idle Loop hook.
768
770
* @details This hook is continuously invoked by the idle thread loop.
You can’t perform that action at this time.
0 commit comments