summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-15tests/basics: Add more tuple tests to improve coverage testing.Damien George
2016-08-14py/objstr: Use mp_raise_{Type,Value}Error instead of mp_raise_msg.Damien George
This patch does further refactoring using the new mp_raise_TypeError and mp_raise_ValueError functions.
2016-08-14py/runtime.h: Move comment about mp_not_implemented to correct place.Damien George
2016-08-14py/objtuple: In tuple_cmp_helper, use mp_check_self instead of raising.Damien George
Only tuple, namedtuple and attrtuple use the tuple_cmp_helper function, and they all have getiter=mp_obj_tuple_getiter, so the check here is only to ensure that the self object is consistent. Hence use mp_check_self.
2016-08-14esp8266/mpconfigport.h: Enable support for all special methods.Paul Sokolovsky
2016-08-12tests: Rename zlibd_decompress.py -> uzlib_decompress.py.Paul Sokolovsky
To use the actual current name.
2016-08-12py: Get rid of assert() in method argument checking functions.Paul Sokolovsky
Checks for number of args removes where guaranteed by function descriptor, self checking is replaced with mp_check_self(). In few cases, exception is raised instead of assert.
2016-08-12py/objdict: Get rid of asserts (remove/replace with mp_check_self()).Paul Sokolovsky
2016-08-12py/runtime.h: Define mp_check_self(pred) helper macro.Paul Sokolovsky
Indended to replace raw asserts in bunch of files. Expands to empty if MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG is defined, otehrwise by default still to assert, though a particular port may define it to something else.
2016-08-12py/runtime: Factor out exception raising helpers.Paul Sokolovsky
Introduce mp_raise_msg(), mp_raise_ValueError(), mp_raise_TypeError() instead of previous pattern nlr_raise(mp_obj_new_exception_msg(...)). Save few bytes on each call, which are many.
2016-08-11stmhal/adc.c: Get ADC working on STM32L4 MCUs.Tobias Badertscher
Fixing Issue #2243. Main problems were: - HAL_ADC_GetState(adcHandle) may return other bits set (not only HAL_ADC_STATE_EOC_REG) when called - so I AND-ed it out as proposed by mattbrejza in Issue #2243. - ADC Pin has to be configured as GPIO_MODE_ANALOG_ADC_CONTROL not only GPIO_MODE_ANALOG. - Resolved ADC resolution L4 specific (Use L4 define ADC_RESOLUTION_12B). - Changed setting of Init.EOCSelection toADC_EOC_SINGLE_CONV for L4. - Added call to ADC_MultiModeTypeDef as this is done on a STM32Cube generated project too. - Clean up: Configuration of ADC is done only in ONE function not the same is done in two functions. Test is done on PA5 pin of STM32L4Discovery-Kit which is connected to the DOWN button. Thanks to mattbrejza for discovering the bug.
2016-08-11stmhal/boards: Update STM32L476 pin defs to include ADC channels.Damien George
This patch introduces proper ADC Pin definitions in stm32l476_af.csv. Originally provided by @tobbad.
2016-08-10unix/mpconfigport.h: Don't include stdio.h on MacOS.ilovezfs
Fixes build errors such as "../lib/utils/printf.c:43:5: error: expected parameter declarator"
2016-08-10docs/esp8266/intro: Add command to install esptool.py 1.0.1 via pip.Paul Sokolovsky
It used a standard BootROM programming algo and may be useful as a fallback.
2016-08-10tools/mpy-tool.py: Support freezing float literals with obj-repr C.Damien George
The tool now generates code for freezing floats in obj-repr A, B or C, with the specific representation detected at compile time using macros.
2016-08-10esp8266: PULL_UP is not supported on Pin(16), so raise an exception.Damien George
2016-08-10esp8266: Fix reading of pin object for GPIO16.Damien George
Pin(16) now works as an input.
2016-08-09docs/esp8266/tutorial/pins: Fix typo in commands for pin input mode.Paul Sokolovsky
2016-08-09docs: Bump version to 1.8.3.v1.8.3Damien George
2016-08-09esp8266/modules/flashbdev: Start filesystem at 0x90000.Paul Sokolovsky
To accommodate growing firmware.
2016-08-09esp8266/esp8266.ld: Increase firmware image size to 0x90000 (576K).Paul Sokolovsky
Of them, 0x87000 is irom0 segment. This is required to ship increasing number of modules and examples developed in teh course of ESP8266 port project.
2016-08-09lib/berkeley-db-1.xx: Update, sets default page size to 4096.Paul Sokolovsky
This both good default for 4096 and makes less chance to see overflow page issues.
2016-08-09docs/uio: Mention seek()/flush() support for io.BytesIO.Paul Sokolovsky
2016-08-07docs/esp8266/intro: Focus on hazards of unearthed power wrt electronics.Paul Sokolovsky
2016-08-07py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.Paul Sokolovsky
Similar to existing MP_NOINLINE.
2016-08-07docs/esp8266/tutorial/intro: Add anchor for link from quickeref.Paul Sokolovsky
2016-08-07tests/basics: bytes/str.partition/rpartition are now optional.Paul Sokolovsky
Skip tests if not available.
2016-08-07docs/esp8266/quickref: Link to installation instructions.Paul Sokolovsky
2016-08-07docs/esp8266/intro: Add troubleshooting section.Paul Sokolovsky
Tries to summarize most of the issues we've seen so far.
2016-08-07docs/esp8266/intro: Rename to "Getting started" from "Introduction".Paul Sokolovsky
People tend to skip introductions (everyone knows what esp8266 is, right?), so try to do A/B testing with a title inviting to read it.
2016-08-07esp8266/tutorial/intro: Reword para abou -fm dio switch.Paul Sokolovsky
Not all NodeMCU boards require it.
2016-08-07esp8266/modmachine: Implement dummy sleep() function.Paul Sokolovsky
2016-08-07esp8266/modutime: Actually implement ticks_cpu().Paul Sokolovsky
2016-08-07esp8266/esp_mphal.h: Add mp_hal_ticks_cpu() for reuse.Paul Sokolovsky
2016-08-07esp8266/modmachine: Implement idle() function.Paul Sokolovsky
2016-08-07py/objstr,objstrunicode: Fix inconistent #if indentation.Paul Sokolovsky
2016-08-07py/objstr: Make .partition()/.rpartition() methods configurable.Paul Sokolovsky
Default is disabled, enabled for unix port. Saves 600 bytes on x86.
2016-08-07unix/moduselect: Allow poll.register(), etc. accept fd-like objects.Paul Sokolovsky
This includes file and socket objects, backed by Unix file descriptor. This improves compatibility with stmhal's uselect (and convenience of use), though not completely: return value from poll.poll() is still raw file descriptor.
2016-08-07docs/library/index: Include array module in ToC.Paul Sokolovsky
2016-08-07docs/array: Document array module.Paul Sokolovsky
2016-08-07extmod/modwebrepl: Add GET_VER operation to query MicroPython version.Paul Sokolovsky
2016-08-06extmod/modwebsocket: Use mp_rom_map_elem_t and friends.Paul Sokolovsky
2016-08-06extmod/modwebsocket: Make compatible with non-default object models.Paul Sokolovsky
2016-08-06esp8266/scripts/inisetup: Add commented-out call to esp.osdebug(None).Paul Sokolovsky
That apparently will only help folks who read the docs on how to disable, but could use a quick reminder straight in boot.py. For the developers, it's important to have debug logging enabled in development branch (master).
2016-08-06esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.Paul Sokolovsky
2016-08-06unix: Enable websocket module.Paul Sokolovsky
2016-08-06extmod/modwebsocket: Add readline method.Paul Sokolovsky
This goes bit against websocket nature (message-based communication), as it ignores boundaries bertween messages, but may be very practical to do simple things with websockets.
2016-08-06examples/network: Split recv- and read-based HTTP servers.Paul Sokolovsky
Name recv() based a "simplistic", as it can't work robustly in every environment. All this is to let people concentreate on proper, read()- based one (and to turn recv() based into a "negative showcase", explaining what are the pitfalls of such approach).
2016-08-06extmod/modbtree: open(): Add option kwargs.Paul Sokolovsky
Namely: flags, cachesize, pagesize, minkeypage.
2016-08-05extmod/modwebrepl: Make GET_FILE operation non-blocking.Paul Sokolovsky
In the sense that while GET_FILE transfers its data, REPL still works. This is done by requiring client to send 1-byte block before WebREPL server transfers next block of data.