Skip to content

Commit cfaf41a

Browse files
author
Liyou Zhou
committed
Add printing of intended sleep for testing purposes.
1 parent e9a41ca commit cfaf41a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/mbed_platform.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#include "mbed-hal/sleep_api.h"
2222
#include "cmsis-core/core_generic.h"
2323

24+
#if YOTTA_CFG_MINAR_TEST_CLOCK_OVERFLOW
25+
#include "stdio.h"
26+
#endif
27+
2428
/// @name Local Constants
2529
const static minar::platform::tick_t Minimum_Sleep = MINAR_PLATFORM_MINIMUM_SLEEP; // in Platform_Time_Base units
2630

@@ -80,6 +84,8 @@ void sleepFromUntil(tick_t now, tick_t until){
8084
}
8185

8286
const tick_t real_now = timer_top_bits + getTime();
87+
88+
printf("sleep From %lx Until %lx real_now %lx\r\n", now, until, real_now);
8389
#else
8490
// use real-now for front-most end of do-not-sleep range check
8591
const tick_t real_now = getTime();

0 commit comments

Comments
 (0)