Commit Graph

532 Commits (b8fccedbc8135ed24d1a19b0eb1ce1965d36b2eb)

Author SHA1 Message Date
Michel Jaouen 34dcdde58b USBHOST STM : add more board NUCLEO : F411RE, L476VG, F746ZG DISCO : L476VG 2017-02-13 12:01:26 +00:00
Michel Jaouen 3c093a8aab USBHOST : add mouse test 2017-02-13 12:01:16 +00:00
Michel Jaouen 0b0520deef USBHOST : test mass storage 2017-02-13 12:01:11 +00:00
Michel Jaouen 56cdad356a USBHOST STM support : NUCLEO : F429ZI, F446ZE, F207ZG, F767ZI, F401RE, DISCO : F429ZI 2017-02-13 12:01:06 +00:00
Michel Jaouen e27b7e6fa3 USBHOST: fix call back 2017-02-13 12:00:56 +00:00
Michel Jaouen 13feab6dc3 USBHOST : introduce USBHOST_OTHER (USBHost on USB IP not OHCI). 2017-02-13 12:00:52 +00:00
Michel Jaouen f174f2a920 USBHOST : add return value to queue transfer modify add transfer to support return value. 2017-02-13 12:00:47 +00:00
Brian Daniels c87a1d4a13 Renaming test_env.cpp in greentea to avoid warning 2017-01-30 11:18:57 +00:00
jeromecoutant e288ee5089 DISCO_F769NI: Add analog loop test support 2017-01-30 11:17:36 +00:00
jeromecoutant 889212aa78 DISCO_F769NI: Add USB support 2017-01-30 11:17:32 +00:00
Alessandro Angelino 0b8b68c816 uVisor: Update to v0.26.2
* Add support for uVisor own SRAM.
    * This enables targets where uVisor sits in a TCM.
* Distinguish between uVisor and public SRAMs.
2017-01-30 11:17:03 +00:00
Seppo Takalo 1ac5be8fda Add support for ethernet-only configuration with Nanostack.
This saves about 100kB of flash when using ethernet only configuration.
Otherwise only border router configuration was supporting ethernet.
2017-01-13 14:35:40 +00:00
bcostm 238cc8301f Add NUCLEO_F412ZG in main.cpp files used for the tests 2017-01-13 14:35:33 +00:00
Christopher Haster 291c775921 lwip - Fixed missing dns servers after bringup with static ipv4 address
Generalized handling of dns servers when brought up with both ipv4 and
ipv6 addresses. Falls back to google dns servers if not dns server is
found through dhcp.

Also added support for the `add_dns_server` method to lwip to support
custom servers.
2017-01-13 14:35:10 +00:00
Christopher Haster 3e66e4696a lwip - Fixed lwip connected state after bringup with static ips
Thanks to @YixiaoLi for noting this was incorrect
2017-01-13 14:35:08 +00:00
ccli8 d51e624e50 Remove Tab in USB HAL 2017-01-13 14:35:05 +00:00
Laurent MEUNIER 2e54e53f76 I2C test: add L073RZ 2017-01-13 14:34:51 +00:00
Laurent MEUNIER 6f6fc02ac6 I2C test: master should send stop
it's master not slave that shall send STOP at the end of I2C transfer
2017-01-13 14:34:49 +00:00
Laurent MEUNIER ad39d3f737 I2C test: let slave time to get notified
depending on timing and HW, there might be some delay before the master
request gets notified, so better loop in while than a single call
to slave.receive()
2017-01-13 14:34:48 +00:00
Laurent MEUNIER 21bb46f6b1 I2C test: change slave address
This avoids conflicts with slave on ci-test-shield
2017-01-13 14:34:46 +00:00
ccli8 228df6f96c Add target SPI pins into SPI SD test samples with Travis CI 2016-12-30 12:42:58 +00:00
ccli8 e525e96009 Add license header for USBEndpoints_NUC472/M453.h 2016-12-30 12:42:52 +00:00
ccli8 702cf49648 Integrate with Travis CI
1. Add targets into build_travis.py and tests.py.
2. Add target SPI pins into SPI SD test samples.
3. Rename target TOOLCHAIN_GCC_ARM/retarget.c to avoid name collision of compiled retarget.o with platform/retargets.cpp.
2016-12-30 12:42:49 +00:00
ccli8 fa5333195f Support USB device 2016-12-30 12:42:47 +00:00
Jaakko Kukkohovi 5a7f691bec Update mbed-client-c version 3.0.4 2016-12-30 12:42:45 +00:00
adustm 1456e8797d fix for #3387 need to disable the data cache for Ethernet to use the DMA descriptors if they are located in SRAM1 and SRAM2 2016-12-30 12:42:30 +00:00
Hasnain Virk 7333c5ae6d Avoid option level collisions
To allow a network stack to support both NSAPI and its own options, try to make
sure the NSAPI levels don't collide with level numbers likely to be used by
network stacks.

