|
Nordic Thingy:52
|
47 #ifndef __MACROS_COMMON_H__
48 #define __MACROS_COMMON_H__
50 #include "SEGGER_RTT.h"
59 #define DEBUG_PRINTF (void)SEGGER_RTT_printf
61 #define DEBUG_PRINTF(...)
66 #define RETURN_IF_ERROR(err_code) \
67 if ((err_code) != NRF_SUCCESS) \
69 (void)SEGGER_RTT_printf(0, RTT_CTRL_TEXT_BRIGHT_RED \
70 "ERROR. Returned in file: %s, line: %d, with error code %d \r\n"RTT_CTRL_RESET, \
71 __FILE__, __LINE__, err_code); \
77 #define NULL_PARAM_CHECK(param) \
78 if ((param) == NULL) \
80 return NRF_ERROR_NULL; \