aboutsummaryrefslogtreecommitdiff
path: root/stmhal/modnwcc3k.c
AgeCommit message (Collapse)Author
2016-05-10stmhal: For network drivers, convert to use MP_Exxx errno symbols.Damien George
2016-05-10stmhal: Convert to use internal errno symbols; enable uerrno module.Damien George
2016-01-11py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.Damien George
The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t.
2015-10-11py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.Paul Sokolovsky
2015-05-04lib: Move some common mod_network_* functions to lib/netutils.Josef Gajdusek
2015-04-18stmhal: Remove std.h. It's not needed anymore.Damien George
2015-01-22stmhal: Make CC3K object static, so it's only registered once as NIC.Damien George
2015-01-01stmhal: Prefix includes with py/; remove need for -I../py.Damien George
2014-12-04stmhal: Overhaul network drivers; has generic network protocol in C.Damien George
This patch overhauls the network driver interface. A generic NIC must provide a set of C-level functions to implement low-level socket control (eg socket, bind, connect, send, recv). Doing this, the network and usocket modules can then use such a NIC to implement proper socket control at the Python level. This patch also updates the CC3K and WIZNET5K drivers to conform to the new interface, and fixes some bugs in the drivers. They now work reasonably well.