diff options
Diffstat (limited to 'firmware/target/arm/as3525/debug-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/debug-as3525.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c index a388f12601..a70a07be9a 100644 --- a/firmware/target/arm/as3525/debug-as3525.c +++ b/firmware/target/arm/as3525/debug-as3525.c | |||
@@ -31,6 +31,15 @@ | |||
31 | #define _DEBUG_PRINTF(a,varargs...) \ | 31 | #define _DEBUG_PRINTF(a,varargs...) \ |
32 | snprintf(buf, sizeof(buf), (a), ##varargs); lcd_puts(0,line++,buf) | 32 | snprintf(buf, sizeof(buf), (a), ##varargs); lcd_puts(0,line++,buf) |
33 | 33 | ||
34 | /* FIXME: target tree is including ./debug-target.h rather than the one in | ||
35 | * sansa-fuze/, even though deps contains the correct one | ||
36 | * if I put the below into a sansa-fuze/debug-target.h, it doesn't work*/ | ||
37 | #ifdef SANSA_FUZE | ||
38 | #define DEBUG_DBOP | ||
39 | short button_dbop_data(void); | ||
40 | #endif | ||
41 | |||
42 | |||
34 | /* TODO */ | 43 | /* TODO */ |
35 | 44 | ||
36 | bool __dbg_hw_info(void) | 45 | bool __dbg_hw_info(void) |
@@ -54,10 +63,10 @@ bool __dbg_ports(void) | |||
54 | _DEBUG_PRINTF("GPIOB: %2x DIR: %2x", GPIOB_DATA, GPIOB_DIR); | 63 | _DEBUG_PRINTF("GPIOB: %2x DIR: %2x", GPIOB_DATA, GPIOB_DIR); |
55 | _DEBUG_PRINTF("GPIOC: %2x DIR: %2x", GPIOC_DATA, GPIOC_DIR); | 64 | _DEBUG_PRINTF("GPIOC: %2x DIR: %2x", GPIOC_DATA, GPIOC_DIR); |
56 | _DEBUG_PRINTF("GPIOD: %2x DIR: %2x", GPIOD_DATA, GPIOD_DIR); | 65 | _DEBUG_PRINTF("GPIOD: %2x DIR: %2x", GPIOD_DATA, GPIOD_DIR); |
57 | #ifdef TRACK_DBOP_DIN | 66 | #ifdef DEBUG_DBOP |
58 | line++; | 67 | line++; |
59 | _DEBUG_PRINTF("[DBOP_DIN]"); | 68 | _DEBUG_PRINTF("[DBOP_DIN]"); |
60 | _DEBUG_PRINTF("DBOP_DIN: %4x", _dbop_din); | 69 | _DEBUG_PRINTF("DBOP_DIN: %4x", button_dbop_data()); |
61 | #endif | 70 | #endif |
62 | lcd_update(); | 71 | lcd_update(); |
63 | if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) | 72 | if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) |