Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | esp8266: Return CPU frequency in Hz. | Damien George | 2015-05-05 |
| | |||
* | esp8266: Fix endian of address returned by esp.getaddrinfo() | Josef Gajdusek | 2015-05-05 |
| | |||
* | py: Remove LOAD_CONST_ELLIPSIS bytecode, use LOAD_CONST_OBJ instead. | Damien George | 2015-05-05 |
| | | | | | Ellipsis constant is rarely used so no point having an extra bytecode for it. | ||
* | obj: Handle user instance hash based on Python adhoc rules. | Paul Sokolovsky | 2015-05-05 |
| | | | | | | User instances are hashable by default (using __hash__ inherited from "object"). But if __eq__ is defined and __hash__ not defined in particular class, instance is not hashable. | ||
* | objsingleton: New home for Ellipsis and NotImplemented. | Paul Sokolovsky | 2015-05-05 |
| | | | | | | | Having NotImplemented as MP_OBJ_SENTINEL turned out to be problematic (it needs to be checked for in a lot of places, otherwise it'll crash as would pass MP_OBJ_IS_OBJ()), so made a proper singleton value like Ellipsis, both of them sharing the same type. | ||
* | cc3200: Define MICROPY_CPYTHON_COMPAT=0. | Daniel Campora | 2015-05-05 |
| | | | | | This only disables some corner case functionality to keep C Python compatibility, and saves ~600 bytes. | ||
* | modbuiltins: Add NotImplemented builtin constant. | Paul Sokolovsky | 2015-05-04 |
| | | | | | | | | | | | | From https://docs.python.org/3/library/constants.html#NotImplemented : "Special value which should be returned by the binary special methods (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__(), __iand__(), etc.) for the same purpose. Its truth value is true." Some people however appear to abuse it to mean "no value" when None is a legitimate value (don't do that). | ||
* | modstruct: Rename module to "ustruct", to allow full Python-level impl. | Paul Sokolovsky | 2015-05-04 |
| | |||
* | modstruct: Group module qstr's together. | Paul Sokolovsky | 2015-05-04 |
| | |||
* | esp8266: Add esp.socket class, with ESP-style socket functionality. | Josef Gajdusek | 2015-05-04 |
| | | | | | | | * UDP currently not supported * As there is no way (that I know of) the espconn_regist_connectcb() callback can recognize on which socket has the connection arrived, only one listening function at a time is supported | ||
* | lib: Move some common mod_network_* functions to lib/netutils. | Josef Gajdusek | 2015-05-04 |
| | |||
* | py: Check that arg to object.__new__ is a user-defined type. | Damien George | 2015-05-04 |
| | | | | Addresses issue #1203. | ||
* | modmachine: Add new module to access hardware, starting with physical memory. | Paul Sokolovsky | 2015-05-04 |
| | | | | | Refactored from "stm" module, provides mem8, mem16, mem32 objects with array subscript syntax. | ||
* | CONTRIBUTING.md: Link to contrib guidelines and code conventions. | Paul Sokolovsky | 2015-05-03 |
| | |||
* | esp8266: Export station status() constants | Josef Gajdusek | 2015-05-03 |
| | |||
* | stmhal: Allow to configure UART pins completely via mpconfigboard.h. | Eero af Heurlin | 2015-05-03 |
| | |||
* | cc3200: Clean up pyb.Pin | Daniel Campora | 2015-05-03 |
| | | | | | | | Remove unused and unneeded functions, also create Pin.get_config() that returns the whole configuration of the pin. This reduces code size by ~500 bytes. | ||
* | cc3200: WLAN.ifconfig returns an attrtuple instead of a dictionary. | Daniel Campora | 2015-05-03 |
| | |||
* | cc3200: Implement Sleep.wake_reason() | Daniel Campora | 2015-05-03 |
| | |||
* | cc3200: Clear the pending interrupt flag when disabling RTC callbacks. | Daniel Campora | 2015-05-03 |
| | |||
* | unix/modffi.c: get_buffer is allowed to return NULL if len=0. | Damien George | 2015-05-01 |
| | | | | | This is consistent with the logic in mp_get_buffer, and the code here is an inlined version of that function. | ||
* | msvc: Allow overriding of build options with custom file | stijn | 2015-04-30 |
| | | | | | | - by default look for a user.props in the msvc directory, which is more convenient than the built-in way of looking for such file in the user's home directory - make git ignore the file | ||
* | cc3200: Move wlan_init0() to the boot section. | Daniel Campora | 2015-04-29 |
| | | | | | This one creates a semaphore, therefore it must be executed only after a hard reset (or when coming out of hibernation). | ||
* | cc3200: Correct Sleep module name. Must be 'Sleep', not 'sleep'. | Daniel Campora | 2015-04-29 |
| | |||
* | cc3200: When requesting safe boot, blink the led 3 times, not 4. | Daniel Campora | 2015-04-29 |
| | |||
* | cc3200: Make WLAN.isconnected() also work in AP mode. | Daniel Campora | 2015-04-29 |
| | | | | | | While in STA mode isconnected() returns True when connected to an AP and the IP has been acquired. In AP mode, WLAN.isconnected() returns True if at least one connected station is present. | ||
* | cc3200: Clean-up servers enable/disable algorithm. | Daniel Campora | 2015-04-29 |
| | |||
* | stmhal: Automatically re-enable IRQs on the USB REPL. | Dave Hylands | 2015-04-29 |
| | | | | | This allows errors to be seen and prevents hanging the board from doing: pyb.disable_irq() | ||
* | py/repl.c: Fix shadowing of local variable "i". | Damien George | 2015-04-29 |
| | |||
* | py, readline: Add tab autocompletion for REPL. | Damien George | 2015-04-29 |
| | | | | | | | | Can complete names in the global namespace, as well as a chain of attributes, eg pyb.Pin.board.<tab> will give a list of all board pins. Costs 700 bytes ROM on Thumb2 arch, but greatly increases usability of REPL prompt. | ||
* | mp-readline: Save "prompt" string in readline state. | Damien George | 2015-04-29 |
| | |||
* | py: Fix attrtuple array length in print and creation. | Damien George | 2015-04-29 |
| | |||
* | py: Replace py-version.sh with makeversionhdr.py, written in Python. | Damien George | 2015-04-28 |
| | | | | Also rename py-version.h to mpversion.h for consistency with mpconfig.h. | ||
* | cc3200: Make WLAN scan results a list of attrtupple. | Daniel Campora | 2015-04-29 |
| | | | | | | | | Each result is displayed like this: ssid='MySSID', bssid=b'\xc0J\x00z.\xcc', security=2, channel=None, rssi=-74 The CC3200 doesn't provide channel info, that why is 'None'. | ||
* | py: In attrtuple use the correct length value and index for 'fields'. | Daniel Campora | 2015-04-29 |
| | |||
* | cc3200: Remove unneeded -lgcc in Makefile. | Daniel Campora | 2015-04-29 |
| | |||
* | cc3200: Implement os.uname() to get details of the OS and hardware. | Daniel Campora | 2015-04-29 |
| | |||
* | cc3200: Move telnet_process_credential with the other private functions. | Daniel Campora | 2015-04-29 |
| | | | | Just for consistency. | ||
* | unix/modffi: Support passing float/double args. | Damien George | 2015-04-28 |
| | |||
* | cc3200: Improve telnet_parse_input() in case of an incomplete option. | Daniel Campora | 2015-04-28 |
| | |||
* | cc3200: Make telnet login procedure work with Tera Term. | Matt Anderson | 2015-04-28 |
| | | | | | | | This is actually a workaround Ter Term's issue of not obeying to the telnet options that the server is sending. Therefore, we must buffer chars until either a '\r' or the max length of the username/password is received. | ||
* | lib/libc: Add memchr. We already have strchr, but memchr is useful too. | Daniel Campora | 2015-04-28 |
| | |||
* | cc3200: Add delays to allow the servers to start and stop properly. | Daniel Campora | 2015-04-28 |
| | |||
* | cc3200: Select NIC when the socket is created. | Daniel Campora | 2015-04-28 |
| | | | | This makes sense since only WLAN is supported here. | ||
* | stmhal: Actually disable unhandled timer interrupts. | Dave Hylands | 2015-04-28 |
| | |||
* | py: Fix handling of negative numbers in struct.pack of q/Q. | Damien George | 2015-04-25 |
| | |||
* | vm: On exiting except block, clear sys.exc_info() value. | Paul Sokolovsky | 2015-04-26 |
| | | | | | | This doesn't handle case fo enclosed except blocks, but once again, sys.exc_info() support is a workaround for software which uses it instead of properly catching exceptions via variable in except clause. | ||
* | py: Implement power op for long-long implementation of bignum. | Damien George | 2015-04-25 |
| | |||
* | py: Support conversion of bignum to bytes. | Damien George | 2015-04-25 |
| | | | | | | | This gets int.to_bytes working for bignum, and also struct.pack with 'q' and 'Q' args on 32-bit machines. Addresses issue #1155. | ||
* | cc3200: Correct MAKE_SOCKADDR and UNPACK_SOCKADDR byte order. | Daniel Campora | 2015-04-25 |
| |