From 4aeef100f6d78313e1cc58fb6ef6d6b0da5c879d Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 26 Oct 2017 16:53:25 -0700 Subject: atmel-samd: More USB polish * Introduce a python script to generate the USB descriptor instead of a bunch of C macros. In the future, we can use this dynamically in CircuitPython. * Add support for detecting read-only mass storage mounts. Fixes #377 --- supervisor/filesystem.h | 2 +- supervisor/stub/filesystem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'supervisor') diff --git a/supervisor/filesystem.h b/supervisor/filesystem.h index fd2bf0364..cfd1ed027 100644 --- a/supervisor/filesystem.h +++ b/supervisor/filesystem.h @@ -31,7 +31,7 @@ void filesystem_init(bool create_allowed); void filesystem_flush(void); -void filesystem_default_writeable(bool writeable); +void filesystem_writable_by_python(bool writable); bool filesystem_present(void); #endif // MICROPY_INCLUDED_SUPERVISOR_FILESYSTEM_H diff --git a/supervisor/stub/filesystem.c b/supervisor/stub/filesystem.c index 462ee62a4..12fe9fb10 100644 --- a/supervisor/stub/filesystem.c +++ b/supervisor/stub/filesystem.c @@ -32,7 +32,7 @@ void filesystem_init(void) { void filesystem_flush(void) { } -void filesystem_default_writeable(bool writeable) { +void filesystem_writable_by_python(bool writable) { } bool filesystem_present(void) { -- cgit v1.2.3