Commit Graph

25137 Commits (b4138d11024e0f76041288d1709b8ba4da1e7f39)

Author SHA1 Message Date
George Beckstein 058060711d Revert adding USB to STM32F407VG target 2019-05-28 10:48:09 -04:00
George Beckstein 002df471e0 Changed formatting, check if endpoint is stalled in unstall. Added errata header 2019-05-28 10:48:09 -04:00
aglass0fmilk 457691f392 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-05-28 10:48:09 -04:00
George Beckstein 57de05c54b Added in code to fix deepsleep underflow. Nullify event handler member variable. 2019-05-28 10:48:09 -04:00
George Beckstein cc4d8e6d75 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-05-28 10:48:09 -04:00
George Beckstein e006666527 Autoformatted with astyle 2019-05-28 10:48:09 -04:00
George Beckstein 911c799de0 Fixed some comments 2019-05-28 10:48:09 -04:00
George Beckstein 0fd7dcaa4e Fixed IRQ_ENABLE call to IRQ_DISABLE (oops). 2019-05-28 10:48:09 -04:00
George Beckstein 1ab27aff1f Finished compatibility changes for nrfx renaming 2019-05-28 10:48:09 -04:00
George Beckstein 2bd024d174 Fixing compatibilities with new nrfx drivers 2019-05-28 10:48:09 -04:00
George Beckstein 5d86c3b36f Removed redundant virtual status transfer notifications. 2019-05-28 10:48:09 -04:00
George Beckstein 40ee528479 Added workaround for "unloading" IN endpoints after unstalling. Disable and then reenable when USBPhyHw::endpoint_unhalt() is called. 2019-05-28 10:48:09 -04:00
George Beckstein 7e15a5b54a Removed unnecessary logic and changed round robin DMA scheduling 2019-05-28 10:48:09 -04:00
George Beckstein 8c176c34ef Added in flag for preventing double IRQ triggering and added asserts for Nordic driver calls 2019-05-28 10:48:09 -04:00
George Beckstein 9e61bbc4e3 Ignore events that happen when an endpoint is stalled/halted 2019-05-28 10:48:09 -04:00
George Beckstein 54b72d2eb3 Added a return from the virtual status transfer software-triggered interrupt. Not entirely sure this is appropriate. 2019-05-28 10:48:09 -04:00
George Beckstein cfea14ce6d Added simulated status stage interrupt 2019-05-28 10:48:09 -04:00
George Beckstein 171c8fa8e5 Trying virtual status stage and generated interrupt 2019-05-28 10:48:09 -04:00
George Beckstein 1babcd1011 Added setup status enum and removed some old commented out code 2019-05-28 10:48:09 -04:00
George Beckstein 94d01a99f3 Implemented USBPhyHw::unconfigure() as it was causing configuration changes to fail. Endpoints were not being removed properly in the Nordic driver 2019-05-28 10:48:09 -04:00
George Beckstein 4b744c86af 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-05-28 10:48:09 -04:00
George Beckstein 859329fb2e Changed a little formatting 2019-05-28 10:48:09 -04:00
George Beckstein dde7bffb87 Added code to ignore ZLP packets on the ISOOUT endpoint... not fixing issue yet 2019-05-28 10:48:09 -04:00
George Beckstein d3844a181c Removed function call for SOF event -- frame counter is already included in data from usb event 2019-05-28 10:48:09 -04:00
George Beckstein 0320ebc1d8 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-05-28 10:48:09 -04:00
George Beckstein 608e326942 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-05-28 10:48:09 -04:00
George Beckstein c006888557 Reviewing functions. Added critical sections to some functions that access state information. 2019-05-28 10:48:09 -04:00
George Beckstein f00053820b Removed disable from disconnect to see if it affects the success of the soft reset test. 2019-05-28 10:48:09 -04:00
George Beckstein 09c5982a4b Added EP0 stalls to setup event handler 2019-05-28 10:48:09 -04:00
George Beckstein 4a735cb31e Added in triggers to synchronize control transfer stages with what the hardware expects. First working example! 2019-05-28 10:48:09 -04:00
George Beckstein bb65ee0ef6 Non-working custom feeder. Modified nordic driver to disable automatic EP0STATUS task triggering at end of DMA transfer 2019-05-28 10:48:09 -04:00
George Beckstein 16b3511fc1 working on making the mbed and nordic drivers compatible 2019-05-28 10:48:09 -04:00
George Beckstein 823067e015 Added errata fixes (171, 187) from nRF SDK 15.2 that would prevent USBD from starting up 2019-05-28 10:48:09 -04:00
George Beckstein ceb3a105ef Changed driver to request hf and lf clock sources... not sure why USB Ready event isn't ever getting triggered 2019-05-28 10:48:09 -04:00
George Beckstein faa80d9028 Changed power handler to enable/start & disable/stop USBD driver in background 2019-05-28 10:48:09 -04:00
George Beckstein bd2605cce9 Configured sdk for enabling USB. Preliminary implementation of USB for nRF52840 2019-05-28 10:48:09 -04:00
Kevin Bracey 2fbbd9d2ca Introduce Semaphore::acquire methods
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().

Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".

Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Filip Jagodzinski 0ae1be0e65 Add a top level README file for USB tests
Add setup instructions and aggregate all the info from README files
related to USB testing.
2019-05-28 15:53:28 +02:00
ale87jan 1cde4029cb
Merge pull request #1 from ale87jan/ale87jan-patch-to-MAX32630
Update MAX3263x.sct
2019-05-28 12:07:46 +02:00
ale87jan 2d492e1166
Update MAX3263x.sct 2019-05-28 12:02:51 +02:00
k-stachowiak 948d4379d8 Update Mbed TLS feature to 2.18.0-rc2 2019-05-28 11:00:16 +01:00
Martin Kojtal 19e762298f
Merge pull request #10666 from ARMmbed/feature-nrf52-sdk15
Nordic SDK v15 Update
2019-05-28 09:48:44 +01:00
Chun-Chieh Li e9885feb20 Export wait_ns to be overridable
Some targets may not provide zero-wait-state flash performance. Export this function
to be overridable for targets to provide more accurate implementation like locating
'delay_loop_code' in SRAM.
2019-05-28 16:26:42 +08:00
jeromecoutant d919498745 STM32: common cmsis.h and device.h 2019-05-27 16:27:41 +02:00
Arto Kinnunen 5e23fbaa83 Add compilation flags to rf_configuration
Add flags to allow compilation without nanostack.
2019-05-27 17:06:59 +03:00
Tymoteusz Bloch d42ed4e6a9 Added hardcoded Echo server defaults for Greentea socket tests. 2019-05-27 14:41:17 +02:00
Martin Kojtal 303d0f0c0c SPE: fix inject entropy macro
Use new TLS macro
2019-05-27 11:50:09 +01:00
Tomasz Moń a39cba0e52 USBHost: Wait for device to implement SET ADDRESS
The USB Device must change the address within 2 ms after completing
SET ADDRESS status stage.

Wait 2 ms before issuing GET DESCRIPTOR under the new address. In my
case, this completely resolves the timeout issues.
2019-05-27 12:22:59 +02:00
Teppo Järvelin 779fb6defd Cellular: AT_CellularContext disconnect in non-blocking mode
Disconnect was supporting only blocking mode.
2019-05-27 12:23:29 +03:00
Przemyslaw Stekiel 87902a8e76 Add SCLK and SIN stats to SPIMasterTester.
It has been found that there is a problem with the new K66F SPI driver when clock polarity is high.
After setting clock polarity to high SCLK line is still low. When transmission starts and CS is asserted (in case of manual CS handling) SCLK signal is invalid (low). After first transfer SCLK idle state becomes high.
SPI implementation on FPGA test shield is resistant on this bug and transmission is successful. The problem has been found on two boards communication test where transmission fails.

The idea is to add support to the FPGA test shield to catch such errors and verify this in the test.
2019-05-27 09:48:33 +02:00