summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* py: Get rid of assert() in method argument checking functions.Paul Sokolovsky2016-08-12
| | | | | | 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.
* py/objdict: Get rid of asserts (remove/replace with mp_check_self()).Paul Sokolovsky2016-08-12
|
* py/runtime.h: Define mp_check_self(pred) helper macro.Paul Sokolovsky2016-08-12
| | | | | | | 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.
* py/runtime: Factor out exception raising helpers.Paul Sokolovsky2016-08-12
| | | | | | 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.
* stmhal/adc.c: Get ADC working on STM32L4 MCUs.Tobias Badertscher2016-08-11
| | | | | | | | | | | | | | | | | | | | | 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.
* stmhal/boards: Update STM32L476 pin defs to include ADC channels.Damien George2016-08-11
| | | | | This patch introduces proper ADC Pin definitions in stm32l476_af.csv. Originally provided by @tobbad.
* unix/mpconfigport.h: Don't include stdio.h on MacOS.ilovezfs2016-08-10
| | | | | Fixes build errors such as "../lib/utils/printf.c:43:5: error: expected parameter declarator"
* docs/esp8266/intro: Add command to install esptool.py 1.0.1 via pip.Paul Sokolovsky2016-08-10
| | | | | It used a standard BootROM programming algo and may be useful as a fallback.
* tools/mpy-tool.py: Support freezing float literals with obj-repr C.Damien George2016-08-10
| | | | | 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.
* esp8266: PULL_UP is not supported on Pin(16), so raise an exception.Damien George2016-08-10
|
* esp8266: Fix reading of pin object for GPIO16.Damien George2016-08-10
| | | | Pin(16) now works as an input.
* docs/esp8266/tutorial/pins: Fix typo in commands for pin input mode.Paul Sokolovsky2016-08-09
|
* docs: Bump version to 1.8.3.v1.8.3Damien George2016-08-09
|
* esp8266/modules/flashbdev: Start filesystem at 0x90000.Paul Sokolovsky2016-08-09
| | | | To accommodate growing firmware.
* esp8266/esp8266.ld: Increase firmware image size to 0x90000 (576K).Paul Sokolovsky2016-08-09
| | | | | | | 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.
* lib/berkeley-db-1.xx: Update, sets default page size to 4096.Paul Sokolovsky2016-08-09
| | | | | This both good default for 4096 and makes less chance to see overflow page issues.
* docs/uio: Mention seek()/flush() support for io.BytesIO.Paul Sokolovsky2016-08-09
|
* docs/esp8266/intro: Focus on hazards of unearthed power wrt electronics.Paul Sokolovsky2016-08-07
|
* py/mpconfig.h: Define MP_ALWAYSINLINE for reuse.Paul Sokolovsky2016-08-07
| | | | Similar to existing MP_NOINLINE.
* docs/esp8266/tutorial/intro: Add anchor for link from quickeref.Paul Sokolovsky2016-08-07
|
* tests/basics: bytes/str.partition/rpartition are now optional.Paul Sokolovsky2016-08-07
| | | | Skip tests if not available.
* docs/esp8266/quickref: Link to installation instructions.Paul Sokolovsky2016-08-07
|
* docs/esp8266/intro: Add troubleshooting section.Paul Sokolovsky2016-08-07
| | | | Tries to summarize most of the issues we've seen so far.
* docs/esp8266/intro: Rename to "Getting started" from "Introduction".Paul Sokolovsky2016-08-07
| | | | | 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.
* esp8266/tutorial/intro: Reword para abou -fm dio switch.Paul Sokolovsky2016-08-07
| | | | Not all NodeMCU boards require it.
* esp8266/modmachine: Implement dummy sleep() function.Paul Sokolovsky2016-08-07
|
* esp8266/modutime: Actually implement ticks_cpu().Paul Sokolovsky2016-08-07
|
* esp8266/esp_mphal.h: Add mp_hal_ticks_cpu() for reuse.Paul Sokolovsky2016-08-07
|
* esp8266/modmachine: Implement idle() function.Paul Sokolovsky2016-08-07
|
* py/objstr,objstrunicode: Fix inconistent #if indentation.Paul Sokolovsky2016-08-07
|
* py/objstr: Make .partition()/.rpartition() methods configurable.Paul Sokolovsky2016-08-07
| | | | Default is disabled, enabled for unix port. Saves 600 bytes on x86.
* unix/moduselect: Allow poll.register(), etc. accept fd-like objects.Paul Sokolovsky2016-08-07
| | | | | | | 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.
* docs/library/index: Include array module in ToC.Paul Sokolovsky2016-08-07
|
* docs/array: Document array module.Paul Sokolovsky2016-08-07
|
* extmod/modwebrepl: Add GET_VER operation to query MicroPython version.Paul Sokolovsky2016-08-07
|
* extmod/modwebsocket: Use mp_rom_map_elem_t and friends.Paul Sokolovsky2016-08-06
|
* extmod/modwebsocket: Make compatible with non-default object models.Paul Sokolovsky2016-08-06
|
* esp8266/scripts/inisetup: Add commented-out call to esp.osdebug(None).Paul Sokolovsky2016-08-06
| | | | | | | 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).
* esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.Paul Sokolovsky2016-08-06
|
* unix: Enable websocket module.Paul Sokolovsky2016-08-06
|
* extmod/modwebsocket: Add readline method.Paul Sokolovsky2016-08-06
| | | | | | 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.
* examples/network: Split recv- and read-based HTTP servers.Paul Sokolovsky2016-08-06
| | | | | | | 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).
* extmod/modbtree: open(): Add option kwargs.Paul Sokolovsky2016-08-06
| | | | Namely: flags, cachesize, pagesize, minkeypage.
* extmod/modwebrepl: Make GET_FILE operation non-blocking.Paul Sokolovsky2016-08-05
| | | | | | 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.
* extmod/modwebrepl: Factor out "GET" iteration to write_file_chunk().Paul Sokolovsky2016-08-05
|
* py/mkrules.mk: Allow to add more items for "clean" target using CLEAN_EXTRA.Paul Sokolovsky2016-08-04
|
* stmhal: Fix I2C mappings for STM32F429DISC board.David Siorpaes2016-08-04
|
* esp8266/scripts/port_diag.py: Include esp.check_fw() call.Paul Sokolovsky2016-08-04
|
* esp8266/modesp: Add check_fw() function to check integrity of the firmware.Paul Sokolovsky2016-08-04
| | | | | Requires firmware generated by the latest makeimg.py (which stores size and md5 of the firmware together with the firmware itself).
* esp8266/makeimg.py: Append md5 hash to the generated binary.Paul Sokolovsky2016-08-04
| | | | | | md5 is calculated over the entire file, except first 4 bytes, which contain flash parameters and may be changed by flashing tool or MicroPython flash auto-config.