Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 3c4e026

Browse files
committed
esp32: Enable "btree" database module.
1 parent 2d775fb commit 3c4e026

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

esp32/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ QSTR_DEFS = qstrdefsport.h
66
MICROPY_PY_USSL = 0
77
MICROPY_SSL_AXTLS = 0
88
MICROPY_FATFS = 1
9-
MICROPY_PY_BTREE = 0
9+
MICROPY_PY_BTREE = 1
1010

1111
#FROZEN_DIR = scripts
1212
FROZEN_MPY_DIR = modules

esp32/mpconfigport.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#define MICROPY_PY_BUILTINS_COMPLEX (1)
4242
#define MICROPY_CPYTHON_COMPAT (1)
4343
#define MICROPY_STREAMS_NON_BLOCK (1)
44-
#define MICROPY_STREAMS_POSIX_API (0)
44+
#define MICROPY_STREAMS_POSIX_API (1)
4545
#define MICROPY_MODULE_BUILTIN_INIT (1)
4646
#define MICROPY_MODULE_WEAK_LINKS (1)
4747
#define MICROPY_MODULE_FROZEN_STR (0)
@@ -139,7 +139,6 @@
139139
#define MICROPY_SSL_MBEDTLS (1)
140140
#define MICROPY_PY_WEBSOCKET (0)
141141
#define MICROPY_PY_FRAMEBUF (1)
142-
#define MICROPY_PY_BTREE (0)
143142

144143
// fatfs configuration
145144
#define MICROPY_FATFS_ENABLE_LFN (1)
@@ -238,6 +237,8 @@ extern const struct _mp_obj_module_t mp_module_network;
238237
typedef int32_t mp_int_t; // must be pointer size
239238
typedef uint32_t mp_uint_t; // must be pointer size
240239
typedef long mp_off_t;
240+
// ssize_t, off_t as required by POSIX-signatured functions in stream.h
241+
#include <sys/types.h>
241242

242243
// board specifics
243244

0 commit comments

Comments
 (0)