NuMaker tickless example

Revision:
2:dbe00b3a7545
Parent:
1:eb1da9d36e12
Child:
11:0c4b39c54af2
--- a/wakeup.h	Tue Sep 12 16:16:43 2017 +0800
+++ b/wakeup.h	Mon Sep 18 16:19:38 2017 +0800
@@ -3,8 +3,9 @@
 
 #include <vector>
 #include "mbed.h"
-/* EventFlags is supported from mbed-os-5.5.6. Before then, we need EventFlags_. */
-#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)
 #include "EventFlags_.h"
 #endif
 
@@ -22,7 +23,7 @@
     EventFlag_Wakeup_All            = 0xFF,
 };
 
-#if (MBED_MAJOR_VERSION <= 5 && MBED_MINOR_VERSION <= 5 && MBED_PATCH_VERSION <= 6)
+#if (MBED_MAJOR_VERSION <= 5 && MBED_MINOR_VERSION <= 5)
 extern EventFlags_ wakeup_eventflags;
 #else
 extern EventFlags wakeup_eventflags;