8000 nrf: Enable binascii, hashlib modules · godlygeek/circuitpython@471fdae · GitHub
[go: up one dir, main page]

Skip to content

Commit 471fdae

Browse files
committed
nrf: Enable binascii, hashlib modules
These modules would be very handy to have in order to implement a more robust replacement for ampy. It costs around 2KiB of text and no data or bss. 'binascii' has base64 encoding, which can be used to create a fully 8-bit-clean transport above the slightly cooked serial connection of these boards. 'hashlib' is a bit less critical, but I have found it handy to be able to robustly checksum remote files. I see this as only being useful on ports which don't have USB block device support, so atmel-samd doesn't need it. These modules are already on esp8266 so I think nrf52 seems like the only one that needs it.
1 parent e4ec672 commit 471fdae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/nrf/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@
112112
#define MICROPY_PY_IO (0)
113113
#define MICROPY_PY_IO_FILEIO (0)
114114
#define MICROPY_PY_UERRNO (0)
115-
#define MICROPY_PY_UBINASCII (0)
115+
#define MICROPY_PY_UBINASCII (1)
116116
#define MICROPY_PY_URANDOM (0)
117117
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (0)
118118
#define MICROPY_PY_UCTYPES (0)
119119
#define MICROPY_PY_UZLIB (0)
120120
#define MICROPY_PY_UJSON (0)
121121
#define MICROPY_PY_URE (0)
122122
#define MICROPY_PY_UHEAPQ (0)
123-
#define MICROPY_PY_UHASHLIB (0)
123+
#define MICROPY_PY_UHASHLIB (1)
124124
#define MICROPY_PY_UTIME_MP_HAL (1)
125125
#define MICROPY_PY_STRUCT (0)
126126
#define MICROPY_PY_MACHINE (1)

0 commit comments

Comments
 (0)
0