1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright © 2008 Rafaël Carré
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
25 #include "debug-target.h"
31 /* Skeleton for adding target specific debug info to the debug menu
34 #define _DEBUG_PRINTF(a,varargs...) do { \
35 snprintf(buf, sizeof(buf), (a), ##varargs); lcd_puts(0,line++,buf); \
39 bool __dbg_hw_info(void)
45 lcd_setfont(FONT_SYSFIXED
);
54 /* _DEBUG_PRINTF statements can be added here to show debug info */
55 _DEBUG_PRINTF("__dbg_hw_info");
58 int btn
= button_get_w_tmo(HZ
/10);
59 if(btn
== (DEBUG_CANCEL
|BUTTON_REL
))
61 else if(btn
== (BUTTON_PLAY
|BUTTON_REL
))
71 bool __dbg_ports(void)
77 lcd_setfont(FONT_SYSFIXED
);
83 /* _DEBUG_PRINTF statements can be added here to show debug info */
84 _DEBUG_PRINTF("__dbg_ports");
87 if (button_get_w_tmo(HZ
/10) == (DEBUG_CANCEL
|BUTTON_REL
))