summaryrefslogtreecommitdiff
path: root/extmod
AgeCommit message (Collapse)Author
2021-03-26[ure] to save space, disable debug dumps by defaultArtyom Skrobov
Has to stay enabled in unix port for the sake of tests/extmod/ure_debug.py
2021-03-15Merge pull request #4410 from jepler/update-ulab-dotScott Shawcroft
Update ulab
2021-03-15Update ulabJeff Epler
2021-03-15run code formatting scriptmicroDev
2021-03-12[vfs_fat_diskio] pdrv is not a drive number since f5f4cdae89Artyom Skrobov
2021-02-20update to ulab 1.7.5Jeff Epler
2021-02-17raspberrypi: implement os.urandomJeff Epler
Since the datasheet cast some doubt on the strength of the "rosc_hw->randombit", I use the SHA256 hash function to create a high quality random seed from random values of uncertain entropy, as well as to generate a sequence of random values from that seed using SHA256 as a cryptographically-secure random number generator. In practice, it produces over 100kB/s of random data which does not have any gross problems according to _PractRand_.
2021-01-29ulab: update to 1.7.2Jeff Epler
Closes #4086
2021-01-20Fix warnings that come from -O3 (I think)Scott Shawcroft
2021-01-15fix doc buildJeff Epler
2021-01-15Update to 1.7.1Jeff Epler
2021-01-14ulab: update to 1.7.0Jeff Epler
2021-01-11ulab: bump to version 1.6.1Jeff Epler
2021-01-04ulab: update to 1.6.0Jeff Epler
This fixes several problems I encountered.
2020-11-24Merge pull request #3728 from tannewt/speedup_jsonJeff Epler
Speed up JSON parsing with readinto
2020-11-23Merge pull request #3694 from jepler/update-ulab2Scott Shawcroft
ulab: Update to release tag 1.1.0
2020-11-23Ignore size parameterScott Shawcroft
2020-11-23ulab: Update to release tag 1.1.0Jeff Epler
Disable certain classes of diagnostic when building ulab. We should submit patches upstream to (A) fix these errors and (B) upgrade their CI so that the problems are caught before we want to integrate with CircuitPython, but not right now.
2020-11-19Speed up JSON parsing with readintoScott Shawcroft
Get a chunk of data from readinto instead of a single byte. This speeds up the parsing by reducing the number of function calls. Fixes #3703
2020-11-19Introduce, use mp_raise_arg1Jeff Epler
This raises an exception with a given object value. Saves a bit of code size.
2020-11-19Use mp_raise instead of nlr_raise(new_exception) where possibleJeff Epler
This saves a bit of code space
2020-10-25ulab: Update againJeff Epler
.. pull in various doc build fixes that prevented the previous commit from building. This is still "0.54.5", the tag was updated in micropython-ulab (since no functional difference was introduced, only doc and CI differences, I imagine)
2020-10-24ulab: Incorporate bugfixes (update to tag 0.54.5)Jeff Epler
In particular, this closes #3954.
2020-10-07Unify iMX flash config and add Metro M7 1011Scott Shawcroft
This unifies the flash config to the settings used by the Boot ROM. This makes the config unique per board which allows for changing quad enable and status bit differences per flash device. It also allows for timing differences due to the board layout. This change also tweaks linker layout to leave more ram space for the CircuitPython heap.
2020-09-12Add FALLTHROUGH comments as neededJeff Epler
I investigated these cases and confirmed that the fallthrough behavior was intentional.
2020-08-04Combine 'index out of range' messagesJeff Epler
2020-08-04various: Use mp_obj_get_type_qstr more widelyJeff Epler
This removes runtime allocations of the cstring version of the qstring. It is not a size improvement
2020-07-28Upgrade ulabJeff Epler
This version * moves source files to reflect module structure * adds inline documentation suitable for extract_pyi * incompatibly moves spectrogram to fft * incompatibly removes "extras" There are some remaining markup errors in the specific revision of extmod/ulab but they do not prevent the doc building process from completing.
2020-07-16Merge pull request #3143 from tannewt/improve_jsonDan Halbert
Add support to json.load for any object with readinto
2020-07-10Fix stream version and add basic readinto testScott Shawcroft
2020-07-10Add support to json.load for any object with readintoScott Shawcroft
This way we don't need to load the whole string version of the json into memory.
2020-07-06Add license to some obvious files.Diego Elio Pettenò
2020-07-01ulab: update to 0.51.1Jeff Epler
2020-06-25remove machine_i2c, machine_spiJeff Epler
This micropython code is not used in circuitpython
2020-06-03Fix up end of file and trailing whitespace.Diego Elio Pettenò
This can be enforced by pre-commit, but correct it separately to make it easier to review.
2020-06-01ulab: update submodule againJeff Epler
2020-06-01ulab: updateJeff Epler
.. add new modules and functions to our shared-bindings stubs
2020-05-10ujson: back out overeager loads() change; only change load()warriorofwire
2020-05-10ujson: do not eat trailing whitespacewarriorofwire
Ujson should only worry about whitespace before JSON. This becomes apparent when you are using MP stream protocol to read directly from input buffers. When you attempt to read(1) on a UART (and possibly other protocols) you have to wait for either the byte or the timeout. Fixes: - Waiting for a timeout after you have completed reading a correct and complete JSON off the input. - Raising an OSError after reading a correct and complete JSON off the input. - Eating more data than semantically owned off the input buffer. - Blocking to start parsing JSON until the entire JSON body has been loaded into a potentially large, contiguous Python object. Code you would write before: ``` line = board_busio_uart_port.read_line() json_dict = json.loads(line) ``` or reaching for fixed buffers and swapping them around in Python. Code that did not work before that does now: ``` json_dict = json.load(board_busio_uart_port) ``` - This removes the need for intermediate copies of data when reading JSON from micropython stream protocol inputs. - It also increases total application speed by parsing JSON concurrently with receiving on boards that read from UART via DMA. - It simplifies code that users write while improving their apps.
2020-04-27ulab: updateJeff Epler
2020-04-26ulab: actually update the submoduleJeff Epler
PR#2802 missed the submodule update itself.
2020-04-14ulab: Get updates from upstreamJeff Epler
2020-04-13ulab: Get updates from upstreamJeff Epler
2020-03-17update ulabJeff Epler
2020-03-09ulab: Use https://github.com/v923z/micropython-ulab/Jeff Epler
The only delta we were carrying was in the README.
2020-02-27Update ulab from upstream againJeff Epler
2020-02-27ulab: Incorporate itJeff Epler
2020-02-14avoid os.stat() int overflow on smallint-only buildsDan Halbert
2020-02-04preserve errno in OSErrorDan Halbert
2020-02-04Include filename for 'No such file/directory', etc.Dan Halbert