[MPY/MOD/ULAB] Added N100 compatibility

N100:
- doesn't have Scipy;
- uses function pointers
This commit is contained in:
ArtichOwO
2021-06-23 23:08:46 +02:00
parent b0befbdbc5
commit 837fcd9bcc

View File

@@ -35,7 +35,11 @@
// Determines, whether scipy is defined in ulab. The sub-modules and functions
// of scipy have to be defined separately
#ifndef ULAB_HAS_SCIPY
#if defined(DEVICE_N0100)
#define ULAB_HAS_SCIPY (0)
#else
#define ULAB_HAS_SCIPY (1)
#endif
#endif
// The maximum number of dimensions the firmware should be able to support
@@ -82,8 +86,12 @@
// 2 kB in the two-dimensional case, and around 4 kB in the four-dimensional case.
#ifndef NDARRAY_BINARY_USES_FUN_POINTER
#if defined(DEVICE_N0100)
#define NDARRAY_BINARY_USES_FUN_POINTER (1)
#else
#define NDARRAY_BINARY_USES_FUN_POINTER (0)
#endif
#endif
#ifndef NDARRAY_HAS_BINARY_OP_ADD
#define NDARRAY_HAS_BINARY_OP_ADD (1)