os; add a specific type for callbacks.

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/cce0cc34
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/cce0cc34
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/cce0cc34

Branch: refs/heads/develop
Commit: cce0cc3423ae336b04116fa3071a5675c8ae1a13
Parents: 2ee4979
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Oct 7 08:28:14 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Oct 7 13:21:22 2016 -0700

----------------------------------------------------------------------
 kernel/os/include/os/os_eventq.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/cce0cc34/kernel/os/include/os/os_eventq.h
----------------------------------------------------------------------
diff --git a/kernel/os/include/os/os_eventq.h b/kernel/os/include/os/os_eventq.h
index ac1c6d8..6e862b3 100644
--- a/kernel/os/include/os/os_eventq.h
+++ b/kernel/os/include/os/os_eventq.h
@@ -6,7 +6,7 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *  http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing,
@@ -37,9 +37,10 @@ struct os_event {
 
 #define OS_EVENT_QUEUED(__ev) ((__ev)->ev_queued)
 
-#define OS_EVENT_T_TIMER (1)
-#define OS_EVENT_T_MQUEUE_DATA (2)
-#define OS_EVENT_T_PERUSER (16)
+#define OS_EVENT_T_TIMER        (1)
+#define OS_EVENT_T_MQUEUE_DATA  (2)
+#define OS_EVENT_T_CB           (3)
+#define OS_EVENT_T_PERUSER      (16)
 
 struct os_eventq {
     struct os_task *evq_task;

Reply via email to