summaryrefslogtreecommitdiff
path: root/atmel-samd/storage.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@chickadee.tech>2016-10-05 11:07:29 -0700
committerScott Shawcroft <scott@chickadee.tech>2016-10-05 11:07:29 -0700
commit7e08347d5c4dc0d250eb473f08469cef702fe4f9 (patch)
tree31cb5afea2fce794518927a94f45bd19e256802c /atmel-samd/storage.h
parent1fa4c20c27264e55b3442fe49bee2078a4516fa6 (diff)
atmel-samd: Support composite CDC and mass storage USB device.
Be careful to not use the flash file system while using mass storage because both pieces of code attempting to change the fs can corrupt it.
Diffstat (limited to 'atmel-samd/storage.h')
-rw-r--r--atmel-samd/storage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/atmel-samd/storage.h b/atmel-samd/storage.h
index 9c1105244..8b814c34e 100644
--- a/atmel-samd/storage.h
+++ b/atmel-samd/storage.h
@@ -23,6 +23,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#ifndef __MICROPY_INCLUDED_ATMEL_SAMD_STORAGE_H__
+#define __MICROPY_INCLUDED_ATMEL_SAMD_STORAGE_H__
+
+#include "mpconfigport.h"
#define FLASH_BLOCK_SIZE (512)
@@ -45,3 +49,5 @@ extern const struct _mp_obj_type_t flash_type;
struct _fs_user_mount_t;
void flash_init_vfs(struct _fs_user_mount_t *vfs);
+
+#endif // __MICROPY_INCLUDED_ATMEL_SAMD_STORAGE_H__