Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: equeue/equeue_platform.h
- Revision:
- 9828:b778d3912beb
- Parent:
- 9824:23b5875f4221
diff -r 8fd8270f98e4 -r b778d3912beb equeue/equeue_platform.h
--- a/equeue/equeue_platform.h Fri Jun 02 15:11:51 2017 -0500
+++ b/equeue/equeue_platform.h Thu Jun 15 15:47:15 2017 -0500
@@ -49,6 +49,9 @@
// Platform includes
#if defined(EQUEUE_PLATFORM_POSIX)
#include <pthread.h>
+#elif defined(EQUEUE_PLATFORM_MBED)
+#include "cmsis_os2.h"
+#include "rtx_lib.h"
#endif
@@ -112,7 +115,10 @@
bool signal;
} equeue_sema_t;
#elif defined(EQUEUE_PLATFORM_MBED) && defined(MBED_CONF_RTOS_PRESENT)
-typedef unsigned equeue_sema_t[9];
+typedef struct equeue_sema {
+ osEventFlagsId_t id;
+ os_event_flags_t mem;
+} equeue_sema_t;
#elif defined(EQUEUE_PLATFORM_MBED)
typedef volatile int equeue_sema_t;
#endif