Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | unix: modsocket: Implement inet_pton() in preference of inet_aton(). | Paul Sokolovsky | 2015-07-15 |
| | | | | | | | | 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. | ||
* | unix: modsocket: Implement recvfrom(). | Paul Sokolovsky | 2015-07-14 |
| | | | | Required to implement UDP servers. | ||
* | unix: modsocket: Implement sendto(). | Paul Sokolovsky | 2015-07-12 |
| | | | | | | | | | 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. | ||
* | unix: socket.getaddrinfo: Port is unsigned value. | Paul Sokolovsky | 2015-07-11 |
| | | | | Treating it as signed lead to buffer overflow for ports >= 32768. | ||
* | cc3200: Refactor and clean-up socket closing code. | Daniel Campora | 2015-07-10 |
| | |||
* | cc3200: Set simplelink time and date when enabling WLAN. | Daniel Campora | 2015-07-10 |
| | |||
* | cc3200: Add struct weak link for ustruct. | Daniel Campora | 2015-07-10 |
| | |||
* | unix: socket.getaddrinfo: Accept family & socktype arguments. | Paul Sokolovsky | 2015-07-10 |
| | | | | This usually allows to get just a single address entry. | ||
* | cc3200: Increment telnet Tx retry delay on every try. | Daniel Campora | 2015-07-09 |
| | |||
* | cc3200: Correct udelay us to ticks calculation. | Daniel Campora | 2015-07-08 |
| | |||
* | cc3200: Use alternative HAL_Delay also when interrupts are disabled. | Daniel Campora | 2015-07-08 |
| | |||
* | docs: Update pyb.Accel doc to reflect changes and explain filtered_xyz. | Damien George | 2015-07-08 |
| | |||
* | modmachine: Implement physical memory access using /dev/mem (Linux, etc). | Paul Sokolovsky | 2015-07-08 |
| | | | | | | | | | | 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. | ||
* | cc3200: Translate simplelink's socket error numbers to POSIX values. | Daniel Campora | 2015-07-07 |
| | |||
* | cc3200: Create /flash/sys and /flash/lib directories while booting. | Daniel Campora | 2015-07-07 |
| | |||
* | cc3200: Make update-wipy.py more robust. | Daniel Campora | 2015-07-07 |
| | |||
* | cc3200: Improve interrupt handling and fix bug in HAL_Delay(). | Daniel Campora | 2015-07-07 |
| | |||
* | cc3200: Increment interrupt stack size from 2K to 3K. | Daniel Campora | 2015-07-07 |
| | |||
* | stmhal: Add I2S support to make-pins.py | Dave Hylands | 2015-07-07 |
| | |||
* | tools: Fix pydfu.py to work with old and new versions of PyUSB | Dave Hylands | 2015-07-06 |
| | | | | | | | | | Update pydfu.py to match with the version from openmv. I just updated the openmv version to work with both of the PyUSB 1.0.0.b1 and 1.0.0.b2 See: https://github.com/walac/pyusb/blob/master/ReleaseNotes.rst | ||
* | py: Prevent many extra vstr allocations. | Dave Hylands | 2015-07-06 |
| | | | | | | | | | | | | | | | | | | | | | | | | | I checked the entire codebase, and every place that vstr_init_len was called, there was a call to mp_obj_new_str_from_vstr after it. mp_obj_new_str_from_vstr always tries to reallocate a new buffer 1 byte larger than the original to store the terminating null character. In many cases, if we allocated the initial buffer to be 1 byte longer, we can prevent this extra allocation, and just reuse the originally allocated buffer. Asking to read 256 bytes and only getting 100 will still cause the extra allocation, but if you ask to read 256 and get 256 then the extra allocation will be optimized away. Yes - the reallocation is optimized in the heap to try and reuse the buffer if it can, but it takes quite a few cycles to figure this out. Note by Damien: vstr_init_len should now be considered as a string-init convenience function and used only when creating null-terminated objects. | ||
* | py/repl: Fix case where shorter names are shadowed by longer names. | Damien George | 2015-07-06 |
| | | | | | | Previous to this patch, if "abcd" and "ab" were possible completions to tab-completing "a", then tab would expand to "abcd" straight away if this identifier appeared first in the dict. | ||
* | tools/make-frozen.py: Use Python2-compatible shebang. | Paul Sokolovsky | 2015-07-06 |
| | |||
* | tests: Catch ValueError instead of any exception to properly test error. | Damien George | 2015-07-06 |
| | |||
* | extmod/modubinascii: Re-use error string to reduce code size. | Damien George | 2015-07-06 |
| | | | | Drops Thumb2 arch size by 24 bytes. | ||
* | tools/make-frozen.py: Actually make Python2-compatible. | Paul Sokolovsky | 2015-07-06 |
| | |||
* | tools/make-frozen.py: Add Python2 compatibility. | Paul Sokolovsky | 2015-07-06 |
| | |||
* | modstruct: Raise NotImplementedError for unsupported repeat specification. | Paul Sokolovsky | 2015-07-05 |
| | |||
* | cc3200/README.md: Improve make deploy instructions. | Daniel Campora | 2015-07-04 |
| | |||
* | cc3200: Enable base64 methods from modubinascii. | Daniel Campora | 2015-07-04 |
| | |||
* | cc3200/README.md: Add notes about deploying a new software version. | Daniel Campora | 2015-07-04 |
| | |||
* | ubinascii: Fix a shadowed variable case. | Paul Sokolovsky | 2015-07-04 |
| | |||
* | ubinascii: b2a_base64: Optimize away a modulo operation. | Paul Sokolovsky | 2015-07-04 |
| | |||
* | extmod: Add a2b_base64 and b2a_base64 functions to ubinascii. | Galen Hazelwood | 2015-07-04 |
| | |||
* | esp8266: Allow to easily override programming baudrate. | Paul Sokolovsky | 2015-07-04 |
| | |||
* | cc3200: Fix socket recv and recvfrom return value type. | Daniel Campora | 2015-07-02 |
| | |||
* | py/objarray.c: Allow to build with debugging and bytearray but no array. | Damien George | 2015-07-02 |
| | |||
* | cc3200: time.sleep() now receives seconds, like CPython. | Daniel Campora | 2015-07-02 |
| | |||
* | cc3200: Add modussl, ssl sockets subclassed from normal sockets. | Daniel Campora | 2015-07-02 |
| | | | | Stream methods were added to normal sockets as in the unix port. | ||
* | cc3200: Code clean-up on pybpin. | Daniel Campora | 2015-07-02 |
| | |||
* | cc3200: Set WLAN date/time via the rtc.datetime method(). | Daniel Campora | 2015-07-02 |
| | | | | WLAN needs time info when validating certificates. | ||
* | cc3200: Optimize check for WLAN AP mode. | Daniel Campora | 2015-07-02 |
| | |||
* | cc3200: Raise an exception if trying to scan for networks in AP mode. | Daniel Campora | 2015-07-02 |
| | |||
* | cc3200: Add socket.timeout and socket.error exceptions. | Daniel Campora | 2015-07-02 |
| | |||
* | py: Add TimeoutError exception subclassed from OSError. | Daniel Campora | 2015-07-02 |
| | | | | | | | The TimeoutError is useful for some modules, specially the the socket module. TimeoutError can then be alised to socket.timeout and then Python code can differentiate between socket.error and socket.timeout. | ||
* | docs/wipy: Update safe boot comments to match actual behaviour. | Daniel Campora | 2015-06-30 |
| | |||
* | cc3200: Add CA, certificate and key files to the updater list. | Daniel Campora | 2015-06-30 |
| | |||
* | cc3200: Correct socket settimeout time format. | Daniel Campora | 2015-06-29 |
| | |||
* | builtinimport: Fix running package submodule with -m. | Paul Sokolovsky | 2015-06-29 |
| | | | | | | | When "micropython -m pkg.mod" command was used, relative imports in pkg.mod didn't work, because pkg.mod.__name__ was set to __main__, and the fact that it's a package submodule was missed. This is an original workaround to this issue. TODO: investigate and compare how CPython deals with this issue. | ||
* | cc3200: Adapt update-wipy.py timing to improve stability. | Daniel Campora | 2015-06-28 |
| |