Skip to content

Commit 77321ca

Browse files
committed
CPU stats don't require low power ticker
1 parent c94d6a8 commit 77321ca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

platform/mbed_stats.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
#include "device.h"
99
#ifdef MBED_CONF_RTOS_PRESENT
1010
#include "cmsis_os2.h"
11-
#include "rtos_idle.h"
12-
#elif defined(MBED_STACK_STATS_ENABLED) || defined(MBED_THREAD_STATS_ENABLED) || defined(MBED_CPU_STATS_ENABLED)
11+
#elif defined(MBED_STACK_STATS_ENABLED) || defined(MBED_THREAD_STATS_ENABLED)
1312
#warning Statistics are currently not supported without the rtos.
1413
#endif
1514

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

2019
void mbed_stats_cpu_get(mbed_stats_cpu_t *stats)

0 commit comments

Comments
 (0)