aboutsummaryrefslogtreecommitdiff
path: root/stmhal/fatfs
AgeCommit message (Collapse)Author
2014-12-27stmhal: Upgrade to latest fatfs driver.Damien George
2014-09-29stmhal, fatfs: Use stdlib for string fns; make all private fns static.Damien George
We save some code bytes by using builtin string functions.
2014-09-29stmhal: Add label to internal flash drive on creation.Damien George
2014-07-31stmhal: Change 0:/ and 1:/ to /flash and /sd; add CWD support.Damien George
Some important changes to the way the file system is structured on the pyboard: 1. 0: and 1: drive names are now replaced with POSIX inspired directories, namely /flash and /sd. 2. Filesystem now supports the notion of a current working directory. Supports the standard Python way of manipulating it: os.chdir and os.getcwd. 3. On boot up, current directory is /flash if no SD inserted, else /sd if SD inserted. Then runs boot.py and main.py from the current dir. This is the same as the old behaviour, but is much more consistent and flexible (eg you can os.chdir in boot.py to change where main.py is run from). 4. sys.path (for import) is now set to '' (current dir), plus /flash and /flash/lib, and then /sd and /sd/lib if SD inserted. This, along with CWD, means that import now works properly. You can import a file from the current directory. 5. os.listdir is fixed to return just the basename, not the full path. See issue #537 for background and discussion.
2014-04-12stmhal: Move fatfs volume/partition lookup table to ROM.Damien George
2014-03-11Initial checkin with STM HALDave Hylands
This compiles and links, but hasn't been tested on a board yet and even if it was run, it doesn't currently do anything.