Skip to content

Commit ab50681

Browse files
committed
Rename device option STCLK_OFF_DURING_SLEEP
Rename STCLK_OFF_DURING_SLEEP to SYSTICK_CLK_OFF_DURING_SLEEP to avoid confusion with the STmicroelectronics.
1 parent 920db63 commit ab50681

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

platform/mbed_power_mgmt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ void sleep_manager_sleep_auto(void);
169169
static inline void sleep(void)
170170
{
171171
#if DEVICE_SLEEP
172-
#if (MBED_CONF_RTOS_PRESENT == 0) || (DEVICE_STCLK_OFF_DURING_SLEEP == 0) || defined(MBED_TICKLESS)
172+
#if (MBED_CONF_RTOS_PRESENT == 0) || (DEVICE_SYSTICK_CLK_OFF_DURING_SLEEP == 0) || defined(MBED_TICKLESS)
173173
sleep_manager_sleep_auto();
174-
#endif /* (MBED_CONF_RTOS_PRESENT == 0) || (DEVICE_STCLK_OFF_DURING_SLEEP == 0) || defined(MBED_TICKLESS) */
174+
#endif /* (MBED_CONF_RTOS_PRESENT == 0) || (DEVICE_SYSTICK_CLK_OFF_DURING_SLEEP == 0) || defined(MBED_TICKLESS) */
175175
#endif /* DEVICE_SLEEP */
176176
}
177177

targets/targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3885,7 +3885,7 @@
38853885
"SLEEP",
38863886
"SPI",
38873887
"SPI_ASYNCH",
3888-
"STCLK_OFF_DURING_SLEEP",
3888+
"SYSTICK_CLK_OFF_DURING_SLEEP",
38893889
"TRNG",
38903890
"USTICKER"
38913891
],
@@ -3990,7 +3990,7 @@
39903990
"SLEEP",
39913991
"SPI",
39923992
"SPI_ASYNCH",
3993-
"STCLK_OFF_DURING_SLEEP",
3993+
"SYSTICK_CLK_OFF_DURING_SLEEP",
39943994
"TRNG",
39953995
"USTICKER",
39963996
"QSPI"

tools/targets/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def check_inherits(dict):
8282
"LPTICKER", "PORTIN", "PORTINOUT", "PORTOUT",
8383
"PWMOUT", "RTC", "TRNG","SERIAL", "SERIAL_ASYNCH",
8484
"SERIAL_FC", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE",
85-
"STORAGE", "STCLK_OFF_DURING_SLEEP"]
85+
"STORAGE", "SYSTICK_CLK_OFF_DURING_SLEEP"]
8686
def check_device_has(dict):
8787
for name in dict.get("device_has", []):
8888
if name not in DEVICE_HAS_ALLOWED:

0 commit comments

Comments
 (0)