aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-01-03 09:58:34 +1100
committerNick Brassel <nick@tzarc.org>2020-01-28 23:45:42 +1100
commit4d06d2835c87f3eed694493fb749527032a78ec2 (patch)
treebcdee649bdfa6fc26f749ff026681946610b6714
parent92c62352cf869a4099eb821b9e7d56d303bbec7b (diff)
downloadqmk_firmware-4d06d2835c87f3eed694493fb749527032a78ec2.tar.gz
qmk_firmware-4d06d2835c87f3eed694493fb749527032a78ec2.zip
Move CORTEX_ENABLE_WFI_IDLE=TRUE to rules.mk files.
-rw-r--r--keyboards/at_at/660m/chconf.h4
-rw-r--r--keyboards/at_at/660m/rules.mk3
-rw-r--r--keyboards/candybar/chconf.h4
-rw-r--r--keyboards/candybar/rules.mk4
-rw-r--r--keyboards/cannonkeys/an_c/chconf.h4
-rw-r--r--keyboards/cannonkeys/an_c/rules.mk4
-rw-r--r--keyboards/cannonkeys/chimera65/chconf.h4
-rw-r--r--keyboards/cannonkeys/chimera65/rules.mk4
-rw-r--r--keyboards/cannonkeys/instant60/chconf.h4
-rw-r--r--keyboards/cannonkeys/instant60/rules.mk4
-rw-r--r--keyboards/cannonkeys/iron165/chconf.h4
-rw-r--r--keyboards/cannonkeys/iron165/rules.mk4
-rw-r--r--keyboards/cannonkeys/ortho48/chconf.h4
-rw-r--r--keyboards/cannonkeys/ortho48/rules.mk4
-rw-r--r--keyboards/cannonkeys/ortho60/chconf.h4
-rw-r--r--keyboards/cannonkeys/ortho60/rules.mk4
-rw-r--r--keyboards/cannonkeys/ortho75/chconf.h4
-rw-r--r--keyboards/cannonkeys/ortho75/rules.mk4
-rw-r--r--keyboards/cannonkeys/practice60/chconf.h4
-rw-r--r--keyboards/cannonkeys/practice60/rules.mk4
-rw-r--r--keyboards/cannonkeys/practice65/chconf.h4
-rw-r--r--keyboards/cannonkeys/practice65/rules.mk4
-rw-r--r--keyboards/cannonkeys/satisfaction75/chconf.h4
-rw-r--r--keyboards/cannonkeys/satisfaction75/rules.mk4
-rw-r--r--keyboards/cannonkeys/savage65/chconf.h4
-rw-r--r--keyboards/cannonkeys/savage65/rules.mk3
-rw-r--r--keyboards/cannonkeys/tmov2/chconf.h4
-rw-r--r--keyboards/cannonkeys/tmov2/rules.mk3
-rw-r--r--keyboards/converter/siemens_tastatur/chconf.h4
-rw-r--r--keyboards/converter/siemens_tastatur/rules.mk3
-rw-r--r--keyboards/ergodox_stm32/chconf.h4
-rw-r--r--keyboards/ergodox_stm32/rules.mk4
-rw-r--r--keyboards/handwired/bluepill/bluepill70/chconf.h4
-rw-r--r--keyboards/handwired/bluepill/bluepill70/rules.mk6
-rw-r--r--keyboards/handwired/ck4x4/chconf.h4
-rw-r--r--keyboards/handwired/ck4x4/rules.mk4
-rw-r--r--keyboards/handwired/onekey/bluepill/chconf.h4
-rw-r--r--keyboards/handwired/onekey/bluepill/rules.mk4
-rw-r--r--keyboards/handwired/onekey/stm32f0_disco/chconf.h4
-rw-r--r--keyboards/handwired/onekey/stm32f0_disco/rules.mk4
-rw-r--r--keyboards/handwired/onekey/teensy_32/chconf.h4
-rw-r--r--keyboards/handwired/onekey/teensy_32/rules.mk4
-rw-r--r--keyboards/handwired/onekey/teensy_lc/chconf.h4
-rw-r--r--keyboards/handwired/onekey/teensy_lc/rules.mk4
-rw-r--r--keyboards/infinity60/chconf.h4
-rw-r--r--keyboards/infinity60/rules.mk4
-rw-r--r--keyboards/jm60/chconf.h4
-rw-r--r--keyboards/jm60/rules.mk8
-rw-r--r--keyboards/k_type/chconf.h4
-rw-r--r--keyboards/k_type/rules.mk4
-rw-r--r--keyboards/peiorisboards/ixora/chconf.h6
-rw-r--r--keyboards/peiorisboards/ixora/rules.mk4
-rw-r--r--keyboards/projectkb/alice/chconf.h4
-rw-r--r--keyboards/projectkb/alice/rules.mk4
-rw-r--r--keyboards/vinta/chconf.h6
-rw-r--r--keyboards/vinta/rules.mk6
-rw-r--r--keyboards/whitefox/chconf.h4
-rw-r--r--keyboards/whitefox/rules.mk4
58 files changed, 118 insertions, 122 deletions
diff --git a/keyboards/at_at/660m/chconf.h b/keyboards/at_at/660m/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/at_at/660m/chconf.h
+++ b/keyboards/at_at/660m/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/at_at/660m/rules.mk b/keyboards/at_at/660m/rules.mk
index b893d8031..0b3685f09 100644
--- a/keyboards/at_at/660m/rules.mk
+++ b/keyboards/at_at/660m/rules.mk
@@ -17,3 +17,6 @@ CUSTOM_MATRIX = no # Custom matrix file
17# RGBLIGHT_ENABLE = yes 17# RGBLIGHT_ENABLE = yes
18NO_USB_STARTUP_CHECK = yes # Workaround for issue 6369 18NO_USB_STARTUP_CHECK = yes # Workaround for issue 6369
19 19
20
21# Enter lower-power sleep mode when on the ChibiOS idle thread
22OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/candybar/chconf.h b/keyboards/candybar/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/candybar/chconf.h
+++ b/keyboards/candybar/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/candybar/rules.mk b/keyboards/candybar/rules.mk
index 0e1a8517f..cb1b83288 100644
--- a/keyboards/candybar/rules.mk
+++ b/keyboards/candybar/rules.mk
@@ -18,3 +18,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
18AUDIO_ENABLE = no 18AUDIO_ENABLE = no
19RGBLIGHT_ENABLE = no 19RGBLIGHT_ENABLE = no
20SERIAL_LINK_ENABLE = no 20SERIAL_LINK_ENABLE = no
21
22
23# Enter lower-power sleep mode when on the ChibiOS idle thread
24OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/an_c/chconf.h b/keyboards/cannonkeys/an_c/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/cannonkeys/an_c/chconf.h
+++ b/keyboards/cannonkeys/an_c/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/an_c/rules.mk b/keyboards/cannonkeys/an_c/rules.mk
index 151f72fd0..2050ba34c 100644
--- a/keyboards/cannonkeys/an_c/rules.mk
+++ b/keyboards/cannonkeys/an_c/rules.mk
@@ -22,3 +22,7 @@ CUSTOM_MATRIX = no # Custom matrix file
22RGBLIGHT_ENABLE = yes 22RGBLIGHT_ENABLE = yes
23 23
24LAYOUTS = 60_ansi 60_tsangan_hhkb 24LAYOUTS = 60_ansi 60_tsangan_hhkb
25
26
27# Enter lower-power sleep mode when on the ChibiOS idle thread
28OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/chimera65/chconf.h b/keyboards/cannonkeys/chimera65/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/cannonkeys/chimera65/chconf.h
+++ b/keyboards/cannonkeys/chimera65/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/chimera65/rules.mk b/keyboards/cannonkeys/chimera65/rules.mk
index 1e300a99c..9b1ab5899 100644
--- a/keyboards/cannonkeys/chimera65/rules.mk
+++ b/keyboards/cannonkeys/chimera65/rules.mk
@@ -20,3 +20,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
20CUSTOM_MATRIX = no # Custom matrix file 20CUSTOM_MATRIX = no # Custom matrix file
21# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason 21# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
22RGBLIGHT_ENABLE = no 22RGBLIGHT_ENABLE = no
23
24
25# Enter lower-power sleep mode when on the ChibiOS idle thread
26OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/instant60/chconf.h b/keyboards/cannonkeys/instant60/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/cannonkeys/instant60/chconf.h
+++ b/keyboards/cannonkeys/instant60/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/instant60/rules.mk b/keyboards/cannonkeys/instant60/rules.mk
index db753884d..0b4afd8da 100644
--- a/keyboards/cannonkeys/instant60/rules.mk
+++ b/keyboards/cannonkeys/instant60/rules.mk
@@ -22,3 +22,7 @@ CUSTOM_MATRIX = no # Custom matrix file
22RGBLIGHT_ENABLE = yes 22RGBLIGHT_ENABLE = yes
23 23
24LAYOUTS = 60_ansi 60_tsangan_hhkb 24LAYOUTS = 60_ansi 60_tsangan_hhkb
25
26
27# Enter lower-power sleep mode when on the ChibiOS idle thread
28OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/iron165/chconf.h b/keyboards/cannonkeys/iron165/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/cannonkeys/iron165/chconf.h
+++ b/keyboards/cannonkeys/iron165/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/iron165/rules.mk b/keyboards/cannonkeys/iron165/rules.mk
index edc84edd5..33529718e 100644
--- a/keyboards/cannonkeys/iron165/rules.mk
+++ b/keyboards/cannonkeys/iron165/rules.mk
@@ -20,3 +20,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
20CUSTOM_MATRIX = no # Custom matrix file 20CUSTOM_MATRIX = no # Custom matrix file
21# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason 21# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
22RGBLIGHT_ENABLE = no 22RGBLIGHT_ENABLE = no
23
24
25# Enter lower-power sleep mode when on the ChibiOS idle thread
26OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/ortho48/chconf.h b/keyboards/cannonkeys/ortho48/chconf.h
index bbd9b2da6..9299be587 100644
--- a/keyboards/cannonkeys/ortho48/chconf.h
+++ b/keyboards/cannonkeys/ortho48/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/ortho48/rules.mk b/keyboards/cannonkeys/ortho48/rules.mk
index b060afd15..59c12681c 100644
--- a/keyboards/cannonkeys/ortho48/rules.mk
+++ b/keyboards/cannonkeys/ortho48/rules.mk
@@ -26,3 +26,7 @@ BACKLIGHT_DRIVER = custom
26RGBLIGHT_ENABLE = yes 26RGBLIGHT_ENABLE = yes
27 27
28LAYOUTS = ortho_4x12 28LAYOUTS = ortho_4x12
29
30
31# Enter lower-power sleep mode when on the ChibiOS idle thread
32OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/ortho60/chconf.h b/keyboards/cannonkeys/ortho60/chconf.h
index bbd9b2da6..9299be587 100644
--- a/keyboards/cannonkeys/ortho60/chconf.h
+++ b/keyboards/cannonkeys/ortho60/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/ortho60/rules.mk b/keyboards/cannonkeys/ortho60/rules.mk
index 1d3f1afa9..2077eea66 100644
--- a/keyboards/cannonkeys/ortho60/rules.mk
+++ b/keyboards/cannonkeys/ortho60/rules.mk
@@ -26,3 +26,7 @@ BACKLIGHT_DRIVER = custom
26RGBLIGHT_ENABLE = yes 26RGBLIGHT_ENABLE = yes
27 27
28LAYOUTS = ortho_5x12 28LAYOUTS = ortho_5x12
29
30
31# Enter lower-power sleep mode when on the ChibiOS idle thread
32OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/ortho75/chconf.h b/keyboards/cannonkeys/ortho75/chconf.h
index bbd9b2da6..9299be587 100644
--- a/keyboards/cannonkeys/ortho75/chconf.h
+++ b/keyboards/cannonkeys/ortho75/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/ortho75/rules.mk b/keyboards/cannonkeys/ortho75/rules.mk
index 538ab6aec..3be309924 100644
--- a/keyboards/cannonkeys/ortho75/rules.mk
+++ b/keyboards/cannonkeys/ortho75/rules.mk
@@ -27,3 +27,7 @@ RGBLIGHT_ENABLE = yes
27ENCODER_ENABLE = yes 27ENCODER_ENABLE = yes
28 28
29LAYOUTS = ortho_5x15 29LAYOUTS = ortho_5x15
30
31
32# Enter lower-power sleep mode when on the ChibiOS idle thread
33OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/practice60/chconf.h b/keyboards/cannonkeys/practice60/chconf.h
index bbd9b2da6..9299be587 100644
--- a/keyboards/cannonkeys/practice60/chconf.h
+++ b/keyboards/cannonkeys/practice60/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/practice60/rules.mk b/keyboards/cannonkeys/practice60/rules.mk
index a1c34a3ad..be1584d72 100644
--- a/keyboards/cannonkeys/practice60/rules.mk
+++ b/keyboards/cannonkeys/practice60/rules.mk
@@ -28,3 +28,7 @@ RGBLIGHT_ENABLE = yes
28LAYOUTS = 60_ansi 28LAYOUTS = 60_ansi
29 29
30DEFAULT_FOLDER = cannonkeys/practice60 30DEFAULT_FOLDER = cannonkeys/practice60
31
32
33# Enter lower-power sleep mode when on the ChibiOS idle thread
34OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/practice65/chconf.h b/keyboards/cannonkeys/practice65/chconf.h
index bbd9b2da6..9299be587 100644
--- a/keyboards/cannonkeys/practice65/chconf.h
+++ b/keyboards/cannonkeys/practice65/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/practice65/rules.mk b/keyboards/cannonkeys/practice65/rules.mk
index 1e8d56bca..d4a396120 100644
--- a/keyboards/cannonkeys/practice65/rules.mk
+++ b/keyboards/cannonkeys/practice65/rules.mk
@@ -24,3 +24,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
24BACKLIGHT_ENABLE = yes 24BACKLIGHT_ENABLE = yes
25BACKLIGHT_DRIVER = custom 25BACKLIGHT_DRIVER = custom
26RGBLIGHT_ENABLE = yes 26RGBLIGHT_ENABLE = yes
27
28
29# Enter lower-power sleep mode when on the ChibiOS idle thread
30OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/satisfaction75/chconf.h b/keyboards/cannonkeys/satisfaction75/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/cannonkeys/satisfaction75/chconf.h
+++ b/keyboards/cannonkeys/satisfaction75/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/satisfaction75/rules.mk b/keyboards/cannonkeys/satisfaction75/rules.mk
index 7e0b15b92..5fd801819 100644
--- a/keyboards/cannonkeys/satisfaction75/rules.mk
+++ b/keyboards/cannonkeys/satisfaction75/rules.mk
@@ -22,3 +22,7 @@ QWIIC_ENABLE += MICRO_OLED
22#BACKLIGHT_ENABLE = yes 22#BACKLIGHT_ENABLE = yes
23 23
24DEFAULT_FOLDER = cannonkeys/satisfaction75/rev1 24DEFAULT_FOLDER = cannonkeys/satisfaction75/rev1
25
26
27# Enter lower-power sleep mode when on the ChibiOS idle thread
28OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/savage65/chconf.h b/keyboards/cannonkeys/savage65/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/cannonkeys/savage65/chconf.h
+++ b/keyboards/cannonkeys/savage65/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/savage65/rules.mk b/keyboards/cannonkeys/savage65/rules.mk
index 199dd1078..1c1c4c2ec 100644
--- a/keyboards/cannonkeys/savage65/rules.mk
+++ b/keyboards/cannonkeys/savage65/rules.mk
@@ -21,3 +21,6 @@ CUSTOM_MATRIX = no # Custom matrix file
21# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason 21# BACKLIGHT_ENABLE = yes # This is broken on 072 for some reason
22RGBLIGHT_ENABLE = yes 22RGBLIGHT_ENABLE = yes
23 23
24
25# Enter lower-power sleep mode when on the ChibiOS idle thread
26OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/cannonkeys/tmov2/chconf.h b/keyboards/cannonkeys/tmov2/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/cannonkeys/tmov2/chconf.h
+++ b/keyboards/cannonkeys/tmov2/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/cannonkeys/tmov2/rules.mk b/keyboards/cannonkeys/tmov2/rules.mk
index e6f0ce30a..646288504 100644
--- a/keyboards/cannonkeys/tmov2/rules.mk
+++ b/keyboards/cannonkeys/tmov2/rules.mk
@@ -21,3 +21,6 @@ CUSTOM_MATRIX = no # Custom matrix file
21# BACKLIGHT_ENABLE = yes # This is broken on 072 right now 21# BACKLIGHT_ENABLE = yes # This is broken on 072 right now
22RGBLIGHT_ENABLE = yes 22RGBLIGHT_ENABLE = yes
23 23
24
25# Enter lower-power sleep mode when on the ChibiOS idle thread
26OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/converter/siemens_tastatur/chconf.h b/keyboards/converter/siemens_tastatur/chconf.h
index bbd9b2da6..9299be587 100644
--- a/keyboards/converter/siemens_tastatur/chconf.h
+++ b/keyboards/converter/siemens_tastatur/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/converter/siemens_tastatur/rules.mk b/keyboards/converter/siemens_tastatur/rules.mk
index bc0ed5316..bc5875962 100644
--- a/keyboards/converter/siemens_tastatur/rules.mk
+++ b/keyboards/converter/siemens_tastatur/rules.mk
@@ -22,3 +22,6 @@ BACKLIGHT_ENABLE = no
22RGBLIGHT_ENABLE = no 22RGBLIGHT_ENABLE = no
23CUSTOM_MATRIX = yes 23CUSTOM_MATRIX = yes
24 24
25
26# Enter lower-power sleep mode when on the ChibiOS idle thread
27OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/ergodox_stm32/chconf.h b/keyboards/ergodox_stm32/chconf.h
index d9114ec85..513ae821d 100644
--- a/keyboards/ergodox_stm32/chconf.h
+++ b/keyboards/ergodox_stm32/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/ergodox_stm32/rules.mk b/keyboards/ergodox_stm32/rules.mk
index 1bf1a742a..ab7b853f5 100644
--- a/keyboards/ergodox_stm32/rules.mk
+++ b/keyboards/ergodox_stm32/rules.mk
@@ -30,3 +30,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
30CUSTOM_MATRIX = yes # Custom matrix file 30CUSTOM_MATRIX = yes # Custom matrix file
31NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 31NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
32UNICODE_ENABLE = yes # Unicode 32UNICODE_ENABLE = yes # Unicode
33
34
35# Enter lower-power sleep mode when on the ChibiOS idle thread
36OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/handwired/bluepill/bluepill70/chconf.h b/keyboards/handwired/bluepill/bluepill70/chconf.h
index dfb1f9dfb..fdbc4aed0 100644
--- a/keyboards/handwired/bluepill/bluepill70/chconf.h
+++ b/keyboards/handwired/bluepill/bluepill70/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/handwired/bluepill/bluepill70/rules.mk b/keyboards/handwired/bluepill/bluepill70/rules.mk
index e89abca8c..5cf5f3f6c 100644
--- a/keyboards/handwired/bluepill/bluepill70/rules.mk
+++ b/keyboards/handwired/bluepill/bluepill70/rules.mk
@@ -44,4 +44,8 @@ ARMV = 7
44# http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf 44# http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
45# This also requires a patch to chibios: 45# This also requires a patch to chibios:
46# <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch 46# <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
47#STM32_BOOTLOADER_ADDRESS = 0x1FFFC800 \ No newline at end of file 47#STM32_BOOTLOADER_ADDRESS = 0x1FFFC800
48
49
50# Enter lower-power sleep mode when on the ChibiOS idle thread
51OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/handwired/ck4x4/chconf.h b/keyboards/handwired/ck4x4/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/handwired/ck4x4/chconf.h
+++ b/keyboards/handwired/ck4x4/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/handwired/ck4x4/rules.mk b/keyboards/handwired/ck4x4/rules.mk
index cd4bc260f..0709f341b 100644
--- a/keyboards/handwired/ck4x4/rules.mk
+++ b/keyboards/handwired/ck4x4/rules.mk
@@ -15,3 +15,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
15CUSTOM_MATRIX = no # Custom matrix file 15CUSTOM_MATRIX = no # Custom matrix file
16 16
17DEFAULT_FOLDER = handwired/ck4x4 17DEFAULT_FOLDER = handwired/ck4x4
18
19
20# Enter lower-power sleep mode when on the ChibiOS idle thread
21OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/handwired/onekey/bluepill/chconf.h b/keyboards/handwired/onekey/bluepill/chconf.h
index bbd9b2da6..9299be587 100644
--- a/keyboards/handwired/onekey/bluepill/chconf.h
+++ b/keyboards/handwired/onekey/bluepill/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/handwired/onekey/bluepill/rules.mk b/keyboards/handwired/onekey/bluepill/rules.mk
index 063f21f7f..83a81a56b 100644
--- a/keyboards/handwired/onekey/bluepill/rules.mk
+++ b/keyboards/handwired/onekey/bluepill/rules.mk
@@ -8,3 +8,7 @@ BOARD = STM32_F103_STM32DUINO
8 8
9DFU_ARGS = -d 1eaf:0003 -a2 -R 9DFU_ARGS = -d 1eaf:0003 -a2 -R
10DFU_SUFFIX_ARGS = -v 1eaf -p 0003 10DFU_SUFFIX_ARGS = -v 1eaf -p 0003
11
12
13# Enter lower-power sleep mode when on the ChibiOS idle thread
14OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/handwired/onekey/stm32f0_disco/chconf.h b/keyboards/handwired/onekey/stm32f0_disco/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/handwired/onekey/stm32f0_disco/chconf.h
+++ b/keyboards/handwired/onekey/stm32f0_disco/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/handwired/onekey/stm32f0_disco/rules.mk b/keyboards/handwired/onekey/stm32f0_disco/rules.mk
index fe5e3f824..d8928e9ec 100644
--- a/keyboards/handwired/onekey/stm32f0_disco/rules.mk
+++ b/keyboards/handwired/onekey/stm32f0_disco/rules.mk
@@ -1,2 +1,6 @@
1# MCU name 1# MCU name
2MCU = STM32F072 2MCU = STM32F072
3
4
5# Enter lower-power sleep mode when on the ChibiOS idle thread
6OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/handwired/onekey/teensy_32/chconf.h b/keyboards/handwired/onekey/teensy_32/chconf.h
index 3294ac7ee..1919fcb97 100644
--- a/keyboards/handwired/onekey/teensy_32/chconf.h
+++ b/keyboards/handwired/onekey/teensy_32/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/handwired/onekey/teensy_32/rules.mk b/keyboards/handwired/onekey/teensy_32/rules.mk
index 97171611e..2c411c0eb 100644
--- a/keyboards/handwired/onekey/teensy_32/rules.mk
+++ b/keyboards/handwired/onekey/teensy_32/rules.mk
@@ -39,3 +39,7 @@ MCU = cortex-m4
39# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 39# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
40# I.e. 6 for Teensy LC; 7 for Teensy 3.x 40# I.e. 6 for Teensy LC; 7 for Teensy 3.x
41ARMV = 7 41ARMV = 7
42
43
44# Enter lower-power sleep mode when on the ChibiOS idle thread
45OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/handwired/onekey/teensy_lc/chconf.h b/keyboards/handwired/onekey/teensy_lc/chconf.h
index 3294ac7ee..1919fcb97 100644
--- a/keyboards/handwired/onekey/teensy_lc/chconf.h
+++ b/keyboards/handwired/onekey/teensy_lc/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/handwired/onekey/teensy_lc/rules.mk b/keyboards/handwired/onekey/teensy_lc/rules.mk
index 7859f6d74..32ab07d9c 100644
--- a/keyboards/handwired/onekey/teensy_lc/rules.mk
+++ b/keyboards/handwired/onekey/teensy_lc/rules.mk
@@ -39,3 +39,7 @@ MCU = cortex-m0plus
39# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 39# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
40# I.e. 6 for Teensy LC; 7 for Teensy 3.x 40# I.e. 6 for Teensy LC; 7 for Teensy 3.x
41ARMV = 6 41ARMV = 6
42
43
44# Enter lower-power sleep mode when on the ChibiOS idle thread
45OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/infinity60/chconf.h b/keyboards/infinity60/chconf.h
index d9114ec85..513ae821d 100644
--- a/keyboards/infinity60/chconf.h
+++ b/keyboards/infinity60/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/infinity60/rules.mk b/keyboards/infinity60/rules.mk
index 6fb43dc75..f93766af9 100644
--- a/keyboards/infinity60/rules.mk
+++ b/keyboards/infinity60/rules.mk
@@ -73,3 +73,7 @@ NKRO_ENABLE = yes # USB Nkey Rollover
73CUSTOM_MATRIX = yes # Custom matrix file 73CUSTOM_MATRIX = yes # Custom matrix file
74 74
75LAYOUTS = 60_ansi_split_bs_rshift 75LAYOUTS = 60_ansi_split_bs_rshift
76
77
78# Enter lower-power sleep mode when on the ChibiOS idle thread
79OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/jm60/chconf.h b/keyboards/jm60/chconf.h
index d9114ec85..513ae821d 100644
--- a/keyboards/jm60/chconf.h
+++ b/keyboards/jm60/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/jm60/rules.mk b/keyboards/jm60/rules.mk
index d11c38ecf..ed6431b65 100644
--- a/keyboards/jm60/rules.mk
+++ b/keyboards/jm60/rules.mk
@@ -34,7 +34,7 @@ ARMV = 7
34# 0x00000000-0x00001000 area is occupied by bootlaoder.*/ 34# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
35# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB 35# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
36#OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000 36#OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000
37OPT_DEFS = 37OPT_DEFS =
38 38
39# Build Options 39# Build Options
40# comment out to disable the options. 40# comment out to disable the options.
@@ -52,5 +52,9 @@ BACKLIGHT_ENABLE = no
52VISUALIZER_ENABLE = no 52VISUALIZER_ENABLE = no
53 53
54#LED_DRIVER = is31fl3731c 54#LED_DRIVER = is31fl3731c
55#LED_WIDTH = 16 55#LED_WIDTH = 16
56#LED_HEIGHT = 5 56#LED_HEIGHT = 5
57
58
59# Enter lower-power sleep mode when on the ChibiOS idle thread
60OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/k_type/chconf.h b/keyboards/k_type/chconf.h
index d9114ec85..513ae821d 100644
--- a/keyboards/k_type/chconf.h
+++ b/keyboards/k_type/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/k_type/rules.mk b/keyboards/k_type/rules.mk
index 43579fcc7..e53f316b9 100644
--- a/keyboards/k_type/rules.mk
+++ b/keyboards/k_type/rules.mk
@@ -74,3 +74,7 @@ SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
74NKRO_ENABLE = yes # USB Nkey Rollover 74NKRO_ENABLE = yes # USB Nkey Rollover
75CUSTOM_MATRIX = yes # Custom matrix file 75CUSTOM_MATRIX = yes # Custom matrix file
76DEBUG_ENABLE = yes 76DEBUG_ENABLE = yes
77
78
79# Enter lower-power sleep mode when on the ChibiOS idle thread
80OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/peiorisboards/ixora/chconf.h b/keyboards/peiorisboards/ixora/chconf.h
index b836a3b99..e811705ba 100644
--- a/keyboards/peiorisboards/ixora/chconf.h
+++ b/keyboards/peiorisboards/ixora/chconf.h
@@ -102,10 +102,6 @@
102 */ 102 */
103#define CH_CFG_NO_IDLE_THREAD FALSE 103#define CH_CFG_NO_IDLE_THREAD FALSE
104 104
105/* Use __WFI in the idle thread for waiting. Does lower the power
106 * consumption. */
107#define CORTEX_ENABLE_WFI_IDLE TRUE
108
109/** @} */ 105/** @} */
110 106
111/*===========================================================================*/ 107/*===========================================================================*/
@@ -518,4 +514,4 @@
518 514
519#endif /* CHCONF_H */ 515#endif /* CHCONF_H */
520 516
521/** @} */ \ No newline at end of file 517/** @} */
diff --git a/keyboards/peiorisboards/ixora/rules.mk b/keyboards/peiorisboards/ixora/rules.mk
index 0cea106d0..1d93c6a30 100644
--- a/keyboards/peiorisboards/ixora/rules.mk
+++ b/keyboards/peiorisboards/ixora/rules.mk
@@ -12,3 +12,7 @@ CONSOLE_ENABLE = no # Console for debug
12COMMAND_ENABLE = no # Commands for debug and configuration 12COMMAND_ENABLE = no # Commands for debug and configuration
13NKRO_ENABLE = yes # USB Nkey Rollover 13NKRO_ENABLE = yes # USB Nkey Rollover
14NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in 14NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
15
16
17# Enter lower-power sleep mode when on the ChibiOS idle thread
18OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/projectkb/alice/chconf.h b/keyboards/projectkb/alice/chconf.h
index 99fa8ce39..89388dd5a 100644
--- a/keyboards/projectkb/alice/chconf.h
+++ b/keyboards/projectkb/alice/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/projectkb/alice/rules.mk b/keyboards/projectkb/alice/rules.mk
index 96904aef3..97fcc754d 100644
--- a/keyboards/projectkb/alice/rules.mk
+++ b/keyboards/projectkb/alice/rules.mk
@@ -23,3 +23,7 @@ RGBLIGHT_ENABLE = yes
23 23
24# RAW_ENABLE = yes 24# RAW_ENABLE = yes
25# DYNAMIC_KEYMAP_ENABLE = yes 25# DYNAMIC_KEYMAP_ENABLE = yes
26
27
28# Enter lower-power sleep mode when on the ChibiOS idle thread
29OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/vinta/chconf.h b/keyboards/vinta/chconf.h
index b836a3b99..e811705ba 100644
--- a/keyboards/vinta/chconf.h
+++ b/keyboards/vinta/chconf.h
@@ -102,10 +102,6 @@
102 */ 102 */
103#define CH_CFG_NO_IDLE_THREAD FALSE 103#define CH_CFG_NO_IDLE_THREAD FALSE
104 104
105/* Use __WFI in the idle thread for waiting. Does lower the power
106 * consumption. */
107#define CORTEX_ENABLE_WFI_IDLE TRUE
108
109/** @} */ 105/** @} */
110 106
111/*===========================================================================*/ 107/*===========================================================================*/
@@ -518,4 +514,4 @@
518 514
519#endif /* CHCONF_H */ 515#endif /* CHCONF_H */
520 516
521/** @} */ \ No newline at end of file 517/** @} */
diff --git a/keyboards/vinta/rules.mk b/keyboards/vinta/rules.mk
index 6d9fc0da1..736509689 100644
--- a/keyboards/vinta/rules.mk
+++ b/keyboards/vinta/rules.mk
@@ -13,4 +13,8 @@ COMMAND_ENABLE = no # Commands for debug and configuration
13NKRO_ENABLE = yes # USB Nkey Rollover 13NKRO_ENABLE = yes # USB Nkey Rollover
14NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in 14NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
15 15
16LAYOUTS = 65_ansi_blocker \ No newline at end of file 16LAYOUTS = 65_ansi_blocker
17
18
19# Enter lower-power sleep mode when on the ChibiOS idle thread
20OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
diff --git a/keyboards/whitefox/chconf.h b/keyboards/whitefox/chconf.h
index d9114ec85..513ae821d 100644
--- a/keyboards/whitefox/chconf.h
+++ b/keyboards/whitefox/chconf.h
@@ -105,10 +105,6 @@
105 */ 105 */
106#define CH_CFG_NO_IDLE_THREAD FALSE 106#define CH_CFG_NO_IDLE_THREAD FALSE
107 107
108/* Use __WFI in the idle thread for waiting. Does lower the power
109 * consumption. */
110#define CORTEX_ENABLE_WFI_IDLE TRUE
111
112/** @} */ 108/** @} */
113 109
114/*===========================================================================*/ 110/*===========================================================================*/
diff --git a/keyboards/whitefox/rules.mk b/keyboards/whitefox/rules.mk
index 7b3328500..27c3c3141 100644
--- a/keyboards/whitefox/rules.mk
+++ b/keyboards/whitefox/rules.mk
@@ -78,3 +78,7 @@ VISUALIZER_ENABLE = yes
78LED_DRIVER = is31fl3731c 78LED_DRIVER = is31fl3731c
79LED_WIDTH = 16 79LED_WIDTH = 16
80LED_HEIGHT = 5 80LED_HEIGHT = 5
81
82
83# Enter lower-power sleep mode when on the ChibiOS idle thread
84OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE