summaryrefslogtreecommitdiff
path: root/cc3200/mpconfigport.h
diff options
context:
space:
mode:
authorAlex March <alex.march.dev@gmail.com>2015-11-06 23:48:49 +0000
committerDamien George <damien.p.george@gmail.com>2015-11-08 22:21:17 +0000
commitc27e5c4b0bcdae50bdeb29a9c9b8adb431c343b3 (patch)
tree628248b424b3c34980610c6709b6ea48955beaff /cc3200/mpconfigport.h
parent748509a93cec2ef0ad25e4c7a1e478e0703c496b (diff)
cc3200: FatFS configuration moved to the library folder.
Port specific settinigs defined in mpconfigport. FreeRTOS and semphr headers added to define SemaphoreHandle_t for the SYNC_T.
Diffstat (limited to 'cc3200/mpconfigport.h')
-rw-r--r--cc3200/mpconfigport.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/cc3200/mpconfigport.h b/cc3200/mpconfigport.h
index 8e6d1742c..28c29cf35 100644
--- a/cc3200/mpconfigport.h
+++ b/cc3200/mpconfigport.h
@@ -30,6 +30,11 @@
#include <stdint.h>
+#ifndef BOOTLOADER
+#include "FreeRTOS.h"
+#include "semphr.h"
+#endif
+
// options to control how Micro Python is built
#define MICROPY_ALLOC_PATH_MAX (128)
@@ -56,14 +61,16 @@
#endif
#define MICROPY_QSTR_BYTES_IN_HASH (1)
-/* Enable FatFS LFNs
- 0: Disable LFN feature.
- 1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.
- 2: Enable LFN with dynamic working buffer on the STACK.
- 3: Enable LFN with dynamic working buffer on the HEAP.
-*/
-#define MICROPY_ENABLE_LFN (2)
-#define MICROPY_LFN_CODE_PAGE (437) // 1=SFN/ANSI 437=LFN/U.S.(OEM)
+// fatfs configuration used in ffconf.h
+#define MICROPY_FATFS_ENABLE_LFN (2)
+#define MICROPY_FATFS_MAX_LFN (MICROPY_ALLOC_PATH_MAX)
+#define MICROPY_FATFS_LFN_CODE_PAGE (437) // 1=SFN/ANSI 437=LFN/U.S.(OEM)
+#define MICROPY_FATFS_RPATH (2)
+#define MICROPY_FATFS_VOLUMES (2)
+#define MICROPY_FATFS_REENTRANT (1)
+#define MICROPY_FATFS_TIMEOUT (2500)
+#define MICROPY_FATFS_SYNC_T SemaphoreHandle_t
+
#define MICROPY_STREAMS_NON_BLOCK (1)
#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)