dRonin
adbada4
dRonin firmware
|
Debugging functionality. More...
Files | |
file | pios_i2c.h |
Debug helper functions header. | |
file | pios_i2c.h |
Debug helper functions header. | |
Macros | |
#define | PIOS_DEBUG_Assert(test) do { } while(0) |
#define | PIOS_Assert(test) do { if (!(test)) PIOS_DEBUG_Panic(NULL); } while (0) |
#define | PIOS_Abort() PIOS_Assert(0) |
#define | PIOS_Assert(test) assert(test) |
#define | PIOS_DEBUG_Assert(test) |
#define | PIOS_Abort() abort() |
Functions | |
void | PIOS_DEBUG_Init (const struct pios_tim_channel *channels, uint8_t num_channels) |
void | PIOS_DEBUG_PinHigh (uint8_t pin) |
void | PIOS_DEBUG_PinLow (uint8_t pin) |
void | PIOS_DEBUG_PinValue8Bit (uint8_t value) |
void | PIOS_DEBUG_PinValue4BitL (uint8_t value) |
void | PIOS_DEBUG_Panic (const char *msg) __attribute__((noreturn)) |
void | PIOS_DEBUG_Init (void) |
Variables | |
const char * | PIOS_DEBUG_AssertMsg |
const char * | PIOS_DEBUG_AssertMsg |
const char * | PIOS_DEBUG_AssertMsg = "ASSERT FAILED" |
const char * | PIOS_DEBUG_AssertMsg = "ASSERT FAILED" |
Debugging functionality.
#define PIOS_Abort | ( | ) | abort() |
Definition at line 53 of file pios_debug.h.
#define PIOS_Abort | ( | ) | PIOS_Assert(0) |
Definition at line 55 of file pios_debug.h.
#define PIOS_Assert | ( | test | ) | assert(test) |
Definition at line 45 of file pios_debug.h.
#define PIOS_Assert | ( | test | ) | do { if (!(test)) PIOS_DEBUG_Panic(NULL); } while (0) |
Definition at line 52 of file pios_debug.h.
#define PIOS_DEBUG_Assert | ( | test | ) |
Definition at line 50 of file pios_debug.h.
#define PIOS_DEBUG_Assert | ( | test | ) | do { } while(0) |
Definition at line 51 of file pios_debug.h.
void PIOS_DEBUG_Init | ( | const struct pios_tim_channel * | channels, |
uint8_t | num_channels | ||
) |
Initialise Debug-features
Definition at line 44 of file pios_debug.c.
void PIOS_DEBUG_Init | ( | void | ) |
Initialise Debug-features
Definition at line 41 of file pios_debug.c.
void PIOS_DEBUG_Panic | ( | const char * | msg | ) |
Report a serious error and halt
Definition at line 74 of file pios_debug.c.
void PIOS_DEBUG_PinHigh | ( | uint8_t | pin | ) |
void PIOS_DEBUG_PinLow | ( | uint8_t | pin | ) |
void PIOS_DEBUG_PinValue4BitL | ( | uint8_t | value | ) |
Definition at line 66 of file pios_debug.c.
void PIOS_DEBUG_PinValue8Bit | ( | uint8_t | value | ) |
Definition at line 62 of file pios_debug.c.
const char* PIOS_DEBUG_AssertMsg |
Definition at line 34 of file pios_debug.c.
const char* PIOS_DEBUG_AssertMsg = "ASSERT FAILED" |
Definition at line 34 of file pios_debug.c.
const char* PIOS_DEBUG_AssertMsg = "ASSERT FAILED" |
Definition at line 34 of file pios_debug.c.
const char* PIOS_DEBUG_AssertMsg |
Definition at line 34 of file pios_debug.c.