Nuvoton
/
NuMaker-mbed-tickless-example
NuMaker tickless example
Diff: main.cpp
- Revision:
- 2:dbe00b3a7545
- Parent:
- 1:eb1da9d36e12
- Child:
- 3:27fb8aeab62d
--- a/main.cpp Tue Sep 12 16:16:43 2017 +0800 +++ b/main.cpp Mon Sep 18 16:19:38 2017 +0800 @@ -8,7 +8,9 @@ static void check_wakeup_source(uint32_t, bool deepsleep); static void idle_daemon(void); -#if (MBED_MAJOR_VERSION <= 5 && MBED_MINOR_VERSION <= 5 && MBED_PATCH_VERSION <= 6) +/* EventFlags is to support since mbed-os-5.6. Before then, we need EventFlags_ + * to substitute for EventFlags. */ +#if (MBED_MAJOR_VERSION <= 5 && MBED_MINOR_VERSION <= 5) EventFlags_ wakeup_eventflags; #else EventFlags wakeup_eventflags;