- 21 Sep, 2016 1 commit
-
-
Damien George authored
One can instead lookup __name__ in the modules dict to get the value.
-
- 18 Jun, 2016 1 commit
-
-
Paul Sokolovsky authored
It's now used for more than just stream protocol (e.g. pin protocol), so don't use false names.
-
- 21 Feb, 2016 1 commit
-
-
danicampora authored
-
- 11 Jan, 2016 1 commit
-
-
Damien George authored
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.
-
- 31 Oct, 2015 1 commit
-
-
Damien George authored
py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
-
- 22 Oct, 2015 1 commit
-
-
danicampora authored
-
- 21 Oct, 2015 3 commits
-
-
danicampora authored
-
danicampora authored
-
danicampora authored
-
- 29 Jul, 2015 2 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
-
- 17 Jul, 2015 1 commit
-
-
Daniel Campora authored
Simplelink's socket send checks for the size of the packet and sends it in chunks if the size is too large.
-
- 16 Jul, 2015 1 commit
-
-
Daniel Campora authored
-
- 10 Jul, 2015 1 commit
-
-
Daniel Campora authored
-
- 07 Jul, 2015 1 commit
-
-
Daniel Campora authored
-
- 02 Jul, 2015 3 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
Stream methods were added to normal sockets as in the unix port.
-
Daniel Campora authored
-
- 29 Jun, 2015 1 commit
-
-
Daniel Campora authored
-
- 24 May, 2015 2 commits
-
-
Daniel Campora authored
That layer is nice, but the CC3200 doesn't need it and getting rid of it saves ~200 bytes, which are more than welcome.
-
Daniel Campora authored
This is needed to avoid half-open connections.
-
- 22 May, 2015 1 commit
-
-
Daniel Campora authored
-
- 12 May, 2015 1 commit
-
-
Damien George authored
mp_obj_get_int_truncated will raise a TypeError if the argument is not an integral type. Use mp_obj_int_get_truncated only when you know the argument is a small or big int.
-
- 04 May, 2015 1 commit
-
-
Josef Gajdusek authored
-
- 28 Apr, 2015 1 commit
-
-
Daniel Campora authored
This makes sense since only WLAN is supported here.
-
- 18 Apr, 2015 1 commit
-
-
Damien George authored
-
- 13 Apr, 2015 1 commit
-
-
Daniel Campora authored
-
- 21 Feb, 2015 1 commit
-
-
Damien George authored
This is how it should be, so one knows exactly where the includes are coming from.
-
- 06 Feb, 2015 1 commit
-
-
danicampora authored
The port currently implements support for GPIO, RTC, ExtInt and the WiFi subsystem. A small file system is available in the serial flash. A bootloader which makes OTA updates possible, is also part of this initial implementation.
-
- 28 Jan, 2015 1 commit
-
-
Damien George authored
This cleans up vstr so that it's a pure "variable buffer", and the user can decide whether they need to add a terminating null byte. In most places where vstr is used, the vstr did not need to be null terminated and so this patch saves code size, a tiny bit of RAM, and makes vstr usage more efficient. When null termination is needed it must be done explicitly using vstr_null_terminate.
-
- 24 Jan, 2015 1 commit
-
-
Damien George authored
accept might raise an exception, in which case the new socket is not fully created. It has a finaliser so will run close() method when GC'd. Before this patch close would try to close an invalid socket. Now fixed. setsockopt took address of stack value which became out of scope. Now fixed.
-
- 22 Jan, 2015 1 commit
-
-
Damien George authored
It needs to be scanned by GC. Thanks to Daniel Campora.
-
- 21 Jan, 2015 1 commit
-
-
Damien George authored
With this patch str/bytes construction is streamlined. Always use a vstr to build a str/bytes object. If the size is known beforehand then use vstr_init_len to allocate only required memory. Otherwise use vstr_init and the vstr will grow as needed. Then use mp_obj_new_str_from_vstr to create a str/bytes object using the vstr memory. Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes on unix x64.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 07 Dec, 2014 1 commit
-
-
Damien George authored
Remove include of stm32f4xx_hal.h, replace by include of MICROPY_HAL_H where needed, and make it compile without float support. This makes these 3 modules much more generic and usable by other ports.
-
- 05 Dec, 2014 1 commit
-
-
Damien George authored
mp_obj_int_get_truncated is used as a "fast path" int accessor that doesn't check for overflow and returns the int truncated to the machine word size, ie mp_int_t. Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word sized values. Addresses issues #779 and #998.
-
- 04 Dec, 2014 1 commit
-
-
Damien George authored
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.
-
- 29 Nov, 2014 1 commit
-
-
Damien George authored
This is just a clean-up of the code. Generated code is exactly the same.
-
- 31 Oct, 2014 1 commit
-
-
Damien George authored
-
- 30 Sep, 2014 1 commit
-
-
Damien George authored
As per issue #876, the network module is used to configure NICs (hardware modules) and configure routing. The usocket module is supposed to implement the normal Python socket module and selects the underlying NIC using routing logic. Right now the routing logic is brain dead: first-initialised, first-used. And the routing table is just a list of registered NICs. cc3k and wiznet5k work, but not at the same time due to C name clashes (to be fixed). Note that the usocket module has alias socket, so that one can import socket and it works as normal. But you can also override socket with your own module, using usocket at the backend.
-