mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[MPY/MOD/ULAB] Added N100 compatibility
N100: - doesn't have Scipy; - uses function pointers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user