Revision 1703dfdf periphery-lld/periphAL.h

View differences:

periphery-lld/periphAL.h
542 542
 *
543 543
 * @param[in] c   The condition to check.
544 544
 */
545
#define apalDbgAssert(c)   aosDbgAssert(c)
545
#define apalDbgAssert(c)              aosDbgAssert(c)
546

  
547

  
548
/**
549
 * @brief Printf function for messages printed only in debug builds.
550
 *
551
 * @param[in] fmt   Formatted string to print.
552
 */
553
#if (AMIROOS_CFG_DBG == true) || defined(__DOXYGEN__)
554
#define apalDbgPrintf(fmt, ...)       chprintf((BaseSequentialStream*)&aos.iostream, fmt, ##__VA_ARGS__)
555
#else
556
#define apalDbgPrintf(fmt, ...) {                         \
557
  (void)(fmt);                                            \
558
}
559
#endif
560

  
561
#define apalDbgPrintf(fmt, ...)    chprintf((BaseSequentialStream*)&aos.iostream, fmt, ##__VA_ARGS__)
546 562

  
547 563
#endif /* _AMIROOS_PERIPHAL_H_ */

Also available in: Unified diff