summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-18esp8266/modesp: Add flash_size() function.Paul Sokolovsky
Returns FlashROM size in bytes from vendor SDK's point of view, not physical size.
2016-04-18esp8266/scripts/flashbdev: Use all available space in 1MB FlashROM for FS.Paul Sokolovsky
2016-04-17esp8266/modesp: Allow esp.deepsleep to take 2nd arg for RF wake opt.Damien George
2016-04-17esp8266/README.md: Update feature list for current state of affairs.Paul Sokolovsky
2016-04-17esp8266/README.md: Typo fix.Paul Sokolovsky
2016-04-17esp8266/esp_mphal: Protect dupterm_task_handler() from recursive exec.Paul Sokolovsky
2016-04-17esp8266/moduos: Add dupterm_notify() function.Paul Sokolovsky
Should be called to notify that current dupterm object has more input data to read.
2016-04-17extmod/modlwip: Add ability to run callback on "recv" and "accept" events.Paul Sokolovsky
To use: .setsockopt(SOL_SOCKET, 20, lambda sock: print(sock)). There's a single underlying callback slot. For normal sockets, it serves as data received callback, for listening sockets - connection arrived callback.
2016-04-17docs/machine: reset_cause() has been implemented for esp8266.Paul Sokolovsky
2016-04-17py/mkenv.mk: Optimize Python startup type during make process.Paul Sokolovsky
By skipping loading site.py, etc.
2016-04-17py/frozenmod: Pass the source name of the frozen module to the lexer.Damien George
This allows for better error messages, since the name of the file (sans .py) can now be printed when an exception occurs within a frozen script.
2016-04-17stmhal: Fix machine.unique_id() function to work for all MCUs.Damien George
2016-04-17stmhal: L4: Modify timer.c to support L4 MCU.Tobias Badertscher
2016-04-17stmhal: L4: Modify rtc.c to support L4 MCU.Tobias Badertscher
2016-04-17stmhal: L4: Modify usbd_conf.c to support L4 MCU.Damien George
Original patch was authored by Tobias Badertscher / @tobbad, but it was reworked to split UART edits from USB edits.
2016-04-17stmhal: L4: Modify uart.c to support L4 MCU.Damien George
L4 does not have UART6, and has similar registers to the F7. Original patch was authored by Tobias Badertscher / @tobbad, but it was reworked to split UART edits from USB edits.
2016-04-17extmod/modlwip: lwip_tcp_receive(): Full error handling.Paul Sokolovsky
2016-04-17extmod/modlwip: lwip_tcp_send(): Full error handling.Paul Sokolovsky
2016-04-16stmhal: L4: Modify adc.c to add support for STM32L4 series.Tobias Badertscher
2016-04-16stmhal: L4: Add line to Makefile for building L4 series.Tobias Badertscher
2016-04-16stmhal: L4: Add board definition files for STM32L476DISC.Tobias Badertscher
2016-04-16stmhal: Update HALCOMMITS due to change to hal.Damien George
2016-04-16stmhal: L4: Adapt UART HAL to avoid 64-bit integer division.Tobias Badertscher
64-bit integer division brings a dependency on library functions. It is avoided here by dividing fck and baud by a common divisior. The error is the better (1/(2*0x300)) as with 64 bit division (1/(0x300)).
2016-04-16stmhal: L4: Add basic STM32L4xx HAL files.Tobias Badertscher
These files come from STM32Cube_FW_L4_V1.3.0, with Windows line endings converted to unix. Only basic HAL files are added. In addition the QSPI support is included to support later external QSPI flash as mass storage.
2016-04-16stmhal: L4: Add CMSIS files to support STM32L476.Tobias Badertscher
2016-04-16stmhal: For frozen bytecode generation, add dependency of qstr file.Damien George
2016-04-16minimal: For frozen bytecode generation, add dependency of qstr file.Damien George
2016-04-16esp8266: Adapt port to use new auto-qstr generation.Damien George
2016-04-16py/mkrules.mk: Suppress line-no output from CPP for qstr auto-gen.Jan Čapek
2016-04-16py/py.mk: Add makefile variable for qstr autogeneration control.Jan Čapek
- any architecture may explicitely build with qstring make QSTR_AUTOGEN_DISABLE=1 autogeneration disabled and provide its own list of qstrings by the standard mechanisms (qstrdefsport.h).
2016-04-16windows/msvc: Implement automatic qstr generation using makeqstrdefs.stijn
Note this still needs some work: currently all source files are always preprocessed no matter which one actually changed, moreover that happens file by file without any parallellism so builds are painstakingly slow.
2016-04-16py/mkrules.mk: Add mpconfig[port].h dependency to qstr generating rule.Jan Čapek
2016-04-16py: Add rules for automated extraction of qstrs from sources.Jan Čapek
- add template rule that converts a specified source file into a qstring file - add special rule for generating a central header that contains all extracted/autogenerated strings - defined by QSTR_DEFS_COLLECTED variable. Each platform appends a list of sources that may contain qstrings into a new build variable: SRC_QSTR. Any autogenerated prerequisities are should be appened to SRC_QSTR_AUTO_DEPS variable. - remove most qstrings from py/qstrdefs, keep only qstrings that contain special characters - these cannot be easily detected in the sources without additional annotations - remove most manual qstrdefs, use qstrdef autogen for: py, cc3200, stmhal, teensy, unix, windows, pic16bit: - remove all micropython generic qstrdefs except for the special strings that contain special characters (e.g. /,+,<,> etc.) - remove all port specific qstrdefs except for special strings - append sources for qstr generation in platform makefiles (SRC_QSTR)
2016-04-16py/makeqstrdefs: Add script to automate extraction of qstr from sources.Pavel Moravec
This script will search for patterns of the form Q(...) and generate a list of them. The original code by Pavel Moravec has been significantly simplified to remove the part that searched for C preprocessor directives (eg #if). This is because all source is now run through CPP before being fed into this script.
2016-04-15esp8266/modmachine: Add reset_cause() function.Paul Sokolovsky
2016-04-15docs/speed_python: Add article.Paul Sokolovsky
2016-04-15tests: Fix dict1.py so it doesn't rely on the order of dict elems.Damien George
2016-04-15py/map: Change hash-table allocation policy to be less aggressive.Damien George
Small hash tables (eg those used in user class instances that only have a few members) now only use the minimum amount of memory necessary to hold the key/value pairs. This can reduce performance for instances that have many members (because then there are many reallocations/rehashings of the table), but helps to conserve memory. See issue #1760.
2016-04-15docs/speed_python: Add many more details on memoryviews.Paul Sokolovsky
2016-04-15docs/speed_python: Generalize "Floating point" subsection.Paul Sokolovsky
Don't describe just single port's peculiarities, note aboute possible array of issues with floating-point.
2016-04-15docs/speed_python: Clarify/generalize "Buffers" subsection.Paul Sokolovsky
2016-04-15docs/machine: Start to update for esp8266 port.Paul Sokolovsky
2016-04-15docs/esp: Enumerate flash access functions.Paul Sokolovsky
2016-04-15tools/mpy-tool.py: Add support for Python 2.7.Damien George
2016-04-14esp8266/moduos: Add uos.mkdir function.Damien George
2016-04-14extmod/fsusermount: In mount/mkfs, deregister VFS object on error.Damien George
Should fix issue #1947.
2016-04-14esp8266/scripts/_boot: Mount block device on "" instead of "/".Damien George
"" is the correct name of the root directory when mounting a device there (as opposed to "/"). One can now do os.listdir('/') and open('/abc'), as well as os.listdir() and open('abc').
2016-04-15extmod/modlwip: More debug messages for various edge conditions.Paul Sokolovsky
2016-04-15esp8266/qstrdefsport.h: Mark qstr's for "esp" module.Paul Sokolovsky
2016-04-15esp8266: Enable input() builtin.Paul Sokolovsky