- 19 Apr, 2016 5 commits
-
-
Paul Sokolovsky authored
If make -B is run, the rule is run with $? empty. Extract fron all file in this case. But this gets fragile, really "make clean" should be used instead with such build complexity.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
When there're C files to be (re)compiled, they're all passed first to preprocessor. QSTR references are extracted from preprocessed output and split per original C file. Then all available qstr files (including those generated previously) are catenated together. Only if the resulting content has changed, the output file is written (causing almost global rebuild to pick up potentially renumbered qstr's). Otherwise, it's not updated to not cause spurious rebuilds. Related make rules are split to minimize amount of commands executed in the interim case (when some C files were updated, but no qstrs were changed).
-
Colin Hogben authored
A port which uses lib/utils/pyexec.c but which does not enable garbage collection should not need to implement the gc_collect function. This patch also moves the gc_collect call to after printing the qstr info. Since qstrs cannot be collected it should not make any difference to the printed statistics.
-
- 18 Apr, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
There's no space for it.
-
Paul Sokolovsky authored
Returns FlashROM size in bytes from vendor SDK's point of view, not physical size.
-
- 17 Apr, 2016 15 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Should be called to notify that current dupterm object has more input data to read.
-
Paul Sokolovsky authored
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.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
By skipping loading site.py, etc.
-
Damien George authored
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.
-
Damien George authored
-
Tobias Badertscher authored
-
Tobias Badertscher authored
-
Damien George authored
Original patch was authored by Tobias Badertscher / @tobbad, but it was reworked to split UART edits from USB edits.
-
Damien George authored
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.
-
- 16 Apr, 2016 17 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Tobias Badertscher authored
-
Tobias Badertscher authored
-
Tobias Badertscher authored
-
Damien George authored
-
Tobias Badertscher authored
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)).
-
Tobias Badertscher authored
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.
-
Tobias Badertscher authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Jan Čapek authored
-
Jan Čapek authored
- 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).
-
stijn authored
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.
-
Jan Čapek authored
-
Jan Čapek authored
- 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)
-