In current stable (18.2),
palWaitLineTimeout should return msg_t (OK, TIMEOUT, RESET), but as it is implemented, it return nothing.
Code: Select all
#define palWaitLineTimeout(line, timeout) \
do { \
osalSysLock(); \
palWaitLineTimeoutS(line, timeout); \
osalSysUnlock(); \
} while (false)
#endif /* PAL_USE_WAIT == TRUE */
could be resolved using static inline function instead of macro
Code: Select all
static inline msg_t palWaitLineTimeout(const ioline_t line, const sysinterval_t timeout)
{ \
osalSysLock(); \
msg_t status = palWaitLineTimeoutS(line, timeout); \
osalSysUnlock();
return status; \
}
Alexandre