Jeff Epler
5a0e9945e6
storage: Correct when we check for USB mounts
...
Closes #4417
2021-03-22 11:45:54 -05:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Scott Shawcroft
b76d37f24a
Merge pull request #3223 from dhalbert/unmount-before-reset
...
storage.erase_filesystem(): disconnect from USB and wait 1 second before resetting
2020-07-29 10:47:24 -07:00
Dan Halbert
65c22aa434
storage.erase_filesystem(): unmount and wait 1 second before resetting
2020-07-28 17:52:56 -04:00
Diego Elio Pettenò
34b4993d63
Add license to some obvious files.
2020-07-06 19:16:25 +01:00
Gadi Rotenberg
07708f1518
Added fix to allow remount when usb enabled but msc is ejected
2020-02-12 09:57:58 +02:00
Scott Shawcroft
1a0596a2fb
Add option to disable the concurrent write protection
...
This allows writing to the filesystem from the host computer and
CircuitPython by increasing the risk of filesystem corruption.
2019-02-21 10:45:41 -08:00
Scott Shawcroft
9d91111b1b
Move atmel-samd to tinyusb and support nRF flash.
...
This started while adding USB MIDI support (and descriptor support is
in this change.) When seeing that I'd have to implement the MIDI class
logic twice, once for atmel-samd and once for nrf, I decided to refactor
the USB stack so its shared across ports. This has led to a number of
changes that remove items from the ports folder and move them into
supervisor.
Furthermore, we had external SPI flash support for nrf pending so I
factored out the connection between the usb stack and the flash API as
well. This PR also includes the QSPI support for nRF.
2018-11-08 17:25:30 -08:00
Dan Halbert
dbf1a2f7d5
allow '/' to be mounted on '/' from Python code
2018-06-21 09:24:40 -04:00
Dan Halbert
f152889938
do not permit mounting over a directory or file with the same name as the mount point
2018-06-15 13:53:30 -04:00
Jeff Epler
c08f5a3a00
Add storage.getmount to retrieve the mount object associated with a path
2018-03-27 21:28:18 -05:00
Jeff Epler
968763aa1d
factor out storage_object_from_path
2018-03-27 21:28:18 -05:00
Scott Shawcroft
d6a24afd71
Change vfs mount ordering such that the root is always last in the
...
linked list. Its also the only one statically allocated and made
available over USB.
2017-06-28 14:46:49 -07:00
Scott Shawcroft
778e975936
Split uos module into os and storage.
...
os is a subset of CPython's os. storage contains additional
file system mounting functionality based on UNIX's mount
management.
Fixes #140
2017-06-27 15:17:30 -07:00