samd51: Support more uerrno errno values
Use the default MICROPY_PY_UERRNO_LIST to give libraries access to all the errno values.
This commit is contained in:
parent
c5aa2e9300
commit
704d0c606b
@ -163,6 +163,18 @@ typedef long mp_off_t;
|
|||||||
#define MICROPY_PY_IO (0)
|
#define MICROPY_PY_IO (0)
|
||||||
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0)
|
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0)
|
||||||
#define MICROPY_PY_SYS_EXC_INFO (0)
|
#define MICROPY_PY_SYS_EXC_INFO (0)
|
||||||
|
#define MICROPY_PY_UERRNO_LIST \
|
||||||
|
X(EPERM) \
|
||||||
|
X(ENOENT) \
|
||||||
|
X(EIO) \
|
||||||
|
X(EAGAIN) \
|
||||||
|
X(ENOMEM) \
|
||||||
|
X(EACCES) \
|
||||||
|
X(EEXIST) \
|
||||||
|
X(ENODEV) \
|
||||||
|
X(EISDIR) \
|
||||||
|
X(EINVAL) \
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SAMD51
|
#ifdef SAMD51
|
||||||
@ -179,6 +191,7 @@ typedef long mp_off_t;
|
|||||||
#define MICROPY_PY_IO (1)
|
#define MICROPY_PY_IO (1)
|
||||||
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
|
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
|
||||||
#define MICROPY_PY_SYS_EXC_INFO (1)
|
#define MICROPY_PY_SYS_EXC_INFO (1)
|
||||||
|
// MICROPY_PY_UERRNO_LIST - Use the default
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LONGINT_IMPL_NONE
|
#ifdef LONGINT_IMPL_NONE
|
||||||
@ -396,18 +409,6 @@ extern const struct _mp_obj_module_t wiznet_module;
|
|||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_uheap),(mp_obj_t)&uheap_module }, \
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_uheap),(mp_obj_t)&uheap_module }, \
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_ustack),(mp_obj_t)&ustack_module }
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_ustack),(mp_obj_t)&ustack_module }
|
||||||
|
|
||||||
#define MICROPY_PY_UERRNO_LIST \
|
|
||||||
X(EPERM) \
|
|
||||||
X(ENOENT) \
|
|
||||||
X(EIO) \
|
|
||||||
X(EAGAIN) \
|
|
||||||
X(ENOMEM) \
|
|
||||||
X(EACCES) \
|
|
||||||
X(EEXIST) \
|
|
||||||
X(ENODEV) \
|
|
||||||
X(EISDIR) \
|
|
||||||
X(EINVAL) \
|
|
||||||
|
|
||||||
// We need to provide a declaration/definition of alloca()
|
// We need to provide a declaration/definition of alloca()
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user