summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2022-05-17 12:02:23 +0200
committeriabdalkader <i.abdalkader@gmail.com>2022-05-25 16:05:50 +0200
commit4bcffbd1c6fbcf3de02d4d4a07e71ff0ca48db67 (patch)
treef08124fa3dd40078b13158d7281aedb0e5cbd5fb
parentd037e759910c5309759026d2ef7bded11df9ebe1 (diff)
rp2/mpconfigport.h: Allow boards to override internal errno config.
-rw-r--r--ports/rp2/mpconfigport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h
index aafa37462..63faf36ea 100644
--- a/ports/rp2/mpconfigport.h
+++ b/ports/rp2/mpconfigport.h
@@ -66,9 +66,11 @@
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
-#define MICROPY_USE_INTERNAL_ERRNO (1)
#define MICROPY_SCHEDULER_DEPTH (8)
#define MICROPY_SCHEDULER_STATIC_NODES (1)
+#ifndef MICROPY_USE_INTERNAL_ERRNO
+#define MICROPY_USE_INTERNAL_ERRNO (1)
+#endif
// Fine control over Python builtins, classes, modules, etc
#define MICROPY_PY_BUILTINS_HELP_TEXT rp2_help_text