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
This commit is contained in:
parent
b0fd4372c4
commit
4326e08802
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user