Skip to content

Commit 980949b

Browse files
committed
fixed shutdown functions
1 parent ca8521e commit 980949b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ tools/makelang
4141
tools/packfi2/fi2enc
4242
tools/pakwif
4343
tools/capdis
44+
tools/dumpchk
45+
tools/extract_error_table
46+
tools/find_eventproc
47+
tools/find_levent
48+
tools/rawconvert
49+
tools/yuvconvert

platform/m6/lib.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
#include "lib.h"
66

77
void shutdown_soft() {
8-
// _PostLogicalEventForNotPowerType(0x1005, 0);
8+
// find_levent -full PRIMARY.BIN 0xe0000000 | grep -i PowerLever
9+
_PostLogicalEventForNotPowerType(0x1014, 2); // PowerLeverOff
910
}
1011

11-
/**
12-
* @see main startup
13-
*/
1412
void shutdown() {
15-
13+
shutdown_soft();
14+
while (1)
15+
;
1616
}
1717

1818
/**

0 commit comments

Comments
 (0)