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 @@ | |||
84 | 84 | ||
85 | #define USB_ISP1582 | 85 | #define USB_ISP1582 |
86 | 86 | ||
87 | #define HAVE_GDB_API | ||
88 | |||
87 | /* Virtual LED (icon) */ | 89 | /* Virtual LED (icon) */ |
88 | #define CONFIG_LED LED_VIRTUAL | 90 | #define CONFIG_LED LED_VIRTUAL |
89 | 91 | ||
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, ...); | |||
31 | #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) | 31 | #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) |
32 | #else | 32 | #else |
33 | #if defined(DEBUG) | 33 | #if defined(DEBUG) |
34 | |||
35 | #ifdef HAVE_GDB_API | ||
36 | void breakpoint(void); | ||
37 | #endif | ||
38 | |||
34 | #define DEBUGF debugf | 39 | #define DEBUGF debugf |
35 | #define LDEBUGF debugf | 40 | #define LDEBUGF debugf |
36 | #else | 41 | #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 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 by Tomasz Malesinski | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef _GDB_API_H_ | ||
21 | #define _GDB_API_H_ | ||
22 | |||
23 | #include "config.h" | ||
24 | |||
25 | #define GDB_API_MAGIC 0x6db570b | ||
26 | #ifdef IRIVER_IFP7XX_SERIES | ||
27 | #define GDB_API_ADDRESS 0x24006000 | ||
28 | #endif | ||
29 | |||
30 | struct gdb_api | ||
31 | { | ||
32 | unsigned long magic; | ||
33 | void *func[]; | ||
34 | }; | ||
35 | #endif | ||