summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/power.c3
-rw-r--r--firmware/export/config-fmrecorder.h7
2 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index d3605065c7..b10cefef81 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -78,6 +78,9 @@ void power_off(void)
78#ifdef HAVE_POWEROFF_ON_PBDR 78#ifdef HAVE_POWEROFF_ON_PBDR
79 PBDR &= ~PBDR_BTN_OFF; 79 PBDR &= ~PBDR_BTN_OFF;
80 PBIOR |= PBDR_BTN_OFF; 80 PBIOR |= PBDR_BTN_OFF;
81#elif defined(HAVE_POWEROFF_ON_PB5)
82 PBDR &= ~0x20;
83 PBIOR |= 0x20;
81#else 84#else
82 PADR &= ~0x800; 85 PADR &= ~0x800;
83 PAIOR |= 0x800; 86 PAIOR |= 0x800;
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h
index 88ed9e433c..1814e8d53b 100644
--- a/firmware/export/config-fmrecorder.h
+++ b/firmware/export/config-fmrecorder.h
@@ -13,9 +13,6 @@
13/* Define this if you have a MAS3587F */ 13/* Define this if you have a MAS3587F */
14#define HAVE_MAS3587F 14#define HAVE_MAS3587F
15 15
16/* Define this if you have ATA power-off control */
17#define HAVE_ATA_POWER_OFF
18
19/* Define this if you have a FM Recorder key system */ 16/* Define this if you have a FM Recorder key system */
20#define HAVE_FMADC 1 17#define HAVE_FMADC 1
21 18
@@ -28,8 +25,8 @@
28/* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */ 25/* Battery scale factor (guessed, seems to be 1,25 * value from recorder) */
29#define BATTERY_SCALE_FACTOR 8081 26#define BATTERY_SCALE_FACTOR 8081
30 27
31/* Define this if you control power on PBDR (instead of PADR) */ 28/* Define this if you control power on PB5 (instead of the OFF button) */
32#define HAVE_POWEROFF_ON_PBDR 29#define HAVE_POWEROFF_ON_PB5
33 30
34/* Offset ( in the firmware file's header ) to the file length */ 31/* Offset ( in the firmware file's header ) to the file length */
35#define FIRMWARE_OFFSET_FILE_LENGTH 20 32#define FIRMWARE_OFFSET_FILE_LENGTH 20