Commit Graph

9300 Commits (2c5249b1964477c2b06218916a80e7f3d1f121cc)

Author SHA1 Message Date
Anna Bridge 805af00b87 Merge pull request #3194 from NXPmicro/Update_K64_SDK_Drivers
Update K64 sdk drivers
2016-11-10 17:05:02 +00:00
Anna Bridge baec7b3aec Merge pull request #3198 from jeromecoutant/PR_F410_ASYNC
NUCLEO_F410RB: Add I2C_ASYNCH capability
2016-11-10 17:04:28 +00:00
Anna Bridge 67e03ee065 Merge pull request #3211 from OpenNuvoton/nuvoton
[NUC472/M453] Support single UART shared by multiple serial objects and other updates
2016-11-10 17:03:42 +00:00
Bartek Szatkowski 3c06cdae7e WiFi tests: Make tests CI friendly 2016-11-10 17:03:26 +00:00
Anna Bridge a553b23250 Merge pull request #3217 from jeromecoutant/PR_F469_ASYNC
Add I2C_ASYNCH capability for DISCO_F469NI
2016-11-10 17:02:54 +00:00
Anna Bridge b10cf7f7dc Merge pull request #3220 from geky/rtos-deprecate-rtostimer
rtos - Mark the RtosTimer class as deprecated
2016-11-10 17:02:13 +00:00
Anna Bridge 96b3590248 Merge pull request #3222 from theotherjimmy/make-print-executable
[Export - Make] Add message that informs the user which hex to flash
2016-11-10 17:01:20 +00:00
micromint aede0fc6f3 Fix default polarity on LPC43XX PWM driver 2016-11-10 13:00:34 -04:00
Vincent Coubard 453045ab74 [BLE - NRF5] Add support for long write requests. 2016-11-10 16:58:07 +00:00
Anna Bridge 5fd81b37c3 Merge pull request #3232 from geky/nsapi-fix-gethostbyname-unspec-literal
nsapi - Fix missing NSAPI_UNSPEC check in gethostbyname for ip literals
2016-11-10 16:54:27 +00:00
Anna Bridge 120d05e5f0 Merge pull request #3247 from ARMmbed/fix_wifi_interface
WiFi: Minor fixes to docs and includes
2016-11-10 16:53:55 +00:00
Vincent Coubard 9649637e42 [NORDIC - NRF51 - MBED 2] Fix a bug related to the RTC interrupt enabled.
Enable the interrupt for the OS tick when the OS tick is enabled rather than
all the time. Otherwise, the interrupt will be triggered bu never handled.
2016-11-10 16:47:25 +00:00
Laurent MEUNIER e293e07749 stm32f4 make comment more explicit
As reported during review, this was not understandable as it is.
the get_i2c_obj allows to get a pointer to i2c_s struct from the
handle pointer. This therefore makes a hard-coded assumption
about the struct itself
2016-11-10 17:30:04 +01:00
Jimmy Brisson c3915215e4 Allow dependency parsing to fail, gracefully continuing 2016-11-10 10:04:36 -06:00
micromint 809b20738e Change MBED_DEPRECATED def order to support Keil 4 2016-11-10 09:59:28 -06:00
Laurent MEUNIER 458752262e test i2c slave: use standard Arduino pins for NUCLEO_F411RE 2016-11-10 15:25:46 +01:00
Bartek Szatkowski e116a66270 WiFi test Add support for mbed_app.json 2016-11-10 10:15:44 +00:00
Bartek Szatkowski e8b55cac46 WiFi tests: Only support Odin board 2016-11-10 10:04:46 +00:00
Bartek Szatkowski 34cc61f871 WiFi tests: Increase the timeout for ESP module 2016-11-10 10:04:46 +00:00
Bartek Szatkowski beef1d8b00 Add new WiFi tests
The tests try to:
  * scan for available networks and check whether specified networks
    are present in the results.
  * connect to and disconnect from the specified network.
  * repeats the scan tests while connected to a network.
  * connect to a network and perform simple HTTP query.
2016-11-10 10:04:46 +00:00
Laurent MEUNIER fa9d147f69 Update Serial following L0 HAL update 2016-11-10 11:03:46 +01:00
Laurent MEUNIER ab0a8ad508 STM32L0: Cube update V1.5.0 to v1.7.0
Including HAL and CMSIS udpate
2016-11-10 11:03:46 +01:00
Bartek Szatkowski db15c1a0a3 WiFi: Minor fixes to docs and includes 2016-11-10 09:40:48 +00:00
Mika Leppänen 4babe02b62 Added clearing of ipv6 addresses to lwip bringdown function 2016-11-10 09:07:35 +02:00
Sam Grove 7963e8e7c1 Merge pull request #3160 from peter-harliman/wrong_index_lpc43xx_tx_end_ring
Fix wrong index at LPC43xx tx end ring assignment
2016-11-09 15:22:14 -06:00
Sam Grove e175f619b2 Merge pull request #3010 from nuket/fix-uvision-hpp
Add .hpp to list of Uvision Exporter extensions
2016-11-09 15:21:55 -06:00
Christopher Haster 9c0c95a24b callback - Added tests for inheritance and implicit casts 2016-11-09 14:00:15 -06:00
Christopher Haster 3544228b47 callback - Adopted relaxed type-deduction for bound functions
Adopting relaxed type-deduction in bound functions better aligns with
the same overloads for member functions, and provides an alternative
solution for the void pointer cast issue, which removes a large amount
of cruft.
2016-11-09 13:45:25 -06:00
Christopher Haster 3ba3bb50f9 callback - Fixed type-deduction when inheritance is involved
The type deduction for the callback constructors was to strict and
prevented implicit casts for the context pointer stored internally.

