summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-02-27 22:08:58 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-03-28 00:01:37 +0000
commit3ec66893e377b088c1284d2d23adb2aeea6d7965 (patch)
treeb647717f83ad56b15dc42cfdef5d04d68cd9bd6b /firmware/powermgmt.c
parent83fcbedc65f4b9ae7e491ecf6f07c0af4b245f74 (diff)
downloadrockbox-3ec66893e377b088c1284d2d23adb2aeea6d7965.tar.gz
rockbox-3ec66893e377b088c1284d2d23adb2aeea6d7965.zip
New port: FiiO M3K on bare metal
Change-Id: I7517e7d5459e129dcfc9465c6fbd708619888fbe
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 3b56242b21..a05e0aeb68 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -131,7 +131,8 @@ static int battery_type = 0;
131/* Power history: power_history[0] is the newest sample */ 131/* Power history: power_history[0] is the newest sample */
132unsigned short power_history[POWER_HISTORY_LEN] = {0}; 132unsigned short power_history[POWER_HISTORY_LEN] = {0};
133 133
134#if (CONFIG_CPU == JZ4732) || (CONFIG_CPU == JZ4760B) || (CONFIG_PLATFORM & PLATFORM_HOSTED) 134#if (CONFIG_CPU == JZ4732) || (CONFIG_CPU == JZ4760B) || \
135 (CONFIG_CPU == X1000) || (CONFIG_PLATFORM & PLATFORM_HOSTED)
135static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK]; 136static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK];
136#else 137#else
137static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK]; 138static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK];