1
0
Fork 0
forked from len0rd/rockbox

Fixed bug #688807, now the Idle poweroff works on FM recorder. Also disabled ATA-poweroff.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3312 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-02-21 01:12:00 +00:00
parent 400a13f468
commit 70e3331fa1
2 changed files with 5 additions and 5 deletions

View file

@ -78,6 +78,9 @@ void power_off(void)
#ifdef HAVE_POWEROFF_ON_PBDR
PBDR &= ~PBDR_BTN_OFF;
PBIOR |= PBDR_BTN_OFF;
#elif defined(HAVE_POWEROFF_ON_PB5)
PBDR &= ~0x20;
PBIOR |= 0x20;
#else
PADR &= ~0x800;
PAIOR |= 0x800;

View file

@ -13,9 +13,6 @@
/* Define this if you have a MAS3587F */
#define HAVE_MAS3587F
/* Define this if you have ATA power-off control */
#define HAVE_ATA_POWER_OFF
/* Define this if you have a FM Recorder key system */
#define HAVE_FMADC 1
@ -28,8 +25,8 @@
/* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */
#define BATTERY_SCALE_FACTOR 8081
/* Define this if you control power on PBDR (instead of PADR) */
#define HAVE_POWEROFF_ON_PBDR
/* Define this if you control power on PB5 (instead of the OFF button) */
#define HAVE_POWEROFF_ON_PB5
/* Offset ( in the firmware file's header ) to the file length */
#define FIRMWARE_OFFSET_FILE_LENGTH 20