J?rg Hohensohn | 1 Dec 2003 09:10
Picon

cvs: flash FILES,NONE,1.1

Update of /cvsroot/rockbox/flash
In directory sc8-pr-cvs1:/tmp/cvs-serv9838/flash

Added Files:
	FILES 
Log Message:
index file for source tarball

--- NEW FILE: FILES ---
FILES
README
bootloader/*.[ch]
bootloader/*.lds
bootloader/Makefile
bootloader/README
extract/*.[ch]
extract/extract.dsp
extract/README
make_firmware/*.[ch]
make_firmware/make_firmware.dsp
make_firmware/README
minimon/*.[ch]
minimon/minimon.lds
minimon/Makefile
minimon/README
uart_boot/*.[ch]
uart_boot/uart_boot.dsp
uart_boot/README

(Continue reading)

J?rg Hohensohn | 3 Dec 2003 02:02
Picon

cvs: firmware/drivers ata.c,1.95,1.96 power.c,1.22,1.23

Update of /cvsroot/rockbox/firmware/drivers
In directory sc8-pr-cvs1:/tmp/cvs-serv10000/firmware/drivers

Modified Files:
	ata.c power.c 
Log Message:
No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo:
remove now false voltage reading from charging screen.

Index: ata.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/drivers/ata.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -b -r1.95 -r1.96
--- ata.c	7 Nov 2003 12:15:22 -0000	1.95
+++ ata.c	3 Dec 2003 01:02:23 -0000	1.96
 <at>  <at>  -795,6 +795,12  <at>  <at> 
     ata_enable(true);

     if ( !initialized ) {
+        if (!ide_powered()) /* somebody has switched it off */
+        {
+            ide_power_enable(true);
+            sleep(HZ); /* allow voltage to build up */
+        }
+
         if (coldstart)
         {
             /* Reset both master and slave, we don't yet know what's in */
(Continue reading)

J?rg Hohensohn | 3 Dec 2003 02:03
Picon

cvs: flash/bootloader bootloader.c,1.1,1.2

Update of /cvsroot/rockbox/flash/bootloader
In directory sc8-pr-cvs1:/tmp/cvs-serv10221/flash/bootloader

Modified Files:
	bootloader.c 
Log Message:
No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo:
remove now false voltage reading from charging screen.

Index: bootloader.c
===================================================================
RCS file: /cvsroot/rockbox/flash/bootloader/bootloader.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- bootloader.c	30 Nov 2003 11:37:42 -0000	1.1
+++ bootloader.c	3 Dec 2003 01:03:54 -0000	1.2
 <at>  <at>  -139,8 +139,9  <at>  <at> 
 	PBDR |= 0x20; // set PB5 to keep power (fixes the ON-holding problem)
 	PBIOR |= 0x20; // make PB5 an output
 	if (ReadADC(0) < 0x1FF) // charger plugged?
-	{
-		// how do we switch this off?
+	{	// switch off the HD, else a flat battery may not start
+		PACR2 &= 0xFBFF; // GPIO for PA5
+		PAIOR |= 0x20;	 // make PA5 an output (low by default)
 	}
 #endif

(Continue reading)

J?rg Hohensohn | 3 Dec 2003 02:03
Picon

cvs: apps main.c,1.79,1.80

Update of /cvsroot/rockbox/apps
In directory sc8-pr-cvs1:/tmp/cvs-serv10159/apps

Modified Files:
	main.c 
Log Message:
No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo:
remove now false voltage reading from charging screen.

Index: main.c
===================================================================
RCS file: /cvsroot/rockbox/apps/main.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- main.c	20 Nov 2003 00:01:13 -0000	1.79
+++ main.c	3 Dec 2003 01:03:21 -0000	1.80
 <at>  <at>  -144,7 +144,6  <at>  <at> 
         if (rc == 1 || rc == 2)  /* charger removed or "Off/Stop" pressed */
             power_off();
         /* "On" pressed or USB connected: proceed */
-        ide_power_enable(true);
     }

     rc = ata_init();

J?rg Hohensohn | 3 Dec 2003 02:02
Picon

cvs: firmware/export config-fmrecorder.h,1.7,1.8 config-recorder.h,1.2,1.3 config-recorderv2.h,1.1,1.2 power.h,1.2,1.3

Update of /cvsroot/rockbox/firmware/export
In directory sc8-pr-cvs1:/tmp/cvs-serv10079/firmware/export

Modified Files:
	config-fmrecorder.h config-recorder.h config-recorderv2.h 
	power.h 
Log Message:
No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo:
remove now false voltage reading from charging screen.

Index: config-fmrecorder.h
===================================================================
RCS file: /cvsroot/rockbox/firmware/export/config-fmrecorder.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- config-fmrecorder.h	27 Nov 2003 21:24:02 -0000	1.7
+++ config-fmrecorder.h	3 Dec 2003 01:02:54 -0000	1.8
 <at>  <at>  -19,6 +19,9  <at>  <at> 
 /* Define this if you have a LiIon battery */
 #define HAVE_LIION

+/* Define this if you need to power on ATA */
+#define NEEDS_ATA_POWER_ON
+
 /* Define this to the CPU frequency */
 #define CPU_FREQ      11059200

Index: config-recorder.h
===================================================================
(Continue reading)

J?rg Hohensohn | 3 Dec 2003 08:05
Picon

cvs: firmware/export config-fmrecorder.h,1.8,1.9 config-recorderv2.h,1.2,1.3

Update of /cvsroot/rockbox/firmware/export
In directory sc8-pr-cvs1:/tmp/cvs-serv302/firmware/export

Modified Files:
	config-fmrecorder.h config-recorderv2.h 
Log Message:
for FM and V2: removed the now false voltage reading from charging screen.

Index: config-fmrecorder.h
===================================================================
RCS file: /cvsroot/rockbox/firmware/export/config-fmrecorder.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- config-fmrecorder.h	3 Dec 2003 01:02:54 -0000	1.8
+++ config-fmrecorder.h	3 Dec 2003 07:05:13 -0000	1.9
 <at>  <at>  -22,6 +22,9  <at>  <at> 
 /* Define this if you need to power on ATA */
 #define NEEDS_ATA_POWER_ON

+/* Define this if battery voltage can only be measured with ATA powered */
+#define NEED_ATA_POWER_BATT_MEASURE
+
 /* Define this to the CPU frequency */
 #define CPU_FREQ      11059200

Index: config-recorderv2.h
===================================================================
RCS file: /cvsroot/rockbox/firmware/export/config-recorderv2.h,v
retrieving revision 1.2
(Continue reading)

J?rg Hohensohn | 3 Dec 2003 08:05
Picon

cvs: apps screens.c,1.33,1.34

Update of /cvsroot/rockbox/apps
In directory sc8-pr-cvs1:/tmp/cvs-serv302/apps

Modified Files:
	screens.c 
Log Message:
for FM and V2: removed the now false voltage reading from charging screen.

Index: screens.c
===================================================================
RCS file: /cvsroot/rockbox/apps/screens.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- screens.c	20 Jul 2003 00:12:21 -0000	1.33
+++ screens.c	3 Dec 2003 07:05:11 -0000	1.34
 <at>  <at>  -140,9 +140,15  <at>  <at> 
     const int pox_y = 32;
     static unsigned phase = 3;
     unsigned i;
+    char buf[32];
+    (void)buf;
+
+#ifdef NEED_ATA_POWER_BATT_MEASURE
+    if (ide_powered()) /* FM and V2 can only measure when ATA power is on */
+#endif
+    {
     int battery_voltage;
     int batt_int, batt_frac;
-    char buf[32];
(Continue reading)

J?rg Hohensohn | 3 Dec 2003 19:50
Picon

cvs: firmware/drivers power.c,1.23,1.24

Update of /cvsroot/rockbox/firmware/drivers
In directory sc8-pr-cvs1:/tmp/cvs-serv28090/firmware/drivers

Modified Files:
	power.c 
Log Message:
oops, a typo made the player build fail

Index: power.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/drivers/power.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- power.c	3 Dec 2003 01:02:24 -0000	1.23
+++ power.c	3 Dec 2003 18:50:19 -0000	1.24
 <at>  <at>  -105,12 +105,12  <at>  <at> 
 bool ide_powered(void)
 {
 #if defined(NEEDS_ATA_POWER_ON) || defined(HAVE_ATA_POWER_OFF)
-    if ((PACR2 & 0x0400) || !(PAIOR & 0x0020)) // not configured for output
-        return true; // would be floating high, disk on
+    if ((PACR2 & 0x0400) || !(PAIOR & 0x0020)) /* not configured for output */
+        return true; /* would be floating high, disk on */
     else
         return (PADR & 0x0020) != 0;
 #else
-    return TRUE; /* pretend always powered if not controlable */
+    return true; /* pretend always powered if not controlable */
 #endif
(Continue reading)

Bjorn Stenberg | 4 Dec 2003 00:21
Picon

cvs: apps status.c,1.47,1.48

Update of /cvsroot/rockbox/apps
In directory sc8-pr-cvs1:/tmp/cvs-serv23510

Modified Files:
	status.c 
Log Message:
Battery meter now shows '?' after boot instead of nothing at all.

Index: status.c
===================================================================
RCS file: /cvsroot/rockbox/apps/status.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- status.c	19 Nov 2003 14:14:41 -0000	1.47
+++ status.c	3 Dec 2003 23:21:13 -0000	1.48
 <at>  <at>  -40,7 +40,7  <at>  <at> 
 static long switch_tick;
 static int  battery_charge_step = 0;
 static bool plug_state;
-static bool battery_state;
+static bool battery_state = true;

 struct status_info {
     int battlevel;
 <at>  <at>  -167,7 +167,8  <at>  <at> 
                 battery_state = true;
             else {
                 /* blink battery if level is low */
-                if(TIME_AFTER(current_tick, switch_tick)) {
(Continue reading)

Bjorn Stenberg | 4 Dec 2003 00:21
Picon

cvs: apps/recorder icons.c,1.41,1.42

Update of /cvsroot/rockbox/apps/recorder
In directory sc8-pr-cvs1:/tmp/cvs-serv23510/recorder

Modified Files:
	icons.c 
Log Message:
Battery meter now shows '?' after boot instead of nothing at all.

Index: icons.c
===================================================================
RCS file: /cvsroot/rockbox/apps/recorder/icons.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- icons.c	27 Jul 2003 22:09:49 -0000	1.41
+++ icons.c	3 Dec 2003 23:21:13 -0000	1.42
 <at>  <at>  -158,17 +158,19  <at>  <at> 
         fill = 100;

 #ifdef SIMULATOR
-    if (global_settings.battery_type) {
+    if (global_settings.battery_type && (percent > -1)) {
 #else
 #ifdef HAVE_CHARGE_CTRL /* Recorder */
     /* show graphical animation when charging instead of numbers */
-    if ((global_settings.battery_type) && (charge_state != 1)) {
+    if ((global_settings.battery_type) &&
+        (charge_state != 1) &&
+        (percent > -1)) {
 #else /* FM */
(Continue reading)


Gmane