summaryrefslogtreecommitdiff
path: root/supervisor/shared
AgeCommit message (Collapse)Author
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-05-29.../devices.h: Add GigaDevices GD25S512MD 64 MiB flash chip support.Brian Dean
2020-05-29Merge remote-tracking branch 'adafruit/master' into wdt-nrfScott Shawcroft
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-27watchdog: move timeout exception to shared-bindingsSean Cross
Make this exception globally available to all platforms that have enabled the watchdog timer. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27supervisor: tick: check for watchdog exception if enabledSean Cross
Check to see if the current exception is a Watchdog exception, if it's enabled. This ensures we break out of the current sleep() if a watchdog timeout hits. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27supervisor: add a new WATCHDOG_RESET safe mode reasonSean Cross
This mode will be used if the board is reset due to the watchdog expiring. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27tick: break on watchdog timeout exceptionSean Cross
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-21supervisor: support debugging tinyusbSean Cross
Allow for passing `-DCFG_TUSB_DEBUG=1` or `-DCFG_TUSB_DEBUG=2` on the command line to enable debugging tinyusb within circuitpython. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19Merge pull request #2910 from tannewt/esp32s2Scott Shawcroft
Add initial ESP32S2 support
2020-05-19bleio: adapter: add advertising timeout and statusSean Cross
Add a field to allow specifying a timeout when initiating advertising. As part of this, add a new property to determine if the device is still advertising. Additionally, have the `anonymous` property require a timeout, and set the timeout to the maximum possible value if no timeout is specified. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19_bleio: support anonymous advertisingSean Cross
Add a new parameter to the `start_advertising()` function to enable anonymous advertising. This forces a call to `sd_ble_gap_privacy_set()` with `privacy_mode` set to `BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY` and `private_addr_type` set to `BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE`. With this, addresses will cycle at a predefined rate (currently once every 15 minutes). Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18Merge pull request #2837 from k0d/serial-debugScott Shawcroft
Add support for a debug console, such as ST-Link VCP.
2020-05-19Enable showing the console on a debug uartMark Olsson
2020-05-15Initial ESP32S2 port.Scott Shawcroft
Basic blinky works but doesn't check pins.
2020-05-09More erroneous else statementsMax Holliday
2020-05-09Unified single_status_byte & no_reset_cmd behaviorMax Holliday
2020-05-09Removing erroneous else statements Max Holliday
2020-05-09Replacing device that was accidentally deleted Max Holliday
2020-05-04Merge branch 'master' into non-standard-nvmDan Halbert
2020-05-03.../external_flash.c: Don't attempt to issue CMD_READ_STATUS2 forBrian Dean
devices with only a single_status_byte.
2020-04-28fixing diff errorMax Holliday
2020-04-28decoupling chip specific functions from EXTERNAL_FLASH_QSPI_SINGLEMax Holliday
2020-04-27Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-04-27Merge remote-tracking branch 'adafruit/master'Max Holliday
2020-04-26Merge pull request #2805 from tannewt/update_tinyusbScott Shawcroft
Update tinyusb
2020-04-21Fix USB midi and hid disable.Scott Shawcroft
2020-04-21external_flash: add support for mx25r1635fSean Cross
This flash chip is used in Simmel. Signed-off-by: Sean Cross <sean@xobs.io>
2020-04-20Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
This isn't perfect and needs a bit more testing.
2020-04-17RGBMatrix: finish renaming from ProtomatterJeff Epler
This gets all the purely internal references. Some uses of protomatter/Protomatter/PROTOMATTER remain, as they are references to symbols in the Protomatter C library itself.
2020-04-17Update TinyUSB and add interrupt hooks.Scott Shawcroft
2020-04-14Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-04-14displayio: swap colors in palettes tooJeff Epler
.. change the in-rom palette to be in RGB565 order
2020-04-14fix build for non-displayio & non-protomatter targetsJeff Epler
2020-04-14protomatter: more memory allocation fixesJeff Epler
- bump supervisor alloc count by 4 (we actually use 5) - move reconstruct to after gc heap is reset - destroy protomatter object entirely if not used by a FramebufferDisplay - ensure previous supervisor allocations are released - zero out pointers so GC can collect them
2020-04-14allow retrieving info about a supervisor allocationJeff Epler
2020-04-07adds standard (non-queued) SPI support to QSPI for external flashMax Holliday
2020-04-06Updates based on feedback from jeplerScott Shawcroft
2020-04-03Rework sleep timingScott Shawcroft
It didn't account for background task time and could end up sleeping for way longer than it should because the RTC compare time had already passed.
2020-04-02Clean upScott Shawcroft
2020-03-31Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-03-25supervisor/shared/external_flash/devices.h: Add MX25L51245G support.Brian Dean
Add external flash support for Macronix MX25L51245G 64MiB SPI flash.
2020-03-20Initial work for STM32. Need to fix us delay and PulseIn still.Scott Shawcroft
2020-03-17Fix DotStar status LED init.Scott Shawcroft
2020-03-17Fix DotStar status LED init.Scott Shawcroft
2020-03-13Fix autoreload and ticks in generalScott Shawcroft
2020-03-13Hopefully fix flash flush and hopefully audio as well.Scott Shawcroft
2020-03-13Fix autoreload, neopixel, monotonic_ns and sleep w/o SDScott Shawcroft