summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2019-02-12 22:51:46 +0100
committerNoralf Trønnes <noralf@tronnes.org>2019-02-14 15:42:46 +0100
commit77ff17cc8d2dc8fc550d41e686a0c42bdefca72c (patch)
tree1ce96e073da98af87d8311587a866e362f700335
parent9cdffe5e8c18f67e9c2318ef1d92f01f091488a7 (diff)
atmel-samd: Enable extra ure functionality on Express boards
This enables ure.sub(), Match.span/start/end() and the ure.Compile.search/match() pos/endpos arguments.
-rw-r--r--ports/atmel-samd/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/atmel-samd/mpconfigport.h b/ports/atmel-samd/mpconfigport.h
index f08399219..8fdf916c3 100644
--- a/ports/atmel-samd/mpconfigport.h
+++ b/ports/atmel-samd/mpconfigport.h
@@ -257,6 +257,9 @@ extern const struct _mp_obj_module_t pixelbuf_module;
#define MICROPY_PY_UERRNO (1)
#define MICROPY_PY_UERRNO_ERRORCODE (0)
#define MICROPY_PY_URE (1)
+ #define MICROPY_PY_URE_MATCH_GROUPS (1)
+ #define MICROPY_PY_URE_MATCH_SPAN_START_END (1)
+ #define MICROPY_PY_URE_SUB (1)
#ifndef MICROPY_PY_FRAMEBUF
#define MICROPY_PY_FRAMEBUF (0)
#endif