summaryrefslogtreecommitdiff
path: root/supervisor/supervisor.mk
AgeCommit message (Collapse)Author
2021-03-25Fix devices include by splitting type from definesScott Shawcroft
2021-03-25Switch devices.h to nvm.toml dataScott Shawcroft
2021-03-18Redo RP2040 flash settingsScott Shawcroft
This switches stage2 to C and uses Jinja to change the C code based on flash settings from https://github.com/adafruit/nvm.toml. It produces the fastest settings for the given set of external flashes. Flash size is no longer hard coded so switching flashes with similar capabilities but different sizes should *just work*. This PR also places "ITCM" code in RAM to save the XIP cache for code execution. Further optimization is possible. A blink code.py still requires a number of flash fetches every blink. Fixes #4041
2021-03-07Automatically count EXTERNAL_FLASH_DEVICES (mk2)Jeff Epler
Instead of counting words in make, which is slightly awful, notice that possible_devices is local to external_flash.c, so we can declare the array with an automatic bound, and then get the count as the element-count (MP_ARRAY_SIZE) of the array. Since EXTERNAL_FLASH_DEVICE_COUNT is no longer a global macro, switch a few sites to using EXTERNAL_FLASH_DEVICES in `#if` checks instead.
2021-03-07Automatically count EXTERNAL_FLASH_DEVICESJeff Epler
2021-02-12wipDan Halbert
2021-02-11merge from upstream; complicated webusb mergeDan Halbert
2021-02-04usb descriptors all set; rework of enabling for USB devicesDan Halbert
2021-02-04Changed URLKevin Banks
2021-01-25Most of the code we need has been pulled in from the tinyusb webusb_serial ↵Kevin Banks
demo. Still LOTS to do regarding descriptors.
2020-10-27Start tweaking the workflow to sleepScott Shawcroft
2020-08-21Merge remote-tracking branch 'adafruit/main' into ble_hciDan Halbert
2020-08-20merge from upstream; working; includes debug_out code for debugging via ↵Dan Halbert
Saleae for posterity
2020-08-19Add usb-endpoint-count checkingJeff Epler
.. however, the number of endpoints is only set for SAMD (8). Other ports need to set the value. Otherwise, the build will show the message ``` Unable to check whether maximum number of endpoints is respected ```
2020-08-17Turn off terminalio for ja and koScott Shawcroft
The font is missing many characters and the build needs the space. We can optimize font storage when we get a good font. The serial output will work as usual.
2020-08-02wip: compilesDan Halbert
2020-07-29replace USB_MSC_MAX_PACKET_SIZE with USB_HIGHSPEED in descriptor gen toolhathach
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.
2020-06-25hci early wip; refactor supervisor bluetooth.c for nrf: testedDan Halbert
2020-06-24supervisor.mk: Conditionally assign USB_DEVICESJeff Epler
This restores the ability to remove CDC and/or MSC, at the price of giving up the new automatic check that USB_DEVICES is correct. Since devices have to have CDC and MSC to be "CircuitPython", this is not a facility that is going to be used by any in-tree drivers.
2020-06-23supervisor.mk: Compute USB_DEVICES; remove from boards and portsJeff Epler
Since Actions passed on the previous commit, where this computed value was checked against the specified value (if any), this is no net change, except that we no longer need to specify it for particular boards or ports.
2020-06-15supervisor.mk: Compute what USB_DEVICES should be, and check it against what ↵Jeff Epler
it is
2020-05-15Initial ESP32S2 port.Scott Shawcroft
Basic blinky works but doesn't check pins.
2020-04-21Fix USB midi and hid disable.Scott Shawcroft
2020-01-23reset NeoPixels on CPB on soft reloadDan Halbert
2019-12-10working on all portsDan Halbert
2019-12-05wipDan Halbert
2019-11-18Supervisor: move most of systick to the supervisorJeff Epler
This code is shared by most parts, except where not all the #ifdefs inside the tick function were present in all ports. This mostly would have broken gamepad tick support on non-samd ports. The "ms32" and "ms64" variants of the tick functions are introduced because there is no 64-bit atomic read. Disabling interrupts avoids a low probability bug where milliseconds could be off by ~49.5 days once every ~49.5 days (2^32 ms). Avoiding disabling interrupts when only the low 32 bits are needed is a minor optimization. Testing performed: on metro m4 express, USB still works and time.monotonic_ns() still counts up
2019-11-12Allow boards to change the "CircuitPython" text in their USB interface ↵Thea Flowers
description. In cases where more than one board is connected to a single computer it can become pretty hard to figure out which board you're actually talking to. For example, if you have several MIDI-compatible boards they all show up as "CircuitPython MIDI". This change allows boards to replace the "CircuitPython" part of their USB descriptors with more specific text, for example, "CircuitPython Feather" or just "Feather". This will let folks more easily tell boards apart. The new option is named `USB_INTERFACE_NAME` and is available in `mkconfigboard.mk`. For example: ``` USB_INTERFACE_NAME = "Feather" ```
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-15Merge remote-tracking branch 'adafruit/master' into bonding1Dan Halbert
2019-10-08Merge branch 'master' into circuitpython-number-endpointkamtom480
2019-10-08Use boolean type for renumber_endpointsKamil Tomaszewski
2019-10-07Add HID OUTKamil Tomaszewski
2019-10-07Add validationKamil Tomaszewski
2019-10-07Add an alternative way to number the USB endpointsKamil Tomaszewski
Two options available: - relative numbering (USB_RELATIVE_EP_NUM = 1) - default - absolute numbering (USB_RELATIVE_EP_NUM = 0) - new!
2019-10-06WIP: bondingDan Halbert
2019-10-04Add a way to change max packet size for MSCKamil Tomaszewski
2019-09-04Merge remote-tracking branch 'adafruit/master' into choose-usb-devices-xacDan Halbert
2019-09-04use only one endpoint pair for MSC except on SAMD21Dan Halbert
2019-09-04Reverted descriptor changes pending HID restructuringHierophect
2019-09-03WIPDan Halbert
2019-08-19Add warnings, cosmetic fixes, remove vestigial modulesHierophect
2019-08-15Fix flash size, add filesystem disable flagHierophect
2019-08-15Add conditional endpoints to descriptor scriptHierophect
2019-07-26Add CDC REPL accessHierophect
2019-07-22Cleanup missed itemsHierophect
2019-07-22Add feature conditionals and clean upHierophect
2019-07-18Makefile cleanupHierophect
2019-07-18Deinit-capable USB on 411Hierophect