Revision 9ff01927 core/inc/aos_system.h

View differences:

core/inc/aos_system.h
208 208
 *
209 209
 * @param[out] ut   Pointer to the system uptime.
210 210
 */
211
#define aosSysGetUptime(ut) {         \
212
  chSysLock();                        \
213
  aosSysGetUptimeX(ut);               \
214
  chSysUnlock();                      \
211
static inline void aosSysGetUptime(aos_timestamp_t* ut)
212
{
213
  chSysLock();
214
  aosSysGetUptimeX(ut);
215
  chSysUnlock();
215 216
}
216 217

  
217 218
#endif /* _AMIROOS_SYSTEM_H_ */

Also available in: Unified diff