Revision 3ed0cc4d periphAL.h
periphAL.h | ||
---|---|---|
127 | 127 |
*/ |
128 | 128 |
#define apalDbgAssert(c) apalDbgAssertMsg(c, "%s(%u): apalDbgAssert failed", __FILE__, __LINE__) |
129 | 129 |
|
130 |
#else /* (AMIROLLD_CFG_DBG == true) */ |
|
131 |
|
|
132 |
#define apalDbgAssertMsg(c, fmt, ...) |
|
133 |
|
|
134 |
#define apalDbgPrintf(fmt, ...) 0 |
|
135 |
|
|
136 |
#define apalDbgAssert(c) |
|
137 |
|
|
130 | 138 |
#endif /* (AMIROLLD_CFG_DBG == true) */ |
131 | 139 |
|
132 | 140 |
/*============================================================================*/ |
... | ... | |
161 | 169 |
void apalSleep(apalTime_t us); |
162 | 170 |
#endif |
163 | 171 |
|
172 |
#if !defined(apalGetTime) || defined(__DOXYGEN__) |
|
173 |
/** |
|
174 |
* @brief Retrieve current system time in microseconds. |
|
175 |
* @details Return value may differ from true system time due to overflows. |
|
176 |
* |
|
177 |
* @return Current system time. |
|
178 |
*/ |
|
179 |
apalTime_t apalGetTime(void); |
|
180 |
#endif |
|
181 |
|
|
164 | 182 |
#ifdef __cplusplus |
165 | 183 |
} |
166 | 184 |
#endif |
Also available in: Unified diff