Commit 4326e088 authored by Glenn Ruben Bakke's avatar Glenn Ruben Bakke Committed by Damien George

nrf/boards: Enable needed features for FAT/LFS1/LFS2.

Enable the following features for all boards except
nrf51 boards with SoftDevice present:

- MICROPY_VFS
- MICROPY_PY_NRF
- MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
parent b0fd4372
......@@ -27,11 +27,19 @@
// Board overridable build configuration.
#ifndef MICROPY_MBFS
#if defined(BLUETOOTH_SD)
#define MICROPY_MBFS (1)
#else
#define MICROPY_MBFS (0)
#endif
#endif
#ifndef MICROPY_VFS
#if defined(BLUETOOTH_SD)
#define MICROPY_VFS (0)
#else
#define MICROPY_VFS (1)
#endif
#endif
// Board overridable feature configuration.
......@@ -59,3 +67,23 @@
#define MICROPY_PY_UBINASCII (1)
#endif
#endif
// Board overridable port specific feature configuration.
#ifndef MICROPY_PY_NRF
#if defined(BLUETOOTH_SD)
#define MICROPY_PY_NRF (0)
#else
#define MICROPY_PY_NRF (1)
#endif
#endif
// Board overridable hardware configuration.
#ifndef MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
#if defined(BLUETOOTH_SD)
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#else
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1)
#endif
#endif
......@@ -27,11 +27,11 @@
// Board overridable build configuration.
#ifndef MICROPY_MBFS
#define MICROPY_MBFS (1)
#define MICROPY_MBFS (0)
#endif
#ifndef MICROPY_VFS
#define MICROPY_VFS (0)
#define MICROPY_VFS (1)
#endif
// Board overridable feature configuration.
......@@ -47,3 +47,15 @@
#ifndef MICROPY_PY_UBINASCII
#define MICROPY_PY_UBINASCII (1)
#endif
// Board overridable port specific feature configuration.
#ifndef MICROPY_PY_NRF
#define MICROPY_PY_NRF (1)
#endif
// Board overridable hardware configuration.
#ifndef MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1)
#endif
......@@ -27,11 +27,11 @@
// Board overridable build configuration.
#ifndef MICROPY_MBFS
#define MICROPY_MBFS (1)
#define MICROPY_MBFS (0)
#endif
#ifndef MICROPY_VFS
#define MICROPY_VFS (0)
#define MICROPY_VFS (1)
#endif
// Board overridable feature configuration.
......@@ -47,3 +47,15 @@
#ifndef MICROPY_PY_UBINASCII
#define MICROPY_PY_UBINASCII (1)
#endif
// Board overridable port specific feature configuration.
#ifndef MICROPY_PY_NRF
#define MICROPY_PY_NRF (1)
#endif
// Board overridable hardware configuration.
#ifndef MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1)
#endif
......@@ -27,11 +27,11 @@
// Board overridable build configuration.
#ifndef MICROPY_MBFS
#define MICROPY_MBFS (1)
#define MICROPY_MBFS (0)
#endif
#ifndef MICROPY_VFS
#define MICROPY_VFS (0)
#define MICROPY_VFS (1)
#endif
// Board overridable feature configuration.
......@@ -47,3 +47,15 @@
#ifndef MICROPY_PY_UBINASCII
#define MICROPY_PY_UBINASCII (1)
#endif
// Board overridable port specific feature configuration.
#ifndef MICROPY_PY_NRF
#define MICROPY_PY_NRF (1)
#endif
// Board overridable hardware configuration.
#ifndef MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1)
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment