Revision efbf7cb1 core/inc/aos_debug.h

View differences:

core/inc/aos_debug.h
28 28
#define _AMIROOS_DEBUG_H_
29 29

  
30 30
#include <aosconf.h>
31
#include <ch.h>
31
#include <hal.h>
32
#include <chprintf.h>
32 33

  
33 34
#if (AMIROOS_CFG_DBG == true) || defined(__DOXYGEN__)
34 35

  
......
67 68
 *
68 69
 * @param[in] fmt   Formatted string to print.
69 70
 */
70
#define aosDbgPrintf(fmt, ...)           chprintf((BaseSequentialStream*)&aos.iostream, fmt, ##__VA_ARGS__)
71
#define aosDbgPrintf(fmt, ...)        chprintf((BaseSequentialStream*)&aos.iostream, fmt, ##__VA_ARGS__)
71 72

  
72 73
#else /* (AMIROOS_CFG_DBG != true) */
73 74

  
......
90 91

  
91 92
#endif
92 93

  
93
#ifdef __cplusplus
94
extern "C" {
95
#endif
96
  void aosPrintHaltErrorCode(const char* reason);
97
#ifdef __cplusplus
98
}
99
#endif
100

  
101 94
#endif /* _AMIROOS_DEBUG_H_ */
102 95

  
103 96
/** @} */

Also available in: Unified diff