summaryrefslogtreecommitdiff
path: root/supervisor/shared
AgeCommit message (Collapse)Author
2019-03-26Make status LED brightness change immediate.Scott Shawcroft
Fixes #1516
2019-03-26Merge pull request #1672 from dhalbert/regular-fs-flushScott Shawcroft
flush flash filesystem once a second
2019-03-25reset flush timer on call to filesystem_flush()Dan Halbert
2019-03-20flush flash filesystem once a secondDan Halbert
2019-03-19Move Glyph and BuiltinFont into fontioScott Shawcroft
It was confusing in displayio. Fixes #1662
2019-03-14Long live shared bus singletonsScott Shawcroft
Without long living them you may clone them when long living a module that uses them. Fixes #1603
2019-03-12Enter safe mode when an allocation is attempted on an uninitialized heap.Scott Shawcroft
2019-02-21Add option to disable the concurrent write protectionScott Shawcroft
This allows writing to the filesystem from the host computer and CircuitPython by increasing the risk of filesystem corruption.
2019-02-19Prevent infinite display update recursion and fix VFS mountingScott Shawcroft
Fixes #1529
2019-02-15Store the original layer in GroupScott Shawcroft
As is we would return the native superclass object only. Fixes #1551
2019-02-11A variety of displayio improvementsScott Shawcroft
This changes a number of things in displayio: * Introduces BuiltinFont and Glyph so the built in font can be used by libraries. For boards with a font it is available as board.TERMINAL_FONT. Fixes #1172 * Remove _load_row from Bitmap in favor of bitmap[] access. Index can be x/y tuple or overall index. Fixes #1191 * Add width and height properties to Bitmap. * Add insert and [] access to Group. Fixes #1518 * Add index param to pop on Group. * Terminal no longer takes unicode character info. It takes a BuiltinFont instead. * Fix Terminal's handling of [###D vt100 commands used when up arrowing into repl history. * Add x and y positions to Group plus scale as well. * Add bitmap accessor for BuiltinFont
2019-02-07Make several const char / const char * arrays static to save a bit of space.Lionel Debroux
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
2019-02-01Fix built-in inits and terminal allocateScott Shawcroft
2019-01-31Fix hallowing and nrf buildsScott Shawcroft
2019-01-31Remove Sprite referencesScott Shawcroft
2019-01-31More improvements to Terminal:Scott Shawcroft
* Fix Hallowing. * Fix builds without displayio. * Fix y bounds that appears as untrollable row of pixels. * Add scrolling to TileGrid. * Remove Sprite to save space. TileGrid is a drop in replacement.
2019-01-31Hook up the terminal based on the first display.Scott Shawcroft
2019-01-31Begin font parsing and packing for terminalScott Shawcroft
2019-01-31Merge pull request #1503 from hathach/nrf-tinyusb-sdDan Halbert
update tinyusb, work better with sd
2019-01-30Updates devices.h to include the W25Q32FV flash chip that is on the SparkFun ↵Elias Santistevan
LumiDrive and Redboard Turbo
2019-01-30refactor nrfx from supervisor/usb.chathach
2019-01-30re-init usb hardware when enable/disable SDhathach
2019-01-29update tinyusb, work better with sdhathach
2019-01-18Improvements thanks to danh's reviewScott Shawcroft
2019-01-17Fix up nrf and using board.SPI in FourWireScott Shawcroft
2019-01-17share fourwire and make nrf compileScott Shawcroft
2019-01-16Rework displays in prep for dynamic support and 8bit parallel.Scott Shawcroft
2019-01-14Add subclass support to displayio.Scott Shawcroft
Also, swap make_news to accept a kwarg map and refine param checking. Fixes #1237
2019-01-09Add USB MIDI support for SAMD and nRF.Scott Shawcroft
The API should be identical to using a UART for MIDI. Fixes #672
2018-12-20Don't check for corrupt heap too early; Fix QSPI timingDan Halbert
2018-12-06Rework safe mode and have heap overwrite trigger it.Scott Shawcroft
This creates a common safe mode mechanic that ports can share. As a result, the nRF52 now has safe mode support as well. The common safe mode adds a 700ms delay at startup where a reset during that window will cause a reset into safe mode. This window is designated by a yellow status pixel and flashing the single led three times. A couple NeoPixel fixes are included for the nRF52 as well. Fixes #1034. Fixes #990. Fixes #615.
2018-12-04Add stack validity check and raise an error when it happens.Scott Shawcroft
The backtrace cannot be given because it relies on the validity of the qstr data structures on the heap which may have been corrupted. In fact, it still can crash hard when the bytecode itself is overwritten. To fix, we'd need a way to skip gathering the backtrace completely. This also increases the default stack size on M4s so it can accomodate the stack needed by ASF4s nvm API.
2018-12-04Add correct flash chip for Particle Mesh boardsScott Shawcroft
2018-12-04Add particle boards, fix cp32 and try to speed up atmel buildScott Shawcroft
2018-11-30Fix up spi flash defineScott Shawcroft
2018-11-27Fix QSPI on Feather nRF52840Scott Shawcroft
We were writing with quad page program including the address (0x38) which is unsupported by the GD25Q16C but it is supported by the flash on the DK. So, we use the single address, quad data command (0x32).
2018-11-23Update tinyusb to include control fixes.Scott Shawcroft
2018-11-14Factor out of external flash as well.Scott Shawcroft
Plus some cleanup. Fixes #1324
2018-11-14Factor out fake partitionScott Shawcroft
2018-11-14start debugScott Shawcroft
2018-11-09Only write to usb when its around.Scott Shawcroft
2018-11-09Fix output overflow and make help translatableScott Shawcroft
2018-11-09Incorporate feedback:Scott Shawcroft
* Clean up board defines. * Add flush on eject and stay ejected. * Swith back to NONE protocol for CDC.
2018-11-09Build refinement to handle warnings and quiet outputScott Shawcroft
2018-11-08Move atmel-samd to tinyusb and support nRF flash.Scott Shawcroft
This started while adding USB MIDI support (and descriptor support is in this change.) When seeing that I'd have to implement the MIDI class logic twice, once for atmel-samd and once for nrf, I decided to refactor the USB stack so its shared across ports. This has led to a number of changes that remove items from the ports folder and move them into supervisor. Furthermore, we had external SPI flash support for nrf pending so I factored out the connection between the usb stack and the flash API as well. This PR also includes the QSPI support for nRF.
2018-08-31add pin claiming to devicesDan Halbert
2018-08-16Fix esp and samdScott Shawcroft
2018-08-16fix mpy-crossScott Shawcroft
2018-08-16Compress all translated strings with Huffman coding.Scott Shawcroft
This saves code space in builds which use link-time optimization. The optimization drops the untranslated strings and replaces them with a compressed_string_t struct. It can then be decompressed to a c string. Builds without LTO work as well but include both untranslated strings and compressed strings. This work could be expanded to include QSTRs and loaded strings if a compress method is added to C. Its tracked in #531.
2018-08-16Fix crash due to unsigned index and 0 boundary loop.Scott Shawcroft