18 Commits

Author SHA1 Message Date
Gerardo Rodriguez
97d9210742 #64 Assume "PC connected" at the start of USB communication instead of waiting for the whole enumeration process to be finished. 2021-08-20 09:44:56 -05:00
Mathias Brossard
1360dce4bc Fixes to remove armclang warnings 2021-01-14 22:49:41 -06:00
Mathias Brossard
0c686f25f2 Fix portability issues for armclang 2021-01-14 22:49:41 -06:00
Chris Reed
03490b7f3b Changed U16 to wchar_t in usb_lib.c for string descriptors. 2021-01-14 22:49:41 -06:00
Chris Reed
7ace2559c8 Convert to __WEAK.
- Changed __weak to __WEAK.
- Using __WEAK instead of plain attribute.
2021-01-14 22:49:41 -06:00
Chris Reed
89e0623608 Remove unused target_family_valid(). 2020-01-10 16:01:50 -06:00
Brian Esquilona
e2b326e2b2 Bulk endpoints for CMSIS v2 support
1. HIC with sufficient usb endpoint to add bulk endpoints : k20dx, k26f, kl26z, lpc4322
2. HIC that needed removed of hid enpts to enable bulk endpoints: lpc11u35, max32620, max32625
3. HIC with no sufficient endpt to supprt bulk: sam3u2c
4. HIC with needs more investigation but can switch cmsis v1 to cmsis v2 support: stm32f103xb

Notes:
1. MSD interface is brought back to interface 0.
2. When msd is disabled, a particular usb serial id bit (most significant bit set for family id 2nd byte) is set.
3. CMSIS v1 string is set to "CMSIS v1"
4. Both hid cmsis v1 endpts can now be removed, when this is the case, host should communicate through control ep.
5. When in high speed, DAP buffer is limited to 64 bytes if both cmsis v1 and v2 are enabled.
2019-05-08 18:07:33 -05:00
Brian Esquilona
c9b9943c9b CMSIS-RTOS2 Interface for both RTX4 and No Rtos
1. Added cmsis_os2.h header interface for both RTX4 and no rtos implementation.
2. All bootloader will have no rtos.
3. Moved all rtx4 files to rtos folder
4. Moved OS_CLOCK config to HICs
5. Moved OS_TICK config to RTOS
6. Moved USB related definitions to usb_def.h
7. Removed rtos related header/ dependency to those not needed
2019-03-13 16:05:13 -05:00
brianesquilona
b53ca25530 Moved disable msd option to RAM config.
This will save BL code size.
2019-02-21 13:38:16 -06:00
brianesquilona
ea74cbe110 Make msd support configurably by usb descriptors 2019-02-20 11:02:50 -06:00
Arek Zaluski
dceaa1ace0 Fix interfaces order. (#438) 2018-06-08 09:00:36 -05:00
Arek Zaluski
ddc1051827 Add WebUSB functionality
* Add Microsoft OS 2.0 Descriptor support

* Add WebUSB interface

* Set landing page to os.mbed.com

* Flashing a board

* Reading/Writing serial data
2018-05-29 08:04:56 -05:00
Russ Butler
2bacc02a0a Reset MSC endpoint on USB reset to fix bug
If a USB reset occurs in the middle of a SCSI command
mass storage can get in a state where it thinks the transfer
is still ongoing.  This cases new SCSI commands to get ignored
by the device.  This causes the PC to disable the MSC endpoint.

This patch fixes that problem by properly reseting the MSC endpoint
when a USB reset occurs.
2016-07-10 16:39:10 -05:00
sg-
6e203f93fc update more license headers. target_reset reduced to per mfg not target. 2016-03-10 09:29:29 -06:00
Russ Butler
d9c14fd333 Format USB files
Format the USB source files to match the code style of DAPLink.
2016-03-09 18:32:42 -06:00
Russ Butler
f2a7009832 update usb library license
Update the licenses in the USB driver.
2016-03-09 18:32:41 -06:00
Russ Butler
3d1a68b768 Update USBD_ReadEP to take and use a size param
Update the function USBD_ReadEP and code which calls it to use a
size parameter.  This fixes several possible buffer overruns.
2016-03-01 15:09:17 -06:00
Russ
33c63d7194 Reorganize the repository
Make the following changes to reorganize the repository:
-Update HAL folder so it only contains necessary headers and
    each targets implementation of those headers
-Move processor specific cmsis-core files into the hal folder under
    the appropriate processor folder
-Remove target/IAP information from the bootloader and interface
    folders
-Move all target specific information into a target folder
2015-12-21 11:01:51 -06:00