31PX_ATTR_SECTION(
".noinit") uint8_t px_dbg_ft_buf_idx;
38#ifdef PX_LOG_CFG_NAMES
46#ifdef PX_LOG_CFG_NAMES
53 return px_dbg_ft_name_str[name];
60 px_dbg_ft_buf_idx = 0;
70 uint32_t ft = (((uint32_t)name) << 16) | ((uint32_t)line);
76 px_dbg_ft_buf_idx = 0;
82 uint32_t ft = (((uint32_t)param) << 24) | (((uint32_t)name) << 16) | ((uint32_t)line);
88 px_dbg_ft_buf_idx = 0;
94 uint8_t idx = px_dbg_ft_buf_idx;
111#ifdef PX_LOG_CFG_NAMES
112 printf(
"%u %s # %u (%u)\n", name, px_dbg_ft_name_val_to_str(name), line, param);
114 printf(
"%u # %u (%u)\n", name, line, param);
117 while(idx != px_dbg_ft_buf_idx);
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, ...)
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.
#define PX_SIZEOF_ARRAY(array)
Calculate the number of items in an array.