Skip to content

Commit

Permalink
bricks/virtualhub: add MICROPY_PY_UERRNO_LIST
Browse files Browse the repository at this point in the history
This add MICROPY_PY_UERRNO_LIST to the config file based on the same
from the stm32 config.
  • Loading branch information
dlech committed Feb 21, 2022
1 parent 13c44b7 commit 20fa0ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bricks/virtualhub/mpconfigvariant.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)
#define MICROPY_PY_BUILTINS_SLICE_INDICES (1)

// REVISIT: This list currently matches the stm32 builds. We may consider
// adding more like the ev3dev build.
#define MICROPY_PY_UERRNO_LIST \
X(EPERM) \
X(EIO) \
X(EBUSY) \
X(ENODEV) \
X(EINVAL) \
X(EOPNOTSUPP) \
X(EAGAIN) \
X(ETIMEDOUT) \
X(ECANCELED) \

#define MICROPY_MPHALPORT_H "mpvarianthal.h"
#define MICROPY_VARIANT_QSTR_DEFS_H "../pybricks_qstrdefs.h"

Expand Down

0 comments on commit 20fa0ca

Please sign in to comment.