summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-20Merge pull request #3166 from theacodes/bhb-adcScott Shawcroft
Add _bhb user module for Big Honking Button
2020-07-20Merge pull request #3175 from jepler/background-callback-bugsScott Shawcroft
Background callback bugfixes
2020-07-20Merge pull request #3172 from WarriorOfWire/issue_3169Jeff Epler
fix 3169: Polygon.points property
2020-07-20pre-allocate list of known sizeKenny
2020-07-20framebufferio: Handle auto refresh flag at resetJeff Epler
if we don't set the flag via accessor fn the tick enable might become wrong
2020-07-20supervisor: rename some locals for clarityJeff Epler
It's perfectly OK for these variables with static linkage to have the same name, but it's inconvenient for humans like me.
2020-07-20background callbacks: Clear any callbacks that were queuedJeff Epler
Before this, a background callback that was on the list when background_callback_reset was called could have ended up in a state that made it "un-queueable": its "prev" pointer could have been non-NULL.
2020-07-19fix 3169: Polygon.points propertyKenny
The getter for vectorio.Polygon#points was not updated with the data type change of the stored points list. This moves the implementation to shared_module and updates the data type to reflect the actual state.
2020-07-19Merge pull request #3165 from pewpew-game/pewpew-m4-analogioDan Halbert
pewpew_m4: Enable analogio
2020-07-18Add _bhb user module for Big Honking ButtonThea Flowers
BHB needs better accuracy from the ADC readings. To avoid changing the ADC configuration for all boards or adding complexity to AnalogIn, I implemented a custom user module to allow the BHB to talk to the ADC in the way that it needs to. I'm open to other approaches here, but this seemed like the least invasive and complex option.
2020-07-18pewpew_m4: Disable USB_HID backRadomir Dopieralski
German translation fails to build, so I have to disabled USB_HID after all.
2020-07-18pewpew_m4: Enable analogio and usb_hidRadomir Dopieralski
The newest version for the Stage library for PewPewM4 no longer contains embedded graphics, which frees enough space in flash to enabled back AnalogIO and also add USB_HID. There is still ~192 bytes left free. If new additions to CircuitPython make it grow further, we can disable USB_HID again.
2020-07-17Update translationsScott Shawcroft
2020-07-17Update translationsScott Shawcroft
2020-07-17Add cast for mpy-cross warningScott Shawcroft
2020-07-17Disable existing native networking.Scott Shawcroft
We're moving towards a co-processor model and a Wiznet library is already available. New native APIs will replace these for chips with networking like the ESP32S2 but they won't be these.
2020-07-17Add ignore() and fix docsScott Shawcroft
2020-07-17Get AllocationAlarm workingScott Shawcroft
2020-07-17Add memorymonitor moduleScott Shawcroft
2020-07-17Move release note converter to latest markdown helper libScott Shawcroft
2020-07-17Add find varients to bytearrayScott Shawcroft
2020-07-17Enable PYSTACK to keep function state out of the heapScott Shawcroft
2020-07-17Add boilerplate, create basic PWMOut testLucian Copeland
2020-07-17Merge pull request #2879 from jepler/background-callbackJeff Epler
Use a linked list of background tasks to perform
2020-07-17background_callback_gc_collect: We must traverse the whole listJeff Epler
2020-07-17uchip: reclaim some flash spaceJeff Epler
2020-07-17Merge branch 'main' into type_hintsdherrada
2020-07-17Made more requested changesdherrada
2020-07-17background_callback: Add gc collect callbackJeff Epler
A background callback must never outlive its related object. By collecting the head of the linked list of background tasks, this will not happen. One hypothetical case where this could happen is if an MP3Decoder is deleted while its callback to fill its buffer is scheduled.
2020-07-16Exclude timers from H7 buildsLucian Copeland
2020-07-16Made requested changes in displayiodherrada
2020-07-16Fix pulseIO reset and frequency issues, remove IRQ conflictLucian Copeland
2020-07-16Merge pull request #3143 from tannewt/improve_jsonDan Halbert
Add support to json.load for any object with readinto
2020-07-16Merge pull request #3155 from jepler/esp32s2-parallel-buildScott Shawcroft
esp32s2: Take care to invoke the sub-build-system only once
2020-07-16Merge pull request #3157 from tinkeringtech/tinkeringtech-scoutmakes-azulScott Shawcroft
Addition of Tinkeringtech ScoutMakes Azul nRF52840 based platform to CircuitPython
2020-07-16Merge pull request #3156 from jepler/esp32s2-serial-numberScott Shawcroft
esp32s2: Use the device's EUI-48 address as unique ID
2020-07-16Check out active protomatter PRLucian Copeland
2020-07-15fixed build.yml file formatting errorsTinkeringTech
2020-07-15Added the TinkeringTech ScoutMakes Azul platform to CircuitPythonTinkeringTech
2020-07-15supervisor: usb: note that it's unusual to need to call usb_backgroundJeff Epler
2020-07-15supervisor: factor supervisor_background_tasks from sundry portsJeff Epler
2020-07-15supervisor: factor out, Handle USB via background callbackJeff Epler
2020-07-15esp32s2: Use the device's EUI-48 address as unique IDJeff Epler
On my hardware, esptool reports MAC: 7c:df:a1:02:6c:b8 after this change, the USB descriptor says SerialNumber: 7CDFA1026CB8 and microcontroller.cpu.id has >>> "".join("%02x" % byte for byte in microcontroller.cpu.uid) 'c7fd1a20c68b' Note that the nibble-swapping between USB and cpu.uid is typical. For instance, an stm32 board has USB SerialNumber 24002500F005D42445632302 but hex-converted microcontroller.cpu.id 420052000f504d4254363220.
2020-07-15esp32s2: Take care to invoke the sub-build-system only onceJeff Epler
This allows "make -j" in the outer build system to function properly, with a potentially large decrease in build times on high end desktop systems.
2020-07-15background_callback: Avoid CALLBACK_CRITICAL_BEGIN with nothing to doJeff Epler
CALLBACK_CRITICAL_BEGIN is heavyweight, but we can be confident we do not have work to do as long as callback_head is NULL. This gives back performance on nRF.
2020-07-15displayio, framebufferio: Enable supervisor tick when a display is auto-refreshJeff Epler
This is a step towards restoring the efficiency of the background tasks
2020-07-15MP3Decoder: take advantage of background callbackJeff Epler
Before this, the mp3 file would be read into the in-memory buffer only when new samples were actually needed. This meant that the time to read mp3 content always counted against the ~22ms audio buffer length. Now, when there's at least 1 full disk block of free space in the input buffer, we can request that the buffer be filled _after_ returning from audiomp3_mp3file_get_buffer and actually filling the DMA pointers. In this way, the time taken for reading MP3 data from flash/SD is less likely to cause an underrun of audio DMA. The existing calls to fill the inbuf remain, but in most cases during streaming these become no-ops because the buffer will be over half full.
2020-07-15samd: audio: Move to background callbackJeff Epler
Testing performed: Played half of the Bartlebeats album :) :)
2020-07-15supervisor: tick: only run background tasks once per tickJeff Epler
2020-07-15supervisor: Add a linked list of background callbacksJeff Epler
In time, we should transition interrupt driven background tasks out of the overall run_background_tasks into distinct background callbacks, so that the number of checks that occur with each tick is reduced.