OpenCores
URL https://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk

Subversion Repositories adv_debug_sys

[/] [adv_debug_sys/] [trunk/] [Software/] [adv_jtag_bridge/] [dbg_api.c] - Diff between revs 50 and 59

Show entire file | Details | Blame | View Log

Rev 50 Rev 59
Line 1... Line 1...
/* dbg_api.c -- JTAG protocol bridge between GDB and Advanced debug module.
/* dbg_api.c -- JTAG protocol bridge between GDB and Advanced debug module.
   Copyright(C) 2009 - 2010 Nathan Yawn, nyawn@opencores.net
   Copyright(C) 2009 - 2011 Nathan Yawn, nyawn@opencores.net
   based on code from jp2 by Marko Mlinar, markom@opencores.org
   based on code from jp2 by Marko Mlinar, markom@opencores.org
 
 
   This file contains API functions which may be called from the GDB
   This file contains API functions which may be called from the GDB
   interface server.  These functions call the appropriate hardware-
   interface server.  These functions call the appropriate hardware-
   specific functions for the advanced debug interface or the legacy
   specific functions for the advanced debug interface or the legacy
Line 36... Line 36...
#define debug(...) //fprintf(stderr, __VA_ARGS__ )
#define debug(...) //fprintf(stderr, __VA_ARGS__ )
 
 
#define DBG_HW_ADVANCED 1
#define DBG_HW_ADVANCED 1
#define DBG_HW_LEGACY   2
#define DBG_HW_LEGACY   2
#ifdef __LEGACY__
#ifdef __LEGACY__
#warning Compiling for LEGACY debug hardware!
 
#define DEBUG_HARDWARE DBG_HW_LEGACY
#define DEBUG_HARDWARE DBG_HW_LEGACY
#else
#else
#warning Compiling for ADVANCED debug unit!
 
#define DEBUG_HARDWARE  DBG_HW_ADVANCED
#define DEBUG_HARDWARE  DBG_HW_ADVANCED
#endif
#endif
 
 
pthread_mutex_t dbg_access_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t dbg_access_mutex = PTHREAD_MUTEX_INITIALIZER;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.