Commit Graph

25003 Commits (fd0a1d178af4f9f54af98d16b89248bf8c364cab)

Author SHA1 Message Date
George Beckstein fd0a1d178a Added a return from the virtual status transfer software-triggered interrupt. Not entirely sure this is appropriate. 2019-07-03 16:21:09 +03:00
George Beckstein a646be0c7d Added simulated status stage interrupt 2019-07-03 16:21:09 +03:00
George Beckstein 6fff16c0b1 Trying virtual status stage and generated interrupt 2019-07-03 16:21:09 +03:00
George Beckstein 3ebd98d965 Added setup status enum and removed some old commented out code 2019-07-03 16:21:08 +03:00
George Beckstein b4fa4b724a Implemented USBPhyHw::unconfigure() as it was causing configuration changes to fail. Endpoints were not being removed properly in the Nordic driver 2019-07-03 16:21:08 +03:00
George Beckstein 7aeb22a0e9 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-03 16:21:08 +03:00
George Beckstein 717c1bca9b Changed a little formatting 2019-07-03 16:21:08 +03:00
George Beckstein 93bdf39867 Added code to ignore ZLP packets on the ISOOUT endpoint... not fixing issue yet 2019-07-03 16:21:08 +03:00
George Beckstein cd7eee31f1 Removed function call for SOF event -- frame counter is already included in data from usb event 2019-07-03 16:21:08 +03:00
George Beckstein e3b3e7288b 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-03 16:21:08 +03:00
George Beckstein f49b36c930 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-03 16:21:08 +03:00
George Beckstein c5f947754c Reviewing functions. Added critical sections to some functions that access state information. 2019-07-03 16:21:08 +03:00
George Beckstein 7e1e5eaa62 Removed disable from disconnect to see if it affects the success of the soft reset test. 2019-07-03 16:21:08 +03:00
George Beckstein fabe8b83ee Added EP0 stalls to setup event handler 2019-07-03 16:21:08 +03:00
George Beckstein 5f731a8d6a Added in triggers to synchronize control transfer stages with what the hardware expects. First working example! 2019-07-03 16:21:08 +03:00
George Beckstein e82e13e2b2 Non-working custom feeder. Modified nordic driver to disable automatic EP0STATUS task triggering at end of DMA transfer 2019-07-03 16:21:08 +03:00
George Beckstein f798f58700 working on making the mbed and nordic drivers compatible 2019-07-03 16:21:07 +03:00
George Beckstein 8c77a3695b Added errata fixes (171, 187) from nRF SDK 15.2 that would prevent USBD from starting up 2019-07-03 16:21:07 +03:00
George Beckstein f4b327e69e Changed driver to request hf and lf clock sources... not sure why USB Ready event isn't ever getting triggered 2019-07-03 16:21:07 +03:00
George Beckstein 0f92c2b3ae Changed power handler to enable/start & disable/stop USBD driver in background 2019-07-03 16:21:07 +03:00
George Beckstein 188b450fe4 Configured sdk for enabling USB. Preliminary implementation of USB for nRF52840 2019-07-03 16:21:07 +03:00
Qinghao Shi 58f3e1d4ad fix IAR compile error on fastmodels 2019-07-03 16:21:07 +03:00
Vincent Veron 9b13bc0daf TARGET_STM: SPI: update pull up config depending on clk polarity
Fix #10589

Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-07-03 16:21:07 +03:00
Marten Lootsma 3ebc34cdd7 Fixed astyle error and removed duplicated comment 2019-07-03 16:21:07 +03:00
Marten Lootsma ce50a98e22 Added support for SPIF of size bigger than 16Mbyte
- checks if size is bigger than 16Mbyte
- changes to 4 byte address mode of neccessary
2019-07-03 16:21:07 +03:00
Chun-Chieh Li 5892491700 Fix channel release in analogout_free() 2019-07-03 16:21:07 +03:00
Tymoteusz Bloch 0656178c80 LWIP DNS servers setting/getting fixed. 2019-07-03 16:21:07 +03:00
jeromecoutant b6ee3f37a3 STM32H7 UART: enable LPUART 2019-07-03 16:21:07 +03:00
jeromecoutant 73e1fcb54c STM32WB warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant d042729339 STM32H7 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant 774058834d STM32L4 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant c817b1242e STM32L1 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant becaffc9d2 STM32L0 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant 8f2f6f31e2 STM32F7 warning compilation
[-Wparentheses-equality]
[-Wsign-compare]
2019-07-03 16:21:06 +03:00
jeromecoutant e5d760af10 STM32F4 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant e3bf9540b8 STM32F3 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant bfdb79c82c STM32F2 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant 1fa4dff010 STM32F1 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant b11d7d34f0 STM32F0 warning compilation
[-Wparentheses-equality]
2019-07-03 16:21:06 +03:00
jeromecoutant bc82a0fc48 STM32: remove compilation warning 2019-07-03 16:21:06 +03:00
Przemyslaw Stekiel 7d7224bd05 Disable time drifting test cases.
Time drifting test cases use serial communication with the host and are unstable on CI.
Skip time-drifting test cases if SKIP_TIME_DRIFT_TESTS macro is defined.
The idea for the future is to use FPGA test shield for timing tests instead of host scripts.

Also remove `__ARM_FM` macro which in most cases was used to disable time drifting tests. In other cases replace `__ARM_FM` with `TARGET_ARM_FM` which is more suitable.
2019-07-03 16:21:05 +03:00
Przemyslaw Stekiel 43424c0c35 Fix GREENTEA_SETUP() call in not time drifting tests.
In these tests GREENTEA_SETUP() is incorrectly called with "timing_drift_auto" instead of "default_auto".
2019-07-03 16:21:05 +03:00
Kevin Bracey 9cfcf06b98 Add C++14 sized delete operators
Correct C++14 operation of the alloc wrappers requires us to define
custom sized delete operators.

Their presence won't cause any problem for people compiling as C++03 or
C++11.
2019-07-03 16:21:05 +03:00
jeromecoutant 7d753c4ca0 STM32H7 directory cleanup and refactoring 2019-07-03 16:21:05 +03:00
jeromecoutant f34f38393a STM32H7: use default files from ST drivers delivery 2019-07-03 16:21:05 +03:00
jeromecoutant 17fb311b84 STM32: define USE_FULL_LL_DRIVER at top level 2019-07-03 16:21:05 +03:00
Lingkai Dong 0372d6e29e Workaround for legacy GAP advertising issue on Cordio LL
Due to some issue in Cordio link layer, advertising data does not
take effect unless we set it (or set it again) after advertising
parameters are set.
2019-07-03 16:21:05 +03:00
Lingkai Dong ebede3d401 Set extended advertising parameters upon first use of API v2
Previously, extended advertising parameters failed to be set
during BLE initialisation when the stack was not ready.

To work around this, we delay it to the first use of
useVersionTwoAPI.
2019-07-03 16:21:05 +03:00
Teppo Järvelin 27e0944cec Fix networkinterface non-blocking status test
Fix was to add some time between iterations connect-disconnect.
In cellular disconnect, cellular network may send disconnect events
and if those events come when connect is already ongoing test will fail.
So wait a bit after disconnect so that disconnect events should be over.
2019-07-03 16:21:05 +03:00
toyowata 9750cdb989 Correct SPDX identifiers 2019-07-03 16:21:05 +03:00