summaryrefslogtreecommitdiff
path: root/ports/stm32/usbd_conf.h
AgeCommit message (Collapse)Author
2019-10-13remove ports/stm32Dan Halbert
2018-05-14stm32/usb: Add ability to have 2x VCP interfaces on the one USB device.Damien George
This patch adds the configuration MICROPY_HW_USB_ENABLE_CDC2 which enables a new USB device configuration at runtime: VCP+VCP+MSC. It will give two independent VCP interfaces available via pyb.USB_VCP(0) and pyb.USB_VCP(1). The first one is the usual one and has the REPL on it. The second one is available for general use. This configuration is disabled by default because if the mode is not used then it takes up about 2200 bytes of RAM. Also, F4 MCUs can't support this mode on their USB FS peripheral (eg PYBv1.x) because they don't have enough endpoints. The USB HS peripheral of an F4 supports it, as well as both the USB FS and USB HS peripherals of F7 MCUs.
2018-05-11stm32/usbd_conf: Changes files to unix line endings and apply styling.Damien George
This patch is only cosmetic and has no functional change.
2018-05-11stm32/usbd_conf.h: Remove unused macros and clean up header file.Damien George
2018-03-09stm32/usbd_conf.h: Add include of stdint.h to fix compilation issues.Tom Collins
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.
2018-02-01stm32/usbdev: Reduce dependency on py header files.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.