summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2020-07-23remove new char*s because m0 is way oversubscribedKenny
2020-07-23add coroutine behavior for generatorsKenny
coroutines don't have __next__; they also call themselves coroutines. This does not change the fact that `async def` methods are generators, but it does make them behave more like CPython.
2020-07-22py/py.mk: Use additional CFLAGS to compile string0.c.Damien George
Otherwise functions like memset might get optimised to call themselves (eg with gcc 10). And provide CFLAGS_BUILTIN so these options can be changed by a port if needed. Fixes issue #6053.
2020-07-22Add externs. GCC10 complains about duplicate definesScott Shawcroft
2020-07-22Merge branch 'main' into memmonitorScott Shawcroft
2020-07-21Turn off find when CPYTHON_COMPAT is offScott Shawcroft
2020-07-21Merge remote-tracking branch 'adafruit/main' into bytearray_findScott Shawcroft
2020-07-21Merge pull request #3160 from tannewt/enable_pystackScott Shawcroft
Enable PYSTACK to keep function state out of the heap
2020-07-21Only add .find without CPYTHON_COMPATScott Shawcroft
2020-07-17Add cast for mpy-cross warningScott Shawcroft
2020-07-17Get AllocationAlarm workingScott Shawcroft
2020-07-17Add memorymonitor moduleScott Shawcroft
2020-07-17Add find varients to bytearrayScott Shawcroft
2020-07-17Enable PYSTACK to keep function state out of the heapScott Shawcroft
2020-07-13Fix to pass mpy-cross buildDavePutz
2020-07-13more formatting fixDavePutz
2020-07-13Fix formattingDavePutz
2020-07-13Issue #2949 Run background checks during long multiplicationsDavePutz
2020-07-13Merge pull request #3003 from Flameeyes/masterScott Shawcroft
License tagging according to REUSE specifications.
2020-07-08audioio: Remove compatibility codeJeff Epler
These items were aliased from audiocore to audioio for compatibility with 4.x, but according to our deprecation schedule can be removed in 6.0.
2020-07-06Add license to some obvious files.Diego Elio Pettenò
2020-06-26sdioio: Add shared-bindingsJeff Epler
There is no implementation yet.
2020-06-26sdcardio: implement new library for SD card I/OJeff Epler
Testing performed: That a card is successfully mounted on Pygamer with the built in SD card slot This module is enabled for most FULL_BUILD boards, but is disabled for samd21 ("M0"), litex, and pca10100 for various reasons.
2020-06-25I2CPeripheral: Rename class and its moduleJeff Epler
This is an incompatible change.
2020-06-24gnss: Implement new library for GNSSKamil Tomaszewski
2020-06-22circuitpy_defns.mk: Sort several lists of source filesJeff Epler
and regularize whitespace in one spot
2020-06-22_pew: move to common-halJeff Epler
I noticed that this code was referring to samd-specific functionality, and isn't enabled except in one samd board (pewpew10). Move it. There is incomplte support for _pew in mimxrt10xx which then caused build errors; adding a #if guard to check for _pew being enabled fixes it. The _pew module is not likely to be important on mimxrt but I'll leave the choice to remove it to someone else.
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-01Merge remote-tracking branch 'adafruit/master' into wdt-nrfScott Shawcroft
2020-06-01py.mk: Assume we want all C source files in ulabJeff Epler
2020-06-01py.mk: Assume we want all C files from ulabJeff Epler
2020-05-29Merge remote-tracking branch 'adafruit/master' into wdt-nrfScott Shawcroft
2020-05-28Merge pull request #2968 from jepler/more-efficient-translationDan Halbert
More efficient translation
2020-05-28A number of small ESP32S2 fixes:Scott Shawcroft
* Fix flash writes that don't end on a sector boundary. Fixes #2944 * Fix enum incompatibility with IDF. * Fix printf output so it goes out debug UART. * Increase stack size to 8k. * Fix sleep of less than a tick so it doesn't crash.
2020-05-28translations: document the compressed formatJeff Epler
2020-05-28string compression: save a few bits per stringJeff Epler
Length was stored as a 16-bit number always. Most translations have a max length far less. For example, US English translation lengths always fit in just 8 bits. probably all languages fit in 9 bits. This also has the side effect of reducing the alignment of compressed_string_t from 2 bytes to 1. testing performed: ran in german and english on pyruler, printed messages looked right. Firmware size, en_US Before: 3044 bytes free in flash After: 3408 bytes free in flash Firmware size, de_DE (with #2967 merged to restore translations) Before: 1236 bytes free in flash After: 1600 bytes free in flash
2020-05-27Revert "add WatchDogTimeout exception"Sean Cross
This reverts commit 561e7e619095869f58fc728d428f3ff20e8bfc40.
2020-05-27watchdogtimer: refactor to new apiSean Cross
This refactors the WatchDogTimer API to use the format proposed in https://github.com/adafruit/circuitpython/pull/2933#issuecomment-632268227 Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27add WatchDogTimeout exceptionSean Cross
This adds an exception to be raised when the WatchDogTimer times out. Note that this currently causes a HardFault, and it's not clear why it's not behaving properly. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27watchdog: rename module from `wdt` and move to `microcontroller`Sean Cross
This also places it under the `microcontroller` object. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27wdt: add watchdog supportSean Cross
This adds shared bindings for a watchdog timer, based on the API provided by micropython. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19Remove reverse methods from per-board defsScott Shawcroft
2020-05-18Merge remote-tracking branch 'adafruit/master' into esp32s2Scott Shawcroft
2020-05-18Merge pull request #2896 from theacodes/add-bytearray-decodeScott Shawcroft
Add bytearray.decode() for CPython compatibility
2020-05-15Initial ESP32S2 port.Scott Shawcroft
Basic blinky works but doesn't check pins.
2020-05-15Make decode only apply to bytearray and not array as wellThea Flowers
2020-05-14Add bytearray.decode() for CPython compatibilityThea Flowers
CPython has a `decode()` method on `bytearray`. This adds that method using the code from `bytes.decode`. Test program: ```python byte_boi = bytes([0x6D, 0x65, 0x65, 0x70]) print(byte_boi) # b'meep' byte_boi_str = byte_boi.decode("utf-8") print(byte_boi_str) # meep byte_array_boi = bytearray(byte_boi) print(byte_array_boi) # bytearray(b'meep') byte_array_boi_str = byte_array_boi.decode("utf-8") print(byte_array_boi_str) # meep print(byte_array_boi_str == byte_boi_str) # True ```
2020-05-13Merge remote-tracking branch 'adafruit/master' into improve_verificationScott Shawcroft
2020-05-12Don't build in empty help.cScott Shawcroft
2020-05-12Only enable COUNTIO in full buildsScott Shawcroft