]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/include/ff_devices.h
Add the Labs projects provided in the V10.2.1_191129 zip file.
[freertos] / FreeRTOS-Labs / Source / FreeRTOS-Plus-FAT / include / ff_devices.h
diff --git a/FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/include/ff_devices.h b/FreeRTOS-Labs/Source/FreeRTOS-Plus-FAT/include/ff_devices.h
new file mode 100644 (file)
index 0000000..33ff8ca
--- /dev/null
@@ -0,0 +1,64 @@
+/*\r
+ * FreeRTOS+FAT build 191128 - Note:  FreeRTOS+FAT is still in the lab!\r
+ * Copyright (C) 2018 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
+ * Authors include James Walmsley, Hein Tibosch and Richard Barry\r
+ *\r
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
+ * this software and associated documentation files (the "Software"), to deal in\r
+ * the Software without restriction, including without limitation the rights to\r
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
+ * the Software, and to permit persons to whom the Software is furnished to do so,\r
+ * subject to the following conditions:\r
+ *\r
+ * The above copyright notice and this permission notice shall be included in all\r
+ * copies or substantial portions of the Software.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+ *\r
+ * https://www.FreeRTOS.org\r
+ *\r
+ */\r
+\r
+/**\r
+ *     @file           ff_devices.h\r
+ **/\r
+#ifndef FF_DEVICES_H\r
+#define FF_DEVICES_H\r
+\r
+#ifndef PLUS_FAT_H\r
+       #error this header will be included from "plusfat.h"\r
+#endif\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+#define FF_DEV_NO_DEV          0\r
+#define FF_DEV_CHAR_DEV                1\r
+#define FF_DEV_BLOCK_DEV       2\r
+\r
+BaseType_t xCheckDevicePath( const char *pcPath );\r
+\r
+int FF_Device_Seek( FF_FILE *pxStream, long lOffset, int iWhence );\r
+\r
+BaseType_t FF_Device_Open( const char *pcPath, FF_FILE * pxStream );\r
+\r
+void FF_Device_Close( FF_FILE * pxStream );\r
+\r
+size_t FF_Device_Read( void *pvBuf, size_t lSize, size_t lCount, FF_FILE * pxStream );\r
+\r
+size_t FF_Device_Write( const void *pvBuf, size_t lSize, size_t lCount, FF_FILE * pxStream );\r
+\r
+\r
+int FF_Device_GetDirEnt( const char *pcPath, FF_DirEnt_t *pxDirEnt );\r
+\r
+#ifdef __cplusplus\r
+} /* extern "C" */\r
+#endif\r
+\r
+#endif /* FF_DEVICES_H */\r