include std debug header
This commit is contained in:
@@ -39,13 +39,8 @@
|
|||||||
#error "unknown machine!"
|
#error "unknown machine!"
|
||||||
#endif /* MACHINE_FIREBEE */
|
#endif /* MACHINE_FIREBEE */
|
||||||
|
|
||||||
//#define DBG_DMA
|
//#define DEBUG
|
||||||
#ifdef DBG_DMA
|
#include "debug.h"
|
||||||
#define dbg(format, arg...) do { xprintf("DEBUG: %s(): " format, __FUNCTION__, ##arg); } while (0)
|
|
||||||
#else
|
|
||||||
#define dbg(format, arg...) do { ; } while (0)
|
|
||||||
#endif /* DBG_DMA */
|
|
||||||
#define err(format, arg...) do { xprintf("ERROR: %s(): " format, __FUNCTION__, ##arg); } while (0)
|
|
||||||
|
|
||||||
extern char _SYS_SRAM[];
|
extern char _SYS_SRAM[];
|
||||||
#define SYS_SRAM &_SYS_SRAM[0]
|
#define SYS_SRAM &_SYS_SRAM[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user