Distinguish between socket and stack options, and tighten up documentation. Add
IP MRU stack options as an example (implementation not immediately planned for
any stack, but could be useful).
2016-12-30 12:42:10 +00:00
Hasnain Virk b2e0dd233e Supporting non-blocking connect()
A few new error codes are added to nsapi_error_t and
support for non-blocking socket connect is added.
Nanostack's connect call will be non-blocking.
Whereas LWIP connect call is currently blocking, and it could be changed now
to be non-blocking.
2016-12-30 12:42:08 +00:00
Michel Jaouen f81c13d67d USB_8 : audio loopback test at 16khz stereo 16bits - Callback TX and RX interface is used. 2016-12-30 12:41:47 +00:00
Michel Jaouen de06af3ec2 USBAudio: tx/rx iso call back. 2016-12-30 12:41:44 +00:00
Laurent MEUNIER c93eaf8b55 Change slave address in I2C master slave asynch test
Change test slave address to 0x80 because 0x90 is used by a real slave
(temperature sensor) on few boards like the CI shield.
2016-12-30 12:41:21 +00:00
Jared Szechy 613d552a21 Enable CAN on DISCO_F303VC 2016-12-30 12:41:14 +00:00
Christopher Haster f9c886221c nsapi - Fixed open/close issue in Socket
During open, the socket checked the internal stack variable,
assuming it would alway be null on a socket not connected to
the network. However, when a socket is closed, the stack variable
was not updated, causing the socket to incorrectly return a
parameter error if reopened.

The simple fix was to set the stack to null on close. A non-null
stack is a predicate for a non-null socket variable, so no additional
checks are needed in socket functions.
2016-12-30 12:41:08 +00:00
Bartek Szatkowski ee61f3db5f Add defined port fallback for network echo tests
The 0 aka 'any' port doesn't for on Mac, but, only, using defined port
may interfere with running multiple tests on CI.
2016-12-19 14:40:07 +00:00
Bartek Szatkowski f5b4966e3e Fix network echo test host scripts for Mac
It seems that the 0 aka 'any port' doesn't work well on Mac, causing
[Errno 49] Can't assign requested address errors.
2016-12-19 14:40:05 +00:00
cyliangtw ed4e3bb7f8 Fix LWIP implementation contains printf issue #3441 2016-12-19 14:40:04 +00:00
Simon D Hughes 38b4e1158c Corrections of debug trace statements which prevent compilation when CFSTORE_DEBUG is defined. 2016-12-19 14:38:54 +00:00
Mahadevan Mahesh bbdcae3c0a K66F: Enable LWIP feature
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-12-19 14:38:42 +00:00
Laurent MEUNIER b28687ffca Add more supported boards to I2C master slave asynch test 2016-12-19 14:38:24 +00:00
Mika Leppänen f1c1cf4929 Squashed 'features/FEATURE_LWIP/lwip-interface/lwip/' changes from d7a6c6d..cd60f73
cd60f73 Merge branch 'mbed-os-lwip-rc2-maint' into mbed-os-lwip-rc2-maint-prefixed
3a50479 fixed bug #49676 (Possible endless loop when parsing dhcp options) & added unit test for that

git-subtree-dir: features/FEATURE_LWIP/lwip-interface/lwip
git-subtree-split: cd60f73f110829e00df46593fea5db26bcfb1662
2016-12-19 14:38:09 +00:00
Steven Cooreman ec29f2e3f2 Revert "[EFR32] Adding hardware acceleration for mbed TLS"
This reverts commit c0301b15d2.
2016-12-19 14:37:57 +00:00
Steven Cooreman cf461c504f Move Nanostack driver to Nanostack folder
mbed compile doesn't support two different FEATURE_X folders being merged, so we'll have to move our nanostack driver into the Nanostack folder for the time being.
2016-12-19 14:37:23 +00:00
Steven Cooreman 15478b9ffa Make GreenTea respect STDIO baud rate 2016-12-19 14:37:13 +00:00
Steven Cooreman 24c01c2a7b Adding hardware acceleration for mbed TLS
Initial check-in of hardware acceleration support on EFR32 for mbed TLS (AES, SHA and ECC).
2016-12-19 14:37:07 +00:00
Michel Jaouen 2dae65a886 USBHAL.h : fix indentation 2016-12-19 14:31:55 +00:00
Michel Jaouen 2f3a3da00b USBAudio , USBSerial :fix call back 2016-12-19 14:31:54 +00:00
Michel Jaouen ea02d38b9f TARGET_STM : USB FS device support on ST HAL 2016-12-19 14:31:51 +00:00
Bogdan Marinescu acc5f68b9f Don't send events on close()
It's currently possible to generate a socket event when a non-blocking socket is closed:

1. _pending is set to 0 in https://github.com/ARMmbed/mbed-os/blob/master/features/netsocket/TCPSocket.cpp#L22
   when the socket is created.
2. close() calls event() in https://github.com/ARMmbed/mbed-os/blob/master/features/netsocket/Socket.cpp#L66
3. event() increments _pending, and since _pending is 1 it will call _callback() in https://github.com/ARMmbed/mbed-os/blob/master/features/netsocket/TCPSocket.cpp#L167

However, if send() (for example) is called, this can happen:

- send() is called and sets _pending to 0.
- when the data is sent, event() is called, which sets _pending to 1 and calls _callback().
- if close() is called at this point, there won't be an event generated for close() anymore,
  since _pending will be set to 2.

Same thing for recv. Also, same thing for TCPServer and UDPSocket.

This PR changes the initial value of _pending to 1 instead of 0, so that
events are never generated for close().
2016-12-08 10:48:54 +00:00
Mika Leppänen 9290b531ff Added clearing of ipv6 addresses to lwip bringdown function 2016-12-02 16:09:27 +00:00
Seppo Takalo 4f23ce5aab Rename timeout.c to not collide with Timeout.cpp
IAR builds put all object files in same directory, so same
prefix is not allowed.
2016-12-02 16:09:25 +00:00