QP/C  6.5.1
macros.h
Go to the documentation of this file.
1 
18 #define Q_NASSERT
19 
27 #define Q_SPY
28 
35 #define Q_UTEST
36 
49 #define QF_OS_OBJECT_TYPE uint8_t
50 
53 #define QF_THREAD_TYPE void *
54 
64 #define QACTIVE_EQUEUE_WAIT_(me_) \
65  (Q_ASSERT((me_)->eQueue.frontEvt != (QEvt *)0))
66 
67 #if (QF_MAX_ACTIVE <= 8)
68  #define QACTIVE_EQUEUE_SIGNAL_(me_) do { \
69  QPSet8_insert(&QK_readySet_, (me_)->prio); \
70  if (QK_intNest_ == (uint_fast8_t)0) { \
71  uint_fast8_t p = QK_schedPrio_(); \
72  if (p != (uint_fast8_t)0) { \
73  QK_sched_(p); \
74  } \
75  } \
76  } while (0)
77 #else
78 
92  #define QACTIVE_EQUEUE_SIGNAL_(me_) do { \
93  QPSet64_insert(&QK_readySet_, (me_)->prio); \
94  if (QK_intNest_ == (uint_fast8_t)0) { \
95  uint_fast8_t p = QK_schedPrio_(); \
96  if (p != (uint_fast8_t)0) { \
97  QK_sched_(p); \
98  } \
99  } \
100  } while (0)
101 #endif
102 
109 #define QF_EPOOL_TYPE_ QMPool
110 
113 #define QK_ON_CONTEXT_SW
114 
117 #define QXK_ON_CONTEXT_SW
118 
125 #define QF_EPOOL_INIT_(p_, poolSto_, poolSize_, evtSize_) \
126  (QMPool_init(&(p_), (poolSto_), (poolSize_), (QMPoolSize)(evtSize_)))
127 
135 #define QF_EPOOL_EVENT_SIZE_(p_) ((QEvtSize)(p_).blockSize)
136 
144 #define QF_EPOOL_GET_(p_, e_, m_) ((e_) = (QEvt *)QMPool_get(&(p_), (m_)))
145 
153 #define QF_EPOOL_PUT_(p_, e_) (QMPool_put(&(p_), (e_)))
154 
158 #define QP_IMPL
159 
163 #define WIN32_GUI
164 
165