Commit Graph

70 Commits (mbed-os-5.13.1)

Author SHA1 Message Date
George Beckstein 738cbb798d Removed mbed.h global include 2019-07-11 11:40:52 +01:00
George Beckstein 680625b6b7 Removed incorrect comment 2019-07-11 11:40:52 +01:00
aglass0fmilk 689e6877ee Added spdx identifiers and fixed indentation in targets.json 2019-07-11 11:40:52 +01:00
George Beckstein 2e4f74222c Astyle fixed USBPhy_Nordic.cpp 2019-07-11 11:40:52 +01:00
George Beckstein 75cb07ad4f Changed formatting, check if endpoint is stalled in unstall. Added errata header 2019-07-11 11:40:52 +01:00
aglass0fmilk e81f6a5640 Fixed failure on endpoint test data toggle reset (under Windows): "Data toggle not reset when calling ClearFeature(ENDPOINT_HALT) on an endpoint that has not been halted." 2019-07-11 11:40:52 +01:00
George Beckstein 70703ec06c Added in code to fix deepsleep underflow. Nullify event handler member variable. 2019-07-11 11:40:52 +01:00
George Beckstein 655f3db0ca Lock sleep when USB is initialized
Added logic to lock deep sleep when USB is initialized to prevent malfunctioning. This is consistent with the other drivers. See PR ARMmbed/mbed-os#9879
2019-07-11 11:40:52 +01:00
George Beckstein d2fe3a2562 Autoformatted with astyle 2019-07-11 11:40:52 +01:00
George Beckstein c427760d27 Fixed some comments 2019-07-11 11:40:52 +01:00
George Beckstein 925f8cb724 Fixed IRQ_ENABLE call to IRQ_DISABLE (oops). 2019-07-11 11:40:52 +01:00
George Beckstein 8b1d8dab0e Finished compatibility changes for nrfx renaming 2019-07-11 11:40:52 +01:00
George Beckstein 75a799d817 Fixing compatibilities with new nrfx drivers 2019-07-11 11:40:52 +01:00
George Beckstein d0a08076ae Removed redundant virtual status transfer notifications. 2019-07-11 11:40:52 +01:00
George Beckstein 036b5b2aa8 Added workaround for "unloading" IN endpoints after unstalling. Disable and then reenable when USBPhyHw::endpoint_unhalt() is called. 2019-07-11 11:40:52 +01:00
George Beckstein 2797bbf5a7 Removed unnecessary logic and changed round robin DMA scheduling 2019-07-11 11:40:52 +01:00
George Beckstein 84b54294f4 Added in flag for preventing double IRQ triggering and added asserts for Nordic driver calls 2019-07-11 11:40:52 +01:00
George Beckstein 8bf6c048cb Ignore events that happen when an endpoint is stalled/halted 2019-07-11 11:40:51 +01:00
George Beckstein e05d2fcf49 Added a return from the virtual status transfer software-triggered interrupt. Not entirely sure this is appropriate. 2019-07-11 11:40:51 +01:00
George Beckstein 059a59a9f3 Added simulated status stage interrupt 2019-07-11 11:40:51 +01:00
George Beckstein 153e60d5e9 Trying virtual status stage and generated interrupt 2019-07-11 11:40:51 +01:00
George Beckstein fae90141e4 Added setup status enum and removed some old commented out code 2019-07-11 11:40:51 +01:00
George Beckstein c2beffb7fa Implemented USBPhyHw::unconfigure() as it was causing configuration changes to fail. Endpoints were not being removed properly in the Nordic driver 2019-07-11 11:40:51 +01:00
George Beckstein 1b2df29254 Added data toggle clearing to removing endpoints. Reworked aborting endpoints in nordic driver to prevent an ASSERT when it is called on ISO endpoints 2019-07-11 11:40:51 +01:00
George Beckstein 52747d9c96 Changed a little formatting 2019-07-11 11:40:51 +01:00
George Beckstein b26055a682 Added code to ignore ZLP packets on the ISOOUT endpoint... not fixing issue yet 2019-07-11 11:40:51 +01:00
George Beckstein 54b8c497ad Removed function call for SOF event -- frame counter is already included in data from usb event 2019-07-11 11:40:51 +01:00
George Beckstein 242c08d746 Removed 0 max packet size assert for ISO endpoints. Ensured usbd_ep_abort would not be called on ISO endpoints (this currently causes an ASSERT in the Nordic driver 2019-07-11 11:40:51 +01:00
George Beckstein 82a2e80056 Fixed bug causing usb_control_stall_test to fail intermittently. Preparing the Nordic HW for the status stage of a control transfer would sometimes cause the HW to automatically ACK an "invalid" command during the control stall test. This would cause the test to fail (because an invalid request was not stalled). 2019-07-11 11:40:51 +01:00
George Beckstein 0acbeb8304 Reviewing functions. Added critical sections to some functions that access state information. 2019-07-11 11:40:51 +01:00
George Beckstein b6f4e429fb Removed disable from disconnect to see if it affects the success of the soft reset test. 2019-07-11 11:40:51 +01:00
George Beckstein 2209d06ff8 Added EP0 stalls to setup event handler 2019-07-11 11:40:51 +01:00
George Beckstein 7e1c50f76e Added in triggers to synchronize control transfer stages with what the hardware expects. First working example! 2019-07-11 11:40:51 +01:00
George Beckstein 2289cc3f14 Non-working custom feeder. Modified nordic driver to disable automatic EP0STATUS task triggering at end of DMA transfer 2019-07-11 11:40:51 +01:00
George Beckstein 24d8c86007 working on making the mbed and nordic drivers compatible 2019-07-11 11:40:51 +01:00
George Beckstein cd6892d0f0 Added errata fixes (171, 187) from nRF SDK 15.2 that would prevent USBD from starting up 2019-07-11 11:40:51 +01:00
George Beckstein c8e93bf3c0 Changed driver to request hf and lf clock sources... not sure why USB Ready event isn't ever getting triggered 2019-07-11 11:40:51 +01:00
George Beckstein ab1de1542b Changed power handler to enable/start & disable/stop USBD driver in background 2019-07-11 11:40:51 +01:00
George Beckstein f92f8df3d8 Configured sdk for enabling USB. Preliminary implementation of USB for nRF52840 2019-07-11 11:40:51 +01:00
Cruz Monrreal II a1c047aba4 Added missing astyle corrections for usb/device/targets/* 2019-03-20 12:57:36 -05:00
Russ Butler 8ffbe5c603 Lock sleep when USB is initialized
None of the USB drivers currently support entering deep sleep mode
while USB is active. To protect USB from malfunctioning lock deep
sleep in USBPhyHw::init.
2019-02-28 15:21:23 -06:00
Russ Butler 6527cf2bad Update files to include SPDX-License-Identifier
Update the header of all files to use a newer license template which
includes SPDX-License-Identifier.
2019-02-22 10:53:24 -06:00
bcostm a98eb739b1 STM32F7 USB: add NUCLEO_F756ZG in pins definition 2019-02-22 10:53:23 -06:00
bcostm e96b8a4803 STM32F7 USB: change VBUS pin for DISCO_F746NG FS 2019-02-22 10:53:22 -06:00
bcostm 82498cf3f8 STM32L4 USB: add pins definition for STM32L496/L4R5 MCUs 2019-02-22 10:53:22 -06:00
TomoYamanaka b3dec25ceb Renesas : Implement USB Device feature
I implemented USB Device feature for Renesas mbed boards.
The code referenced the following code as a starting point and is implemented it by inheritting USBPhy same as other boards.
(mbed-os\features\unsupported\USBDevice\targets\TARGET_RENESAS)
2019-02-22 10:53:22 -06:00
bcostm becb32061d STM32F4 USB: remove useless macro 2019-02-22 10:53:22 -06:00
Russ Butler 468df713fc Ignore disabled Kinetis USB endpoint interrupts
Ignore interrupts on disabled USB endpoints. This prevents handling
interrupts when in the wrong state.

Prior to this patch when running the serial test on a K64F the assert
on line 908 of USBDevice.cpp would sometimes be triggered. This
assert indicates that an endpoint 0 IN interrupt occurred before
the device was ready.

This occurs during the test_cdc_usb_reconnect test when the host sends
a "Set Control Line State" USB request and the device acknowledges it
just before USB is disconnected.
2019-02-22 10:53:20 -06:00
Russ Butler 130927068c Remove HAL_GetTick from ST USBPhy
Remove the function HAL_GetTick from the ST USBPhy driver. This is no
longer needed as that change has been made on master.
2019-02-22 10:53:20 -06:00
Russ Butler 6b0e9400b0 Fix ST test failures due to endpoint reconfiguration
Also always use the max endpoint size for SetTxFifo
since re-configuring fifos when endpoints are added or removed
causes tests to fail.
2019-02-22 10:53:18 -06:00