Commit Graph

8739 Commits (mbed-os-5.2)

Author SHA1 Message Date
Anna Bridge d5de476f74 Fixup MBED_PATCH_VERSION
MBED_PATCH_VERSION should have been updated to 3 for this release.
2016-11-22 11:26:17 +00:00
Anna Bridge 342e565214 Merge pull request #3290 from ARMmbed/release-candidate
Release candidate for mbed-os-5.2.3
2016-11-21 11:03:06 +00:00
Anna Bridge d81681e296 Update MBED_LIBRARY_VERSION to 130 2016-11-18 12:55:42 +00:00
tomoyuki yamanaka 5859a367a7 Add API which cleans Dcache in IAR compiler.
In "core_caFunc.c" Renesas added the following API of IAR compiler version.
- __v7_clean_dcache_all()
- __v7_clean_inv_dcache_all()
2016-11-18 12:19:20 +00:00
Vincent Coubard f63fb2a26f 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-18 12:19:19 +00:00
Laurent MEUNIER 2430deab67 Update Serial following L0 HAL update 2016-11-18 12:19:18 +00:00
Laurent MEUNIER 4c18f0b5c0 STM32L0: Cube update V1.5.0 to v1.7.0
Including HAL and CMSIS udpate
2016-11-18 12:19:17 +00:00
Christopher Haster a328756578 callback - Added tests for inheritance and implicit casts 2016-11-18 12:19:15 +00:00
Christopher Haster dce5212292 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-18 12:19:13 +00:00
Christopher Haster d6e81b0320 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-18 12:19:12 +00:00
Laurent MEUNIER dd77d250eb 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-18 12:19:11 +00:00
Laurent MEUNIER 84d8a88553 test i2c asynch : test transfer return value 2016-11-18 12:19:09 +00:00
Laurent MEUNIER 21b4f0349f 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-18 12:19:07 +00:00
Laurent MEUNIER 2cf044dce5 Add few prints for I2C debug 2016-11-18 12:19:06 +00:00
Laurent MEUNIER 8a2df8cd53 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-18 12:19:05 +00:00
Laurent MEUNIER 4c0db1d8d0 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-18 12:19:03 +00:00
Laurent MEUNIER e0c8def28a 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-18 12:19:02 +00:00
Laurent MEUNIER c6e8bba0c5 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-18 12:19:01 +00:00
Laurent MEUNIER abc3c8d793 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-18 12:19:00 +00:00
Laurent MEUNIER 90a2cb376e STM32: I2C: use irq helper function 2016-11-18 12:18:58 +00:00
Laurent MEUNIER 4bf3ba7de3 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-18 12:18:57 +00:00
Laurent MEUNIER ae6dbbcc5d 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-18 12:18:56 +00:00
Laurent MEUNIER dc0980b083 STM32: I2C: Move up get_i2c_obj
so that it can be used as well in sync mode
2016-11-18 12:18:54 +00:00
Laurent MEUNIER cd04c2ea38 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-18 12:18:53 +00:00
Christopher Haster 16bba05f4e nsapi - Removed assertions on same-thread send/recv
Initially these assertions were added to protected simultaneous
send/recv from the same socket when similarly purposed mutexes were
removed.

However, simultaneous send/recv can still be useful for UDP if the
payload is guaranteed to be less than the MTU across the entire
connection.
2016-11-18 12:18:52 +00:00
ARM 6918c960c2 Prevent process pool inside of process pool when building tests 2016-11-18 12:18:49 +00:00
Brian Daniels bcf83c05dc Test spec baud_rate now set based on mbed config 2016-11-18 12:18:48 +00:00
Brian Daniels 3162e6caae Correctly casting toolchain features to a set.
Before, the get_config function was checking the equality of a set and a
list. However the list's equality depends on order, so this change casts
it to set to prevent an infinite loop.
2016-11-18 12:18:47 +00:00
micromint 99631dabb3 Fix default polarity on LPC43XX PWM driver 2016-11-18 12:18:45 +00:00
micromint 9d7dbcdcd6 Change MBED_DEPRECATED def order to support Keil 4 2016-11-18 12:18:44 +00:00
Laurent MEUNIER 7f329fee15 test i2c slave: use standard Arduino pins for NUCLEO_F411RE 2016-11-18 12:18:43 +00:00
javierpedrido c1d5e5d320 Added back USART 6 pins 2016-11-18 12:18:41 +00:00
Andrew Domaszek b0153b7fc5 Calculate PWM clock relative to bus clock 2016-11-18 12:18:40 +00:00
Bradley Scott a5544cd704 STM32F3: DISCO_F303VC - Add missing ADC pin muxing options
Corrects the incorrect PA_5 ADC channel mapping, and removes the
non-existent PB_11 ADC channel mapping.
2016-11-18 12:18:39 +00:00
Bradley Scott c36af53793 STM32F3: DISCO_F303VC - Add missing UART pin muxing options 2016-11-18 12:18:38 +00:00
Jimmy Brisson fdf77e7faa Allow dependency parsing to fail, gracefully continuing 2016-11-18 12:18:36 +00:00
Brian Daniels 1d99d7e77a Fixing invalid comment notation in assembly file 2016-11-18 12:18:35 +00:00
Brian Daniels f037e325b0 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-18 12:18:33 +00:00
Radhika 81c4681698 Modified user trim default values. 2016-11-18 12:18:30 +00:00
Radhika 09134cd2b0 Configuration of user trim moved to targets.json 2016-11-18 12:18:29 +00:00
Radhika b531cb948c User trim added. Astyle and pylint run on code. 2016-11-18 12:18:28 +00:00
Jimmy Brisson bb9c27821f Append targets to scan list for exporting tests 2016-11-18 12:18:26 +00:00
Tony Wu 81d667e1f3 netsocket - Fix set_ip_bytes out-of-bound access
set_ip_bytes() does a 16-byte memcpy from the input buffer to
the local nsapi_addr_t despite the address version.

If the address version is ipv4, the input buffer may only be
4-byte in size. This causes a out-of-bound access on the input buffer.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2016-11-18 12:18:25 +00:00
Tony Wu 82df0e1181 lwip - Fix lwip_mac_address buffer overflow
Sounds serious, but should be benign.

Signed-off-by: Tony Wu <tonywu@realtek.com>
2016-11-18 12:18:24 +00:00
Niklas Hauser 608eace3c8 Added the commit: Access MCG and SIM through secure access
This is needed for uvisor

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-18 12:18:22 +00:00
Mahadevan Mahesh 0a134b851a K64F ENET: Update to remove unused variable. This is no longer available in the updated SDK ENET driver 2016-11-18 12:18:21 +00:00
Mahadevan Mahesh 6c9715b738 K64F: Update to the latest SDK drivers
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-18 12:18:20 +00:00
jeromecoutant 2bc01394ea NUCLEO_F410RB: Add I2C_ASYNCH capability
It has disappeeared with https://github.com/ARMmbed/mbed-os/pull/2765
2016-11-18 12:18:18 +00:00
ccli8 9d9d432185 Reduce (interrupt) stack size from 4 KB to 2 KB 2016-11-18 12:18:17 +00:00
ccli8 dc88742fde Reduce (interrupt) stack size from 12 KB to 4 KB 2016-11-18 12:18:15 +00:00