diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-ifp7xx.h | 2 | ||||
-rw-r--r-- | firmware/export/debug.h | 5 | ||||
-rw-r--r-- | firmware/export/gdb_api.h | 35 |
3 files changed, 42 insertions, 0 deletions
diff --git a/firmware/export/config-ifp7xx.h b/firmware/export/config-ifp7xx.h index 086b455235..9e5a432260 100644 --- a/firmware/export/config-ifp7xx.h +++ b/firmware/export/config-ifp7xx.h @@ -84,6 +84,8 @@ #define USB_ISP1582 +#define HAVE_GDB_API + /* Virtual LED (icon) */ #define CONFIG_LED LED_VIRTUAL diff --git a/firmware/export/debug.h b/firmware/export/debug.h index 0506ff1e42..52b6687c6b 100644 --- a/firmware/export/debug.h +++ b/firmware/export/debug.h @@ -31,6 +31,11 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...); #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) #else #if defined(DEBUG) + +#ifdef HAVE_GDB_API +void breakpoint(void); +#endif + #define DEBUGF debugf #define LDEBUGF debugf #else diff --git a/firmware/export/gdb_api.h b/firmware/export/gdb_api.h new file mode 100644 index 0000000000..896c8d399d --- /dev/null +++ b/firmware/export/gdb_api.h @@ -0,0 +1,35 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2006 by Tomasz Malesinski + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#ifndef _GDB_API_H_ +#define _GDB_API_H_ + +#include "config.h" + +#define GDB_API_MAGIC 0x6db570b +#ifdef IRIVER_IFP7XX_SERIES +#define GDB_API_ADDRESS 0x24006000 +#endif + +struct gdb_api +{ + unsigned long magic; + void *func[]; +}; +#endif |