From 53f5bb05a9cdf59cc2deaf216c25c0c275e6dce7 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 23 Feb 2021 09:49:12 +1100 Subject: [PATCH] rp2,stm32: Enable MICROPY_PY_UBINASCII_CRC32 to get ubinascii.crc32(). These ports already have uzlib enabled so this additional ubinascii.crc32 function only costs about 90 bytes of flash. Signed-off-by: Damien George --- ports/rp2/mpconfigport.h | 1 + ports/stm32/mpconfigport.h | 1 + 2 files changed, 2 insertions(+) diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h index 9ba381030b..b3214acfc2 100644 --- a/ports/rp2/mpconfigport.h +++ b/ports/rp2/mpconfigport.h @@ -102,6 +102,7 @@ #define MICROPY_PY_URE_SUB (1) #define MICROPY_PY_UHASHLIB (1) #define MICROPY_PY_UBINASCII (1) +#define MICROPY_PY_UBINASCII_CRC32 (1) #define MICROPY_PY_UTIME_MP_HAL (1) #define MICROPY_PY_URANDOM (1) #define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) diff --git a/ports/stm32/mpconfigport.h b/ports/stm32/mpconfigport.h index 5998cd9085..174ef22f24 100644 --- a/ports/stm32/mpconfigport.h +++ b/ports/stm32/mpconfigport.h @@ -165,6 +165,7 @@ #define MICROPY_PY_UCRYPTOLIB (MICROPY_PY_USSL) #ifndef MICROPY_PY_UBINASCII #define MICROPY_PY_UBINASCII (1) +#define MICROPY_PY_UBINASCII_CRC32 (1) #endif #ifndef MICROPY_PY_UOS #define MICROPY_PY_UOS (1)