summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-21moduhashlib: Remove not implemented .hexdigest().Paul Sokolovsky
Effect can be easily achieved by ubinsacii.hexlify(hash.digest()).
2015-05-21extmod: Expose mod_binascii_hexlify() and mod_binascii_unhexlify().Daniel Campora
2015-05-20pic16bit: Add readinto and readlines to qstrs.Damien George
2015-05-20cc3200: Add uhashlib. Supports SHA1 and SHA256.Daniel Campora
2015-05-20cc3200: Fix time.localtime() so that it returns the correct fields.Daniel Campora
2015-05-20cc3200: Rewrite WLAN.ifconfig(). Add WLAN.info() and WLAN.connections().Daniel Campora
2015-05-20cc3200: Disable UCTYPES and enable ARRAY_SLICE_ASSIGN.Daniel Campora
2015-05-20py: Minor improvement to unichar_isxdigitDave Hylands
This drops the size of unicode_isxdigit from 0x1e + 0x02 filler to 0x14 bytes (so net code reduction of 12 bytes) and will make unicode_is_xdigit perform slightly faster.
2015-05-20extmod: Add ubinascii.unhexlifyDave Hylands
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
2015-05-18tools: Add exec_raw_no_follow to pyboard.py.Dave Hylands
2015-05-17py: Implement mp_format_float for doubles and use where appropriatestijn
This allows using (almost) the same code for printing floats everywhere, removes the dependency on sprintf and uses just snprintf and applies an msvc-specific fix for snprintf in a single place so nan/inf are now printed correctly.
2015-05-17py/binary: Make return type of mp_binary_get_size size_t instead of int.Kaspar Schleiser
Fixes sign-compare warning.
2015-05-17py/objobject: Don't make locals_dict if there's nothing to go in it.Kaspar Schleiser
2015-05-17py: Change _mp_obj_fun_builtin_t.fun to function pointer.Kaspar Schleiser
ISO C forbids conversion between function pointers and void*, gcc -pedantic triggers a warning.
2015-05-17py: Clean up declarations of str type/funcs that are also in unicode.Damien George
Background: trying to make an amalgamation of all the code gave some errors with redefined types and inconsistent use of static.
2015-05-17cc3200: Set the timer edge count interrupt value in the calbback const.Daniel Campora
2015-05-17cc3200: Make sure RTC wake value is >= 1ms.Daniel Campora
2015-05-17cc3200: Re-name 'intmode' to 'mode' in the callback API.Daniel Campora
2015-05-17cc3200: Disable WLAN.urn() by default.Daniel Campora
Can be enabled by defining MICROPY_PORT_WLAN_URN=1 in mpconfigport.h.
2015-05-17cc3200: Add optional timeout param to WLAN.connect().Daniel Campora
2015-05-17cc3200: Make sure to handle all pending pin interrupts.Daniel Campora
When entering the interrupt handler of a given GPIO port, more than one pin could have pending interrupts, therefore care must be taken to service each interrupt one by one before leaving.
2015-05-17cc3200: Add Timer module. Supports free running, PWM and capture modes.Daniel Campora
2015-05-17cc3200: Fix power mode param check in the UART callback constructor.Daniel Campora
2015-05-17cc3200: Add os.rename()Daniel Campora
2015-05-17Revert "unix: Include stdio.h to allow easy debugging with printf()."Paul Sokolovsky
This reverts commit 8fbabab1a80efa8b9c0654f63b2157d8f8299955. Turned to cause problems on MacOSX.
2015-05-16docs: Bump version to 1.4.3.v1.4.3Damien George
2015-05-13py: Fix printing of complex number when imaginary part is nanstijn
2015-05-13teensy: Add readinto and readlines qstrs.Damien George
2015-05-13docs: Document USB_VCP file-like methods.Damien George
2015-05-13stmhal: Add readinto and readlines methods to sys.stdin, pyb.USB_VCP().Damien George
Addresses issue #1255.
2015-05-13esp8266: Add configuration option for redirecting the built-in OS outputJosef Gajdusek
2015-05-13esp8266: Actually use the decimal part of system_rtc_clock_cali_proc()Josef Gajdusek
2015-05-13windows: Enable some recently added features in mpconfigport.hstijn
2015-05-13esp8266: Put more literal and text obj data in irom0_0_seg.Damien George
With newer versions of esp_iot_sdk the iram1_0_seg started to overflow. Now it doesn't. Addresses issue #1254.
2015-05-13esp8266: Add module weak links; link time to utime.Damien George
2015-05-13esp8266: Add utime and pyb.RTCJosef Gajdusek
2015-05-13esp8266: Update the linker scriptJosef Gajdusek
Moved modesp.o to flash and increased size of the irom0_0_seg segment. The new value was taken from NodeMCU linker script.
2015-05-13lib: Move time utility functions to common library.Josef Gajdusek
2015-05-12esp8266: Implement time functionsJosef Gajdusek
2015-05-12stmhal: Add os.rename function.Steve Zatz
2015-05-12unix: Add some extra coverage tests for vstr and attrtuple.Damien George
2015-05-12tests: Add further tests for class defining __hash__.Damien George
2015-05-12py: Add mp_obj_get_int_truncated and use it where appropriate.Damien George
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.
2015-05-12py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function.Damien George
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as the operator argument. Hashing for int, str and bytes still go via fast-path in mp_unary_op since they are the most common objects which need to be hashed. This lead to quite a bit of code cleanup, and should be more efficient if anything. It saves 176 bytes code space on Thumb2, and 360 bytes on x86. The only loss is that the error message "unhashable type" is now the more generic "unsupported type for __hash__".
2015-05-11vm: Properly handle StopIteration raised in user instance iterator.Paul Sokolovsky
I.e. in bytecode Python functions.
2015-05-11objgenerator: Can optimize StopIteration to STOP_ITERATION only if arg is None.Paul Sokolovsky
Unfortunately, MP_OBJ_STOP_ITERATION doesn't have means to pass an associated value, so we can't optimize StopIteration exception with (non-None) argument to MP_OBJ_STOP_ITERATION.
2015-05-11objgenerator: If generator yielded STOP_ITERATION value, it's stopped.Paul Sokolovsky
MP_OBJ_STOP_ITERATION is equivalent of raising StopIteration, except mp_vm_return_kind_t for it is "yield".
2015-05-11sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value.blmorris
2015-05-10vm: Null pointer test when checking for StopIteration optimizations.Paul Sokolovsky
When generator raises exception, it is automatically terminated (by setting its code_state.ip to 0), which interferes with this check. Triggered in particular by CPython's test_pep380.py.
2015-05-10unix: Include stdio.h to allow easy debugging with printf().Paul Sokolovsky