summaryrefslogtreecommitdiff
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-08-19 10:23:14 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-08-23 06:09:46 +0300
commit4f9ebade608e805f0f35e81cd0372d3afdafb900 (patch)
tree53e6f4ee89a580e826d449ca3207797b9455ca01 /unix/mpconfigport.h
parent72b115cbaaba05ce01af45686eb485a45903017a (diff)
modtermios: Add "termios" unix module, subset of CPython's.
Also provides setraw() function from "tty" module (which in CPython is implemented in Python). The idea here is that 95% of "termios" module usage is to set raw mode to allow access to normal serial devices. Then, instead of exporting gazillion termios symbols, it's better to implement it in C, and export minimal number of symbols (mostly baud rates and drain values).
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 254a83a09..95fdb7bfb 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -70,6 +70,7 @@
extern const struct _mp_obj_module_t mp_module_os;
extern const struct _mp_obj_module_t mp_module_time;
+extern const struct _mp_obj_module_t mp_module_termios;
extern const struct _mp_obj_module_t mp_module_socket;
extern const struct _mp_obj_module_t mp_module_ffi;
@@ -89,6 +90,7 @@ extern const struct _mp_obj_module_t mp_module_ffi;
MICROPY_PY_TIME_DEF \
{ MP_OBJ_NEW_QSTR(MP_QSTR_microsocket), (mp_obj_t)&mp_module_socket }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR__os), (mp_obj_t)&mp_module_os }, \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_termios), (mp_obj_t)&mp_module_termios }, \
// type definitions for the specific machine