Skip to content

Commit 52c33b5

Browse files
author
deepikabhavnani
committed
Add stats header file to mbed.h
All API header files should be part of mbed.h
1 parent a228fd0 commit 52c33b5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

mbed.h

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
#include "platform/DirHandle.h"
9393
#include "platform/CriticalSectionLock.h"
9494
#include "platform/DeepSleepLock.h"
95+
#include "platform/mbed_stats.h"
9596

9697
// mbed Non-hardware components
9798
#include "platform/Callback.h"

rtos/TARGET_CORTEX/mbed_rtx_conf.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@
4545
#error "OS Tickrate must be 1000 for system timing"
4646
#endif
4747

48-
#if !defined(OS_STACK_WATERMARK) && defined(MBED_STACK_STATS_ENABLED)
49-
#define OS_STACK_WATERMARK 1
50-
#endif
51-
52-
#if !defined(OS_STACK_WATERMARK) && defined(MBED_ALL_STATS_ENABLED)
48+
#if !defined(OS_STACK_WATERMARK) && (defined(MBED_STACK_STATS_ENABLED) || defined(MBED_ALL_STATS_ENABLED))
5349
#define OS_STACK_WATERMARK 1
5450
#endif
5551

0 commit comments

Comments
 (0)