Skip to content

Commit f7f6d3b

Browse files
committed
CPU stats don't require low power ticker
1 parent 0113d84 commit f7f6d3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform/mbed_stats.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#ifdef MBED_CONF_RTOS_PRESENT
1010
#include "cmsis_os2.h"
1111
#include "rtos_idle.h"
12-
#elif defined(MBED_STACK_STATS_ENABLED) || defined(MBED_THREAD_STATS_ENABLED) || defined(MBED_CPU_STATS_ENABLED)
12+
#elif defined(MBED_STACK_STATS_ENABLED) || defined(MBED_THREAD_STATS_ENABLED)
1313
#warning Statistics are currently not supported without the rtos.
1414
#endif
1515

16-
#if defined(MBED_CPU_STATS_ENABLED) && (!DEVICE_LPTICKER || !DEVICE_SLEEP)
17-
#warning CPU statistics are not supported without low power timer support.
16+
#if defined(MBED_CPU_STATS_ENABLED) && (!DEVICE_SLEEP)
17+
#warning CPU statistics are not supported without sleep support.
1818
#endif
1919

2020
void mbed_stats_cpu_get(mbed_stats_cpu_t *stats)

0 commit comments

Comments
 (0)