CPU stats don't require low power ticker

pull/10104/head
Kevin Bracey 2019-03-15 13:01:39 +02:00
parent c94d6a8cc7
commit 77321ca79e
1 changed files with 3 additions and 4 deletions

View File

@ -8,13 +8,12 @@
#include "device.h" #include "device.h"
#ifdef MBED_CONF_RTOS_PRESENT #ifdef MBED_CONF_RTOS_PRESENT
#include "cmsis_os2.h" #include "cmsis_os2.h"
#include "rtos_idle.h" #elif defined(MBED_STACK_STATS_ENABLED) || defined(MBED_THREAD_STATS_ENABLED)
#elif defined(MBED_STACK_STATS_ENABLED) || defined(MBED_THREAD_STATS_ENABLED) || defined(MBED_CPU_STATS_ENABLED)
#warning Statistics are currently not supported without the rtos. #warning Statistics are currently not supported without the rtos.
#endif #endif
#if defined(MBED_CPU_STATS_ENABLED) && (!DEVICE_LPTICKER || !DEVICE_SLEEP) #if defined(MBED_CPU_STATS_ENABLED) && (!DEVICE_SLEEP)
#warning CPU statistics are not supported without low power timer support. #warning CPU statistics are not supported without sleep support.
#endif #endif
void mbed_stats_cpu_get(mbed_stats_cpu_t *stats) void mbed_stats_cpu_get(mbed_stats_cpu_t *stats)