rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
debug.h File Reference

Debug functions such as delay and stack dump. More...

#include "drivers/leds.h"

Go to the source code of this file.

Macros

#define RFLPC_DELAY(c)
 wait until a counter reaches c. More...
 
#define RFLPC_DELAY_MICROSECS(c)   RFLPC_DELAY(32*(c))
 Wait c micro seconds. More...
 
#define RFLPC_STOP(l, c)
 Stops execution by an infinite loop, switching between led pattern l and its opposite. More...
 
#define RFLPC_ARM_GET_REGISTER(reg, var)
 Stores the content of a register in var. More...
 
#define RFLPC_DUMP_STACK()
 Dumps 64 bytes from the current value of the stack pointer. More...
 
#define RFLPC_ASSERT(cond)   do { if (!(cond)) { RFLPC_STOP(0, 50000); } } while (0)
 Asserts a condition. More...
 
#define RFLPC_ADDR_IN(addr, inf, sup)   ( ((void*)(addr)) >= ((void*)(inf)) ? (((void*)(addr)) < ((void*)(sup))) : 0)
 True if addr in [inf..sup[.
 

Detailed Description

Debug functions such as delay and stack dump.

Definition in file debug.h.