logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: firmware/drivers power.c,1.9,1.10: msg#00075

Subject: cvs: firmware/drivers power.c,1.9,1.10
Update of /cvsroot/rockbox/firmware/drivers
In directory usw-pr-cvs1:/tmp/cvs-serv15391/firmware/drivers

Modified Files:
        power.c 
Log Message:
More sensible (but probably still not working) power off

Index: power.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/drivers/power.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- power.c     7 Aug 2002 11:22:26 -0000       1.9
+++ power.c     25 Sep 2002 19:28:01 -0000      1.10
@@ -20,6 +20,7 @@
 #include <stdbool.h>
 #include "config.h"
 #include "adc.h"
+#include "kernel.h"
 #include "power.h"
 
 #ifdef HAVE_CHARGE_CTRL
@@ -66,6 +67,7 @@
 
 void power_off(void)
 {
+    set_irq_level(15);
 #ifdef ARCHOS_RECORDER
     PBDR &= ~PBDR_BTN_OFF;
     PBIOR |= PBDR_BTN_OFF;
@@ -73,6 +75,7 @@
     PADR &= ~0x800;
     PAIOR |= 0x800;
 #endif
+    while(1);
 }
 
 #else





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>