]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/EventGroupsDemo.c
Test the RTC and BURTC tickless implementations on the Gecko parts, and make correct...
[freertos] / FreeRTOS / Demo / Common / Minimal / EventGroupsDemo.c
index 93b6f304a20371f336a8a12321f58b2757ef45dc..af75f5039b8ddc3e35285c0553a8abf978cb9d4f 100644 (file)
@@ -122,7 +122,7 @@ that synchronise with the xEventGroupSync() function. */
 #define ebDONT_BLOCK   ( 0 )\r
 \r
 /* A 5ms delay. */\r
-#define ebSHORT_DELAY  ( 5 / portTICK_PERIOD_MS )\r
+#define ebSHORT_DELAY  pdMS_TO_TICKS( ( TickType_t ) 5 )\r
 \r
 /* Used in the selective bits test which checks no, one or both tasks blocked on\r
 event bits in a group are unblocked as appropriate as different bits get set. */\r