aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/usbdev/core/src
AgeCommit message (Collapse)Author
2019-08-15stm32/usbd: Make USB device FIFO sizes dynamically configurable.Damien George
Allows to optimise and configure the FIFO sizes depending on the USB device configuration selected at runtime, eg VCP+MSC vs 3xVCP+MSC.
2018-05-11stm32/usbdev: Convert files to unix line endings.Damien George
Also remove trailing whitespace and convert tabs to spaces.
2018-05-11stm32/usbd_conf.h: Remove unused macros and clean up header file.Damien George
2018-02-01stm32/usbdev: Add support for high-speed USB device mode.Damien George
This patch adds support in the USBD configuration and CDC-MSC-HID class for high-speed USB mode. To enable it the board configuration must define USE_USB_HS, and either not define USE_USB_HS_IN_FS, or be an STM32F723 or STM32F733 MCU which have a built-in HS PHY. High-speed mode is then selected dynamically by passing "high_speed=True" to the pyb.usb_mode() function, otherwise it defaults to full-speed mode. This patch has been tested on an STM32F733.
2018-02-01stm32/usbdev: Combine all str descriptor accessor funcs into one func.Damien George
There's no need to have these as separate functions, they just take up unnecessary code space and combining them allows to factor common code, and also allows to support arbitrary string descriptor indices.
2017-09-22stm32/usbdev: Make device descriptor callbacks take a state pointer.Damien George
2017-09-21stm32/usbdev/core: Add state parameter to all callback functions.Damien George
2017-09-20stm32/usbdev: Change static function variable to non-static.Damien George
It's written straight away in the function on every call so it doesn't need to be static.
2017-09-20stm32/usbdev: Make the USBD callback struct const so it can go in ROM.Damien George
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.