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:
parent
400a13f468
commit
70e3331fa1
2 changed files with 5 additions and 5 deletions
|
|
@ -78,6 +78,9 @@ void power_off(void)
|
||||||
#ifdef HAVE_POWEROFF_ON_PBDR
|
#ifdef HAVE_POWEROFF_ON_PBDR
|
||||||
PBDR &= ~PBDR_BTN_OFF;
|
PBDR &= ~PBDR_BTN_OFF;
|
||||||
PBIOR |= PBDR_BTN_OFF;
|
PBIOR |= PBDR_BTN_OFF;
|
||||||
|
#elif defined(HAVE_POWEROFF_ON_PB5)
|
||||||
|
PBDR &= ~0x20;
|
||||||
|
PBIOR |= 0x20;
|
||||||
#else
|
#else
|
||||||
PADR &= ~0x800;
|
PADR &= ~0x800;
|
||||||
PAIOR |= 0x800;
|
PAIOR |= 0x800;
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,6 @@
|
||||||
/* Define this if you have a MAS3587F */
|
/* Define this if you have a MAS3587F */
|
||||||
#define HAVE_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 this if you have a FM Recorder key system */
|
||||||
#define HAVE_FMADC 1
|
#define HAVE_FMADC 1
|
||||||
|
|
||||||
|
|
@ -28,8 +25,8 @@
|
||||||
/* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */
|
/* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */
|
||||||
#define BATTERY_SCALE_FACTOR 8081
|
#define BATTERY_SCALE_FACTOR 8081
|
||||||
|
|
||||||
/* Define this if you control power on PBDR (instead of PADR) */
|
/* Define this if you control power on PB5 (instead of the OFF button) */
|
||||||
#define HAVE_POWEROFF_ON_PBDR
|
#define HAVE_POWEROFF_ON_PB5
|
||||||
|
|
||||||
/* Offset ( in the firmware file's header ) to the file length */
|
/* Offset ( in the firmware file's header ) to the file length */
|
||||||
#define FIRMWARE_OFFSET_FILE_LENGTH 20
|
#define FIRMWARE_OFFSET_FILE_LENGTH 20
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue