diff options
| author | Matt Wozniski <mwozniski@bloomberg.net> | 2018-06-01 14:01:09 -0400 |
|---|---|---|
| committer | Matt Wozniski <mwozniski@bloomberg.net> | 2018-06-01 19:04:04 -0400 |
| commit | e798b67ca2be756c07558d18887698f2c9c06c2b (patch) | |
| tree | e2ec83c4e0637718cd7563453334cdd6bface379 | |
| parent | 1c35dbfb5d43ed94108475e8cd17bcb81cda646f (diff) | |
Begin a custom list of errnos for atmel-samd
The uerrno module was written to allow boards to customize the list of
errnos they can raise. Start by copying the default list.
| -rw-r--r-- | ports/atmel-samd/mpconfigport.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/atmel-samd/mpconfigport.h b/ports/atmel-samd/mpconfigport.h index cd05927b0..b338fb6bb 100644 --- a/ports/atmel-samd/mpconfigport.h +++ b/ports/atmel-samd/mpconfigport.h @@ -290,6 +290,30 @@ extern const struct _mp_obj_module_t usb_hid_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 } +#define MICROPY_PY_UERRNO_LIST \ + X(EPERM) \ + X(ENOENT) \ + X(EIO) \ + X(EBADF) \ + X(EAGAIN) \ + X(ENOMEM) \ + X(EACCES) \ + X(EEXIST) \ + X(ENODEV) \ + X(EISDIR) \ + X(EINVAL) \ + X(EOPNOTSUPP) \ + X(EADDRINUSE) \ + X(ECONNABORTED) \ + X(ECONNRESET) \ + X(ENOBUFS) \ + X(ENOTCONN) \ + X(ETIMEDOUT) \ + X(ECONNREFUSED) \ + X(EHOSTUNREACH) \ + X(EALREADY) \ + X(EINPROGRESS) \ + // We need to provide a declaration/definition of alloca() #include <alloca.h> |
