summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-07-22Merge branch 'main' into stm32-timer-allocatorhierophect
2020-07-16Check out active protomatter PRLucian Copeland
2020-07-13Merge pull request #3003 from Flameeyes/masterScott Shawcroft
License tagging according to REUSE specifications.
2020-07-09lib/mp3: update to 1.2.2 releaseJeff Epler
This fixes the audio clipping bug
2020-07-06Add license to some obvious files.Diego Elio Pettenò
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-05-21lib: tinyusb: update to get tud_task_is_queue_emptySean Cross
This update gives us access to a function we can run with interrupts disabled to determine if the queue is empty. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18Update TinyUSB and shorten USB task delayScott Shawcroft
2020-05-07Fix build after #2831 (stm32f4xx rgbmatrix) broke itJeff Epler
2020-05-06Merge pull request #2831 from jepler/rgbmatrix-stmScott Shawcroft
stm: enable RGBMatrix
2020-04-30stm: enable protomatterJeff Epler
Testing performed: on stm32f405 feather, all pins change in plausible ways on a logic probe. Didn't actually drive a display yet.
2020-04-29Update TinyUSB to include SAMD race fixScott Shawcroft
2020-04-27Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-04-23Even newer tinyUSBScott Shawcroft
2020-04-17Update TinyUSB and add interrupt hooks.Scott Shawcroft
2020-04-14nrf: protomatter portJeff Epler
2020-04-14Add Protomatter and FramebufferDisplayJeff Epler
2020-03-03Merge remote-tracking branch 'origin/master' into ulabJeff Epler
2020-02-28oofatfs: Remove _FS_DISK_READ_ALIGNEDJeff Epler
This workaround is no longer needed, so it can be removed. Closes: #2332
2020-02-27libm: Provide log2fJeff Epler
2020-02-27libm: Disable float-equal diagnosticsJeff Epler
I choose to believe these authors knew what they were doing.
2020-02-18Update readline.c for REPL Unicode issue 1905DavePutz
2020-01-17Refine iMX RT memory layout and add three boardsScott Shawcroft
Introduces a way to place CircuitPython code and data into tightly coupled memory (TCM) which is accessible by the CPU in a single cycle. It also frees up room in the corresponding cache for intermittent data. Loading from external flash is slow! The data cache is also now enabled. Adds support for the iMX RT 1021 chip. Adds three new boards: * iMX RT 1020 EVK * iMX RT 1060 EVK * Teensy 4.0 Related to #2492, #2472 and #2477. Fixes #2475.
2019-12-27more tinyusb updatehathach
2019-12-26sync with https://github.com/hathach/tinyusb/pull/246hathach
should fix slow enumeration
2019-12-26improve usb dcd samd51hathach
fix race condition with setup packet + scsi status response
2019-12-19mp3: update to upstream release 1.1.1Jeff Epler
2019-12-17bump tinyusb lib submodulehathach
2019-12-10audiocore: Add MP3File using Adafruit_MP3 libraryJeff Epler
2019-12-10nRF: disk_read must be 4-byte alignedJeff Epler
.. a requirement that oofatfs needs to be taught to respect. This problem can be demonstrated with the following snippet, except that the related file ("test.bin") must also be contiguous on the filesystem. You can ensure this by reformatting your device's filesystem before testing, then copying any single file bigger than 4kB to test.bin. f = open("test.bin", "rb") f.seek(2048) b = bytearray(2048) v = memoryview(b) f.readinto(v[909:]) Closes: #2332
2019-12-04protocols: Allow them to be (optionally) type-safeJeff Epler
Protocols are nice, but there is no way for C code to verify whether a type's "protocol" structure actually implements some particular protocol. As a result, you can pass an object that implements the "vfs" protocol to one that expects the "stream" protocol, and the opposite of awesomeness ensues. This patch adds an OPTIONAL (but enabled by default) protocol identifier as the first member of any protocol structure. This identifier is simply a unique QSTR chosen by the protocol designer and used by each protocol implementer. When checking for protocol support, instead of just checking whether the object's type has a non-NULL protocol field, use `mp_proto_get` which implements the protocol check when possible. The existing protocols are now named: protocol_framebuf protocol_i2c protocol_pin protocol_stream protocol_spi protocol_vfs (most of these are unused in CP and are just inherited from MP; vfs and stream are definitely used though) I did not find any crashing examples, but here's one to give a flavor of what is improved, using `micropython_coverage`. Before the change, the vfs "ioctl" protocol is invoked, and the result is not intelligible as json (but it could have resulted in a hard fault, potentially): >>> import uos, ujson >>> u = uos.VfsPosix('/tmp') >>> ujson.load(u) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: syntax error in JSON After the change, the vfs object is correctly detected as not supporting the stream protocol: >>> ujson.load(p) Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: stream operation not supported
2019-11-19Removing submodule that was accidentally stowed away in PR 2302Melissa LeBlanc-Williams
2019-11-19Added Edgebadge alias for PybadgeMelissa LeBlanc-Williams
2019-11-01Merge remote-tracking branch 'adafruit/master' into bleio_tweaksScott Shawcroft
2019-10-22remove old libraryHierophect
2019-10-21Refine _bleioScott Shawcroft
This PR refines the _bleio API. It was originally motivated by the addition of a new CircuitPython service that enables reading and modifying files on the device. Moving the BLE lifecycle outside of the VM motivated a number of changes to remove heap allocations in some APIs. It also motivated unifying connection initiation to the Adapter class rather than the Central and Peripheral classes which have been removed. Adapter now handles the GAP portion of BLE including advertising, which has moved but is largely unchanged, and scanning, which has been enhanced to return an iterator of filtered results. Once a connection is created (either by us (aka Central) or a remote device (aka Peripheral)) it is represented by a new Connection class. This class knows the current connection state and can discover and instantiate remote Services along with their Characteristics and Descriptors. Relates to #586
2019-10-15add dummy common_hal_mcu_processor_get_voltage() for spresenseDan Halbert
2019-10-09Update tinyUSBKamil Tomaszewski
2019-10-01Update tinyusb to fix gamepad;add HID OUT interface descriptorDan Halbert
2019-09-09Add support for F412 via latest tinyusb updateHierophect
2019-08-27More size_t usageScott Shawcroft
2019-08-19update tinyusb to 00c440cbDan Halbert
2019-08-16update tinyusbJeff Epler
This fixes a problem with USB MIDI messages 0xc and 0xd and Closes: #2057
2019-07-24update tinyusb lib to 0.5.xhathach
2019-05-11lib/utils/printf: Exclude __GI_vsnprintf alias for gcc 9 and above.Damien George
See issue #4457.
2019-05-08Hide the traceback for the ReloadException.Scott Shawcroft
Many users think it's an error when it's us simply stopping the code.
2019-04-04update tinyusb to fix disconnect/suspend issue with #1681hathach
2019-03-29Remove lwip submodule because it is unused.Scott Shawcroft
2019-03-26Update TinyUSB to fix CDC OUT bufferingScott Shawcroft
Fixes #1630
2019-02-21Merge pull request #1584 from tannewt/disable_concurrent_write_protectionDan Halbert
Add option to disable the concurrent write protection