48 #include "px_dbg_ft_cfg.h"
52 #define PX_DBG_FT_CFG_BUF_SIZE 16
55 PX_DBG_FT_NAME_NONE = 0,
60#if ( !defined(PX_DBG_FT ) \
61 || !defined(PX_DBG_FT_CFG_BUF_SIZE) )
62#error "One or more options not defined in 'px_dbg_ft_cfg.h'"
112#define PX_DBG_FT_NAME(name) PX_ATTR_UNUSED static const px_dbg_ft_name_t px_dbg_ft_name = name;
115#define PX_DBG_FT_INIT() \
123#define PX_DBG_FT_LOG() \
126 _px_dbg_ft_log(px_dbg_ft_name, (uint16_t)__LINE__); \
131#define PX_DBG_FT_LOG_LINE(line) \
134 _px_dbg_ft_log(px_dbg_ft_name, line); \
139#define PX_DBG_FT_LOG_PARAM(param) \
142 _px_dbg_ft_log_param(px_dbg_ft_name, (uint16_t)__LINE__, param); \
147#define PX_DBG_FT_LOG_LINE_PARAM(line, param) \
150 _px_dbg_ft_log_param(px_dbg_ft_name, line, param); \
156 #define PX_DBG_FT_NAME(name)
157 #define PX_DBG_FT_INIT()
158 #define PX_DBG_FT_LOG()
159 #define PX_DBG_FT_LOG_LINE(line)
160 #define PX_DBG_FT_LOG_PARAM(param)
161 #define PX_DBG_FT_LOG_LINE_PARAM(line, param)
void px_dbg_ft_report(void)
Report flow trace logged in buffer.
void _px_dbg_ft_init(void)
Initialise debug flow trace module.
px_dbg_ft_name_t
Customized name values (must be sequential starting at 0, e.g. 0, 1, 2, 3, ...)
uint8_t px_dbg_ft_buf_index
Index of next empty position; Placed in .noinit section so that it is not set to zero by C initializa...
void _px_dbg_ft_log(const px_dbg_ft_name_t name, uint16_t line)
Internal function to log a name and file line number.
uint32_t px_dbg_ft_buf[PX_DBG_FT_CFG_BUF_SIZE]
Buffer for log output; Placed in .noinit section so that it is not set to zero by C initialization co...
#define PX_DBG_FT_CFG_BUF_SIZE
Debug output string buffer size.
void _px_dbg_ft_log_param(const px_dbg_ft_name_t name, uint16_t line, uint8_t param)
Internal function to log a name, file line number and parameter.