Björn Stenberg
45d32cec5b
Added 'Disk info' to debug menu
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2908 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 13:12:55 +00:00
Daniel Stenberg
2094d45af0
use the proper #ifdef for a feature
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2903 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 12:02:26 +00:00
Björn Stenberg
1ea00d1a03
Added a >2ms delay in ata_hard_reset() before reading status, as per ATA specificatione (pedantic mode entered)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2902 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 11:26:39 +00:00
Björn Stenberg
c2cb6a67c4
Bug fix: A failed read could return OK.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2899 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 08:53:06 +00:00
Björn Stenberg
7249c8807c
Updated power-on procedure
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2896 a1c6a512-1295-4272-9138-f99709370657
2002-12-02 10:30:40 +00:00
Daniel Stenberg
cf1368145a
HAVE_ATA_POWER_OFF is now defined and used if the platform has support for
...
that control
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2889 a1c6a512-1295-4272-9138-f99709370657
2002-11-29 07:05:27 +00:00
Björn Stenberg
2b77b4fdd5
Added option to enable/disable disk poweroff (for diagnostic purposes)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2888 a1c6a512-1295-4272-9138-f99709370657
2002-11-28 22:46:19 +00:00
Björn Stenberg
494d261de3
Added disk poweroff 2s after spindown. (Only for recorders yet.)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2887 a1c6a512-1295-4272-9138-f99709370657
2002-11-27 15:55:47 +00:00
Linus Nielsen Feltzing
63f0b5ec3a
Removed a potential I2C deadlock
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2879 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 11:47:24 +00:00
Björn Stenberg
f11e3c0bba
Erroneous commit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2877 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:56:07 +00:00
Björn Stenberg
ac88b9e5ff
Fixed warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2876 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:55:08 +00:00
Björn Stenberg
b5184d761b
Added creation and last-modified timestamps.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2875 a1c6a512-1295-4272-9138-f99709370657
2002-11-22 23:51:46 +00:00
Linus Nielsen Feltzing
d5bb9a4e70
Added mas_readver()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2866 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 22:22:13 +00:00
Linus Nielsen Feltzing
d3d1583adb
Added rtc_read_multiple()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2862 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:00:56 +00:00
Björn Stenberg
282c819a19
Removed some debug output.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2858 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 12:58:45 +00:00
Björn Stenberg
c5f5be565e
Added rename()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2857 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 12:48:50 +00:00
Björn Stenberg
0a488fb155
Bug fixes: 1) add_dir_entry() would update end-of-dir marker even when not supposed to. 2) create_dos_name() didn't treat spaces correctly.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2854 a1c6a512-1295-4272-9138-f99709370657
2002-11-18 14:55:05 +00:00
Björn Stenberg
eee2c01697
Added longname handling to fat_remove().
...
Added proper 0xffff padding of last longname entry.
add_dir_entry() now makes sure shortname is unique.
Changed update_file_size() to use dir-as-file handling.
Simplified create_dos_name() since we never use shortnames.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2853 a1c6a512-1295-4272-9138-f99709370657
2002-11-18 11:58:43 +00:00
Björn Stenberg
7aabb1ab66
Long filename support added. (fat_remove() not updated yet.)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2852 a1c6a512-1295-4272-9138-f99709370657
2002-11-15 16:41:02 +00:00
Björn Stenberg
c442a68322
Cleaned up dir handling further.
...
Fixed a bug where a new dir cluster wasn't completely cleared.
Added freecount calculation if unset.
Removed a couple of signed mul/divs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2851 a1c6a512-1295-4272-9138-f99709370657
2002-11-15 11:20:33 +00:00
Björn Stenberg
a69e98d7cc
Added check to avoid FAT sector 0 panic.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2850 a1c6a512-1295-4272-9138-f99709370657
2002-11-14 22:17:41 +00:00
Björn Stenberg
1f214f2732
Directories are now handled as files, using fat_readwrite() instead of ata_read/write_sector().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2844 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 23:16:32 +00:00
Björn Stenberg
099a6b58d1
Added extra safety checks.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2839 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 20:02:23 +00:00
Björn Stenberg
6fb512aba5
Added disk space to Info menu item. (Players press + to see it.)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2837 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 11:32:26 +00:00
Björn Stenberg
68640edf90
Added ftruncate().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2827 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 14:40:18 +00:00
Björn Stenberg
11a09e632c
close() now does not truncate the file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2821 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 10:21:51 +00:00
Linus Nielsen Feltzing
4382c68b3f
Greg's improved fat_cache_sector() function, now updates the second FAT
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2814 a1c6a512-1295-4272-9138-f99709370657
2002-11-09 09:23:43 +00:00
Linus Nielsen Feltzing
81449d9642
fat_cache_sector() wrote to the wrong sector when flushing an entry. Thanks to Greg Haerr for finding the bug.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2813 a1c6a512-1295-4272-9138-f99709370657
2002-11-08 19:31:19 +00:00
Björn Stenberg
f9fed8152a
Changed return code of ata_write_sectors() to be the same as for ata_read_sectors(). (0 == Success)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2811 a1c6a512-1295-4272-9138-f99709370657
2002-11-07 22:40:24 +00:00
Björn Stenberg
0e51fefda6
Bug fixes: fat_seek(0) would sometimes start at sector 1. find_free_cluster() didn't find all free clusters.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2806 a1c6a512-1295-4272-9138-f99709370657
2002-11-05 14:46:27 +00:00
Björn Stenberg
c9fb098250
Bugfix: lseek() did not invalidate sector cache when seeking to start of file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2803 a1c6a512-1295-4272-9138-f99709370657
2002-11-04 14:59:46 +00:00
Björn Stenberg
6a8900b528
Bugfix: If last sector of a requested transfer was nonconsecutive, it would not be written.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2802 a1c6a512-1295-4272-9138-f99709370657
2002-11-04 13:52:47 +00:00
Björn Stenberg
307f5d846e
Added remove()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2801 a1c6a512-1295-4272-9138-f99709370657
2002-11-01 15:26:06 +00:00
Björn Stenberg
aa25f0962c
Removed warning.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2799 a1c6a512-1295-4272-9138-f99709370657
2002-11-01 08:31:55 +00:00
Björn Stenberg
675d258575
Fixed lseek().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2796 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 20:41:36 +00:00
Björn Stenberg
08356fb50a
More graceful handling when running out of space.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2793 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 19:05:25 +00:00
Björn Stenberg
a5e77d8f94
Fat writing update. File creation now works, though still only short filenames.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2790 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 16:09:28 +00:00
Linus Nielsen Feltzing
a02ffd5afa
Some peak meter optimizations
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2784 a1c6a512-1295-4272-9138-f99709370657
2002-10-30 23:01:27 +00:00
Björn Stenberg
d2df3c01dc
Improved find_free_cluster(). Split readwrite() in two to simplify debugging.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2783 a1c6a512-1295-4272-9138-f99709370657
2002-10-30 16:16:47 +00:00
Kjell Ericson
c2280c1617
The lcd_ascii-pointer is global for a while in order to be reachable from
...
the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2765 a1c6a512-1295-4272-9138-f99709370657
2002-10-28 20:12:17 +00:00
Kjell Ericson
3714f468c1
New height for teh player simulator. The default is pixels of 4x4 in order to
...
make it more readable and better icons.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2759 a1c6a512-1295-4272-9138-f99709370657
2002-10-28 19:53:44 +00:00
Björn Stenberg
7c62863fbe
Fixed bug where first sector was skipped on reads.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2746 a1c6a512-1295-4272-9138-f99709370657
2002-10-23 14:05:30 +00:00
Björn Stenberg
46ddacf533
Fat32 write updates: Nixed some bugs. Basic file creation now works. Todo: Long filenames and extensive test cases.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2742 a1c6a512-1295-4272-9138-f99709370657
2002-10-22 15:06:08 +00:00
Kjell Ericson
a52896878a
Dubbled the size of player bitmap. The double height/width will be used to
...
make the icons in double resolution (and who wants to look at that old tiny
simulated player window anyway?)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2736 a1c6a512-1295-4272-9138-f99709370657
2002-10-21 20:21:43 +00:00
Markus Braun
bc254fe95f
Added multiline scroll support.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2729 a1c6a512-1295-4272-9138-f99709370657
2002-10-21 13:14:25 +00:00
Björn Stenberg
b7b48fea02
Snapshot of file writing code. Bugs remain. Only short names are supported yet.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2726 a1c6a512-1295-4272-9138-f99709370657
2002-10-20 22:50:58 +00:00
Mats Lidell
8ca78b6665
Undefined functions supplied for simulator in lcd-playersim.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2717 a1c6a512-1295-4272-9138-f99709370657
2002-10-18 09:24:23 +00:00
Kjell Ericson
84d7d70c63
New size for the player window.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2709 a1c6a512-1295-4272-9138-f99709370657
2002-10-17 18:44:02 +00:00
Linus Nielsen Feltzing
e45c069d69
Removed all traces of the repeat and release masks
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2684 a1c6a512-1295-4272-9138-f99709370657
2002-10-16 13:17:26 +00:00
Linus Nielsen Feltzing
7ec35e7828
Don't reboot unless we are connected to a charger
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2683 a1c6a512-1295-4272-9138-f99709370657
2002-10-16 12:40:30 +00:00