summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modtermios.c
Commit message (Collapse)AuthorAge
* all: Use the name MicroPython consistently in commentsAlexander Steffen2017-07-31
| | | | | There were several different spellings of MicroPython present in comments, when there should be only one.
* unix: Use mp_obj_str_get_str instead of mp_obj_str_get_data.Damien George2017-03-25
|
* unix: Use common RAISE_ERRNO macro from mphalport.h.Damien George2016-10-07
|
* unix: Use mp_raise_OSError helper function.Damien George2016-10-07
|
* all: Remove 'name' member from mp_obj_module_t struct.Damien George2016-09-22
| | | | One can instead lookup __name__ in the modules dict to get the value.
* unix/modtermios: DJGPP appears to have unicode-capable cc_t type.Paul Sokolovsky2015-12-09
| | | | | At least it's defined as "unsiged". We don't try to support unicode still, but at least apply workaround for DJGPP build.
* unix/modtermios: Provide B57600 and B115200 constants only if defined.Paul Sokolovsky2015-12-09
|
* py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR.Damien George2015-11-29
| | | | | | | | | This allows the mp_obj_t type to be configured to something other than a pointer-sized primitive type. This patch also includes additional changes to allow the code to compile when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of mp_uint_t, and various casts.
* py: Add MP_ROM_* macros and mp_rom_* types and use them.Damien George2015-11-29
|
* unix/modtermios: tcsetattr: If 0 passed for "when" param, treat as TCSANOW.Paul Sokolovsky2015-10-13
| | | | | | As we dn't export constants for TCSANOW, etc., zero makes a good "don't care" param, and now it will work also under Android Bionic and any other libc.
* unix: Prefix includes with py/; remove need for -I../py.Damien George2015-01-01
|
* Use MP_DEFINE_CONST_DICT macro to define module dicts.Damien George2014-11-29
| | | | | This is just a clean-up of the code. Generated code is exactly the same.
* py: Change all uint to mp_uint_t in obj.h.Damien George2014-08-30
| | | | Part of code cleanup, working towards resolving issue #50.
* unix, modtermios: Make it properly configurable; fix spelling mistake.Damien George2014-08-24
|
* modtermios: Add "termios" unix module, subset of CPython's.Paul Sokolovsky2014-08-23
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).