- 21 Jul, 2015 3 commits
-
-
Damien George authored
-
Damien George authored
This allows the DAC to use a user-specified Timer for the triggering (instead of the default Timer(6)), while still supporting original behaviour. Addresses issues #1129 and #1388.
-
Damien George authored
-
- 06 Jun, 2015 1 commit
-
-
Delio Brignoli authored
-
- 20 Jul, 2015 11 commits
-
-
blmorris authored
This prevented pin_find_af* functions from being able to find some of the alternate functions in the pin struct
-
Damien George authored
Also adds #if guards to allow uPy core to compile without memoryview enabled, but with slice assignment enabled.
-
Delio Brignoli authored
-
Delio Brignoli authored
Adds ability to do "memcpy" with memoryview objects, such as: m1[0:3] = m2[2:5].
-
Damien George authored
-
Wojtek Siudzinski authored
Only those files which are needed by the stmhal port are added. Also includes a dummy file (stm32f2xx_hal_pcd_ex.c) to keep the build system the same for f4 and f2 MCU series.
-
Damien George authored
-
Damien George authored
This is in preparation for supporting other MCU series, such as STM32F2xx. Directory structure for the HAL is now hal/f4/{inc,src}, where "f4" will in the future be different for other series. HAL source/header files that are not use are removed to reduce the size of the code.
-
Damien George authored
-
Damien George authored
-
Damien George authored
This patch makes configurable, via MICROPY_QSTR_BYTES_IN_HASH, the number of bytes used for a qstr hash. It was originally fixed at 2 bytes, and now defaults to 2 bytes. Setting it to 1 byte will save ROM and RAM at a small expense of hash collisions.
-
- 19 Jul, 2015 1 commit
-
-
Sebastian Plamauer authored
-
- 18 Jul, 2015 1 commit
-
-
Paul Sokolovsky authored
TODO: Contributed code in modesp incorrectly uses private gc_* API.
-
- 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
-
- 15 Jul, 2015 3 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
- 14 Jul, 2015 3 commits
-
-
Dave Hylands authored
-
Damien George authored
Previous to this patch all interned strings lived in their own malloc'd chunk. On average this wastes N/2 bytes per interned string, where N is the number-of-bytes for a quanta of the memory allocator (16 bytes on 32 bit archs). With this patch interned strings are concatenated into the same malloc'd chunk when possible. Such chunks are enlarged inplace when possible, and shrunk to fit when a new chunk is needed. RAM savings with this patch are highly varied, but should always show an improvement (unless only 3 or 4 strings are interned). New version typically uses about 70% of previous memory for the qstr data, and can lead to savings of around 10% of total memory footprint of a running script. Costs about 120 bytes code size on Thumb2 archs (depends on how many calls to gc_realloc are made).
-
Paul Sokolovsky authored
inet_pton supports both ipv4 and ipv6 addresses. Interface is also extensible for other address families, but underlying libc inet_pton() function isn't really extensible (e.g., it doesn't return length of binary address, i.e. it's really hardcoded to AF_INET and AF_INET6). But anyway, on Python side, we could extend it to support other addresses.
-
- 13 Jul, 2015 1 commit
-
-
Paul Sokolovsky authored
Required to implement UDP servers.
-
- 12 Jul, 2015 1 commit
-
-
Paul Sokolovsky authored
sendto() turns out to be mandatory function to work with UDP. It may seem that connect(addr) + send() would achieve the same effect, but what connect() appears to do is to set source address filter on a socket to its argument. Then everything falls apart: socket sends to a broad-/multi-cast address, but reply is sent from real peer address, which doesn't match filter set by connect(), so local socket never sees a reply.
-
- 10 Jul, 2015 4 commits
-
-
Paul Sokolovsky authored
Treating it as signed lead to buffer overflow for ports >= 32768.
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
- 09 Jul, 2015 2 commits
-
-
Paul Sokolovsky authored
This usually allows to get just a single address entry.
-
Daniel Campora authored
-
- 08 Jul, 2015 4 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
-
Damien George authored
-
Paul Sokolovsky authored
This requires root access. And on recent Linux kernels, with CONFIG_STRICT_DEVMEM option enabled, only address ranges listed in /proc/iomem can be accessed. The above compiled-time option can be however overriden with boot-time option "iomem=relaxed". This also removed separate read/write paths - there unlikely would be a case when they're different.
-
- 07 Jul, 2015 3 commits
-
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-