As noted by @pan-, relaxing the contraints on the templated
parameters allows C++ to correctly infer implicit casts such as
conversions between child and parent classes when inheritance is
involved.

As an additional benefit, this may help the user experience by
defering invalid type errors to when the types are expanded,
limiting the number of error messages presented to users.
2016-11-09 12:42:42 -06:00
Christopher Haster b04a8da574 nsapi - Added test cases for gethostbyname
- test_dns_query
- test_dns_query_pref
- test_dns_literal
- test_dns_literal_pref
2016-11-09 12:11:02 -06:00
Brian Daniels f6e79cb111 Fixing invalid comment notation in assembly file 2016-11-09 12:09:09 -06:00
Brian Daniels 52dc7c5423 Renames all prebuilt binaries to be prefixed with 'lib'
This fixes an issue with make_iar, since IAR requires all libraries that
are linked to be prefixed with 'lib'.
2016-11-09 11:08:01 -06:00
Laurent MEUNIER 4c36b9cb77 test i2c asynch : test transfer return value 2016-11-09 18:03:09 +01:00
Laurent MEUNIER 3897d93b71 test i2c asynch: Remove printf usage from interrupt context
The cbmaster_done function is a callback which will be called from
the asynch I2C interrupt handler. Calling to printf from this context
sometimes lead to missing interrupts on the slave side. This was at least
encountered on STM32F3 MCUs.
2016-11-09 18:03:07 +01:00
Laurent MEUNIER b491165eac [STM32F4] Add few prints for I2C debug 2016-11-09 18:03:04 +01:00
Laurent MEUNIER a65bacc032 [STM32F4] Master receive sequential - fix for HAL I2C
in case of 2 consecutives calls to HAL_I2C_Master_Sequential_Receive_IT
with the Xfer mode I2C_FIRST_AND_LAST_FRAME, the second trasnfer does
not start at all.

It seems this is because the previous state is maintained as I2C_STATE_MASTER_BUSY_RX
and therefore the START condition will not be generated
2016-11-09 18:03:02 +01:00
Laurent MEUNIER a50dc77c60 STM32: I2C: Change the master sync implementation to use ITs
With this new implementation, as in slave implementaiton, we use the
interrupts instead of accessing to registers continuously.

This has 2 main advantages:
- this shall improve performances overall and allows for sleep
time in the future
- this also removes some direct registers access from this
layer of code and makes it more generic among families
2016-11-09 18:02:59 +01:00
Laurent MEUNIER ec95aa5701 STM32: I2C: Reset I2C in case of errors to recover
This is to avoid an IP / bus deadlock.

This requires to store scl and sda in order to call the init function.
2016-11-09 18:02:57 +01:00
Laurent MEUNIER 42d89b0665 STM32: I2C: Update Timeout computation
The timeout values are based on for loops and therefore should depend
on the core frequency and the I2C interface frequency.

This patch introduces this computation and base the timeout on the time
it should take to send a byte over the I2C interface. When sending a
number of bytes, this value can also be used.

In the loops, the timeout should also be decreased before the while
condition so that its value is 0 in case the timeout elapsed and this
can be treated as an error.
2016-11-09 18:02:54 +01:00
Michel Jaouen 06ebe4fab4 TARGET_STM32F4: USB with STM HAL for
NUCLEO_F401RE, NUCLEO_F429ZI, NUCLEO_F446ZE, DISCO_F407VG, NUCLEO_F411RE
2016-11-09 17:24:23 +01:00
Laurent MEUNIER 79504a6a38 STM32: I2C: Change the slave API implementation to use ITs
With this new implementation, the slave use the Interrupt
to be notified of a request from master, instead of
accessing to registers continuously.

This has 2 main advantages:
- this shall improve performances overall and allows for sleep
time in the future
- this also removes some direct registers access from this
layer of code and makes it more generic among families
2016-11-09 17:22:28 +01:00
Laurent MEUNIER d71537bb00 STM32: I2C: use irq helper function 2016-11-09 17:22:28 +01:00
Laurent MEUNIER c2060e34a3 STM32: I2C: Add-up irq handlers
With this commit we define I2C irq handlers that can be used by the driver
in sync mode. This also provides a mecanism for enabling and/or disabling
these handlers

Those handlers will be superseded by MBED ones in case of async mode usage.
2016-11-09 17:22:28 +01:00
Laurent MEUNIER 490437ae29 STM32: I2C: Move up get_i2c_obj
so that it can be used as well in sync mode
2016-11-09 17:22:28 +01:00
Laurent MEUNIER 0bee69023c STM32: I2C: Don't use global init variables
No need to store the init status of each IP.
Init can be called again in case we try to recover.
2016-11-09 17:22:28 +01:00
Laurent MEUNIER 2b53dfc453 STM32: I2C: configure slave address with HAL API
Instead of direct registers access, let's use HAL API.
This makes the code more generic accross STM32 families.
2016-11-09 17:22:28 +01:00
javierpedrido b7882d6e9b Added back USART 6 pins 2016-11-09 12:14:35 -03:00
Seppo Takalo c71abfed26 Update NanostackSocket to match API changes in v5.0.7 2016-11-09 16:07:13 +02:00
Seppo Takalo cbb300db9c Nanostack v5.0.7 2016-11-09 15:42:41 +02:00
Seppo Takalo e27c7840d7 Don't clone coap-service, it's subtree now 2016-11-09 15:34:58 +02:00