aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/usbd_msc_interface.c
AgeCommit message (Collapse)Author
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-10-29extmod/vfs: Rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx.Damien George
Also rename SEC_COUNT to BLOCK_COUNT and SEC_SIZE to BLOCK_SIZE.
2019-07-16stm32/usb: Add config options to disable USB MSC and/or HID.Damien George
The new configurations MICROPY_HW_USB_MSC and MICROPY_HW_USB_HID can be used by a board to enabled or disable MSC and/or HID. They are both enabled by default.
2019-06-11stm32/usbd_msc: Allow to compile when USB enabled and SD card disabled.Damien George
2019-06-11stm32/usb: Add "msc" kw-arg to pyb.usb_mode to select MSC logical units.Damien George
With this the user can select multiple logical units to expose over USB MSC at once, eg: pyb.usb_mode('VCP+MSC', msc=(pyb.Flash(), pyb.SDCard())). The default behaviour is the original behaviour of just one unit at a time.
2019-06-11stm32/usbd_msc: Provide Mode Sense response data in MSC interface.Damien George
Eventually these responses could be filled in by a function to make their contents dynamic, depending on the attached logical units. But for now they are fixed, and this patch fixes the MODE SENSE(6) responses so it is the correct length with the correct header.
2019-06-11stm32/usbd_msc: Provide custom irquiry processing by MSC interface.Damien George
So the MSC interface can customise the inquiry response based on the attached logical units.
2019-06-11stm32/usbd_msc: Rework USBD MSC code to support multiple logical units.Damien George
SCSI can support multiple logical units over the one interface (in this case over USBD MSC) and here the MSC code is reworked to support this feature. At this point only one LU is used and the behaviour is mostly unchanged from before, except the INQUIRY result is different (it will report "Flash" for both flash and SD card).