12 #ifndef __APP_DEBUG_PIN_H__
13 #define __APP_DEBUG_PIN_H__
18 #include "sr3_config.h"
20 #if CONFIG_DEBUG_PIN_ENABLED
22 #define DBG_PIN_PULSE(pin) debug_pin_pulse(pin)
23 #define DBG_PIN_SET(pin) debug_pin_set(pin)
24 #define DBG_PIN_CLEAR(pin) debug_pin_clear(pin)
25 #define DBG_PIN_TOGGLE(pin) debug_pin_toggle(pin)
26 #define DBG_PIN_FLAG(pin, flag) debug_pin_flag(pin, flag)
27 #define DBG_PIN_SEND(word, bits) debug_pin_send(word, bits)
86 #define DBG_PIN_PULSE(pin) do { } while (0)
87 #define DBG_PIN_SET(pin) do { } while (0)
88 #define DBG_PIN_CLEAR(pin) do { } while (0)
89 #define DBG_PIN_TOGGLE(pin) do { } while (0)
90 #define DBG_PIN_FLAG(pin, flag) do { } while (0)
91 #define DBG_PIN_SEND(word, bits) do { } while (0)
118 __STATIC_INLINE
void debug_pin_flag(
const unsigned int pin,
bool flag)
123 __STATIC_INLINE
void debug_pin_send(
const uint32_t word,
const uint8_t bits)
128 __STATIC_INLINE
void debug_pin_error_handler(uint32_t error_code, uint32_t line_num,
const uint8_t *p_file_name)