debug messages - solution

martin at garben.net martin at garben.net
Wed Sep 26 17:47:14 UTC 2007


I just found the reason for the issue described in the post above:

In rc632.c for example, the include "rc632.h" overrides the DEBUG macro definitions of the definitions include "os/dbgu.h".

When I place the "os/dbgu.h" include AFTER the "rc632.h" include, the DEBUG* macros are defined correctly:

#include <string.h>
#include <errno.h>
#include <lib_AT91SAM7.h>
#include <cl_rc632.h>
#include <openpcd.h>
#include "../openpcd.h"
#include <os/fifo.h>
//#include <os/dbgu.h>
#include <os/pcd_enumerate.h>
#include <os/usb_handler.h>
#include <os/req_ctx.h>
#include "rc632.h"

#include <os/dbgu.h> 

Best regards, Martin



More information about the openpcd-devel mailing list