CSP Debug
File: csp/csp_debug.h
Description: NEW DEBUG API
Based on counters, and error numbers. This gets rid of a lot of verbose debugging strings while still maintaining the same level of debug capabilities.
Note
We choose to ignore atomic access to the counters right now. 1) Most of the access to these happens single threaded (router task) or within ISR (driver RX) 2) Having accurate error counters is NOT a priority. They are only there for debugging purposes. 3) Not all compilers have support for <stdatomic.h> yet.
Variables
- uextern uint8_t8_t csp_dbg_conn_out
- uextern uint8_t8_t csp_dbg_conn_ovf
- uextern uint8_t8_t csp_dbg_conn_noroute
- uextern uint8_t8_t csp_dbg_inval_reply
- uextern uint8_t8_t csp_dbg_errno
- uextern uint8_t8_t csp_dbg_can_errno
- uextern uint8_t8_t csp_dbg_eth_errno
- uextern uint8_t8_t csp_dbg_rdp_print
- uextern uint8_t8_t csp_dbg_packet_print