forked from len0rd/rockbox
Removed debug code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1301 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9309c4d508
commit
d506e7a357
1 changed files with 0 additions and 76 deletions
|
@ -38,15 +38,7 @@
|
||||||
#include "screensavers_menu.h"
|
#include "screensavers_menu.h"
|
||||||
#include "bmp.h"
|
#include "bmp.h"
|
||||||
#include "icons.h"
|
#include "icons.h"
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
|
||||||
#ifdef ARCHOS_RECORDER
|
|
||||||
#include "adc.h"
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void dbg_ports(void);
|
|
||||||
|
|
||||||
int show_logo( void )
|
int show_logo( void )
|
||||||
{
|
{
|
||||||
|
@ -153,71 +145,3 @@ void main_menu(void)
|
||||||
menu_run(m);
|
menu_run(m);
|
||||||
menu_exit(m);
|
menu_exit(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------*/
|
|
||||||
/* SPECIAL DEBUG STUFF */
|
|
||||||
/*---------------------------------------------------*/
|
|
||||||
#ifndef SIMULATOR
|
|
||||||
#ifdef ARCHOS_RECORDER
|
|
||||||
extern int ata_device;
|
|
||||||
extern int ata_io_address;
|
|
||||||
|
|
||||||
/* Test code!!! */
|
|
||||||
void dbg_ports(void)
|
|
||||||
{
|
|
||||||
unsigned short porta;
|
|
||||||
unsigned short portb;
|
|
||||||
unsigned char portc;
|
|
||||||
char buf[32];
|
|
||||||
int button;
|
|
||||||
|
|
||||||
lcd_clear_display();
|
|
||||||
|
|
||||||
while(1)
|
|
||||||
{
|
|
||||||
porta = PADR;
|
|
||||||
portb = PBDR;
|
|
||||||
portc = PCDR;
|
|
||||||
|
|
||||||
snprintf(buf, 32, "PADR: %04x", porta);
|
|
||||||
lcd_puts(0, 0, buf);
|
|
||||||
snprintf(buf, 32, "PBDR: %04x", portb);
|
|
||||||
lcd_puts(0, 1, buf);
|
|
||||||
|
|
||||||
snprintf(buf, 32, "AN0: %03x AN4: %03x", adc_read(0), adc_read(4));
|
|
||||||
lcd_puts(0, 3, buf);
|
|
||||||
snprintf(buf, 32, "AN1: %03x AN5: %03x", adc_read(1), adc_read(5));
|
|
||||||
lcd_puts(0, 4, buf);
|
|
||||||
snprintf(buf, 32, "AN2: %03x AN6: %03x", adc_read(2), adc_read(6));
|
|
||||||
lcd_puts(0, 5, buf);
|
|
||||||
snprintf(buf, 32, "AN3: %03x AN7: %03x", adc_read(3), adc_read(7));
|
|
||||||
lcd_puts(0, 6, buf);
|
|
||||||
|
|
||||||
snprintf(buf, 32, "%s : 0x%x",
|
|
||||||
ata_device?"slave":"master", ata_io_address);
|
|
||||||
lcd_puts(0, 7, buf);
|
|
||||||
|
|
||||||
lcd_update();
|
|
||||||
sleep(HZ/10);
|
|
||||||
|
|
||||||
button = button_get(false);
|
|
||||||
|
|
||||||
switch(button)
|
|
||||||
{
|
|
||||||
case BUTTON_ON:
|
|
||||||
/* Toggle the charger */
|
|
||||||
PBDR ^= 0x20;
|
|
||||||
break;
|
|
||||||
|
|
||||||
#ifdef HAVE_RECORDER_KEYPAD
|
|
||||||
case BUTTON_OFF:
|
|
||||||
#else
|
|
||||||
case BUTTON_STOP:
|
|
||||||
#endif /* Disable the charger */
|
|
||||||
PBDR |= 0x20;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue