Commit Graph

17291 Commits (mbed-os-5.9)

Author SHA1 Message Date
David Saada 68a1629085 Rename text region in ARM linker file for Renesas & Realtek boards 2018-08-13 14:44:27 +01:00
Jimmy Brisson 5769f52e03 Fix Microlib compatibility for -t ARM
Missing from common flags:
 * `-D__MICROLIB`
 * `--library_type=microlib`

This patch adds them
2018-08-13 14:44:27 +01:00
Mirela Chirica 5d46e285ca Cellular: WISE_1570's system clock back to HSE_XTAL 2018-08-13 14:44:27 +01:00
Senthil Ramakrishnan 4d5ee560f4 Update Lwip error calls to use new error codes and mbed_error call 2018-08-13 14:44:27 +01:00
Laurent Meunier a89e26c6a0 Use HAL coding style for function naming 2018-08-13 14:44:27 +01:00
Laurent Meunier 7c1942c1e5 STM32: check for UART ongoing transfers before entering deepsleep
As suggested by Russ Butler in mbed-os issue #7328, and until there is an
implementation of mbed-os issue #4408, we are implementing a workaround
at HAL level to check if there is any ongoing serial transfer (which happens
if HW FIFO is not yet empty).

In case a transfer is ongoing, we're not entering deep sleep and
return immediately.
2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 37985e5912 factored out whole ediv rand check 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm dbeded5fbb MACRO the size of rand 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 3bbdf3446d factor out invalid rand function 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 986c42233f replaced lesc field usage with ediv&rand check 2018-08-13 14:44:27 +01:00
paul-szczepanek-arm de9bb5dde5 call the correct ltk function when SC is used 2018-08-13 14:44:27 +01:00
Oren Cohen cea311d621 Fix owner restoration and discard across nvstore init 2018-08-13 14:44:27 +01:00
Martin Kojtal faaa14c458 iar: MK22F use xx12 Freescale for 7.80.x
This fixes the failure for IAR regarding floating point.
2018-08-13 14:44:27 +01:00
Martin Kojtal a261fe170a iar: kl43 - use nxp MCU definition 2018-08-13 14:44:27 +01:00
Martin Kojtal b9ab52e503 frdm-k22f: fix IAR definition
Based on the https://www.keil.com/boards2/nxp/frdm_k22f/ - it contains xxx12 MCU.
However IAR 7.80 has only xxx5 version, thus leaving NXP added version as xxx5.
2018-08-13 14:44:27 +01:00
Martin Kojtal 7461844ec0 iar: remove nxp duplicate definitions
Fixes #7634
2018-08-13 14:44:27 +01:00
Teemu Kultala 3608cc78ce sms gt tests: rebase and astyle fix 2018-08-13 14:44:27 +01:00
Teemu Kultala 7d2d835687 sms gt tests: changes after review 2018-08-13 14:44:27 +01:00
Teemu Kultala e837425f88 sms gt tests 2018-08-13 14:44:27 +01:00
Mahesh Mahadevan 935e07e031 MXRT1050_EVK: Enable Sleep function and add SKIP_SYSCLK_INIT macro
SKIP_SYSCLK_INIT prevents reinitializing the SYS_CLK PLL used by SDRAM.
This PLL is setup during bootup by the ROM code.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-13 14:44:27 +01:00
Mahesh Mahadevan 5d509d2e1e MXRT1050_EVK: Sleep: add pre/post processing steps
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-13 14:44:27 +01:00
Mahesh Mahadevan b1166d4696 MXRT1050_EVK: Ensure certain low power function are linked to internal memory
Low power functions related to powering off FLEXSPI and SDRAM needs
to be copied to internal memory

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-13 14:44:27 +01:00
Mahesh Mahadevan e517862601 MIMXRT1050_EVK: Add Low Power Manager files
This is needed to support different Low-Power modes available
in MXRT1050

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-08-13 14:44:27 +01:00
Martin Kojtal 4907f92603 events: astyle fix 2018-08-13 14:44:27 +01:00
Juha Ylinen 42bee88cec Nanostack: fix error code
Return NSAPI_ERROR_NO_MEMORY if socket->open() fails
2018-08-13 14:44:27 +01:00
Edmund Hsu 5aa9b38f24 Resolve adi_tmr_ConfigTimer api conflict in us_ticker.c for both EV_COG_AD4050LZ and EV_COG_AD3029LZ 2018-08-13 14:44:27 +01:00
Edmund Hsu 2992546906 Resolve adi_tmr_ConfigTimer discrepancy between __ADuCM4050__ and __ADuCM3029__ 2018-08-13 14:44:27 +01:00
Edmund Hsu 63223b5ec6 Disable unused Configuration data from compiler warning Add __ADuCM3029__ constants 2018-08-13 14:44:27 +01:00
Edmund Hsu 5f98d4dfe2 Add C++ linkage for adi_tmr.h 2018-08-13 14:44:27 +01:00
Edmund Hsu ded45f91cf Add __ADUCM4050__ and __ADUCM3029__ to include MCU specific configurations 2018-08-13 14:44:27 +01:00
bcostm d380a3572b STM32: remove uart force_reset at init 2018-08-13 14:44:27 +01:00
Martin Kojtal a84f6e9d81 PR template: fix target update list
Not only new target, any target update goes to own section. This covers
target updates to SDK, HAL implementation, target list, etc.
All these go to patch releases.
2018-08-13 14:44:27 +01:00
paul-szczepanek-arm 0dbcf97742 set correct default privacy configuration for centrals 2018-08-13 14:44:27 +01:00
David Saada f7b83f6e81 FlashIAP: Add timing test 2018-08-13 14:44:27 +01:00
deepikabhavnani 14e04bc9f4 Remove inclusion of mbed.h and mbed namespace from filesystem code 2018-08-13 14:44:27 +01:00
ccli8 1ca35fee1c Organize file structure
This re-organization is to avoid duplicates regarding targets of the same MCU series.
2018-08-13 14:44:27 +01:00
TomoYamanaka daf5b7785c Renesas : Improve Flash iap
I modified the _page_program() because when the request of the size exceeding the maximum size(256 byte) per one writing of Flash recieved, it was not able to loop the writing with sifting the address every 256 byte.

Also I modified the return value of flash_get_page_size() because I found that the minimum size per one writing of Flash is 1 byte by reviewing Flash spec.
"FLASH_PAGE_SIZE" macro's value is remain 256, it doesn't be used at flash_get_page_size(), used at _page_program() for refferencing of the maximum page size.
2018-08-13 14:44:27 +01:00
Teppo Järvelin 5d516f5a0d Cellular: fixed greentea tests C027 and BG96. 2018-08-13 14:44:27 +01:00
bcostm 96cc81412b STM32F7: remove HAL_InitTick() declaration in us_ticker_data.h files 2018-08-13 14:44:27 +01:00
Edd Inglis 87d7b2b7fb An incomplete connect (either abandoned with a disconnect() or just failed of its own accord) would prevent futher connect()'s due to the CONN_IN_PROGRESS_FLAG remaining set. This change clears that flag in the two cases described. 2018-08-13 14:44:27 +01:00
Brendan McDonnell 9222e972dc fix comment copy/paste error 2018-08-13 14:44:27 +01:00
Martin Kojtal 6d75e61e63 cellular: fix tests that astyle breaks
Ignore TEST_GROUP by AStyle. As this uses macro, is not visible to formatter.
By default, it assumes it is a function and treats methods as blocks inside a
function (inlined {}). We ignore it.

We might just not format UNITTESTS in the future if we face similar issues
in the future.
2018-08-13 14:44:27 +01:00
Martin Kojtal 522ef29722 cellular: astyle fix 2018-08-13 14:44:27 +01:00
David Saada a709e91920 Add init reference count to all block devices 2018-08-13 14:44:27 +01:00
David Saada 57bd7109f8 Skip a few tests if not enough memory can be allocated for them. 2018-08-13 14:44:27 +01:00
TomoYamanaka b9bb017419 Add the clear process of "inited" flag in lp_ticker_free()
I added "lp_ticker_inited = 0" in lp_ticker_free() of lp_ticker.c, so
re-initialization will work.
2018-08-13 14:44:27 +01:00
TomoYamanaka b5fee237eb Implementation of LPTICKER feature for Renesas mbed boards
Although other venders implement this feature by using RTC, in my H/W(RZ_A1), I cannot use RTC because it does not satisfy the spec of LP Ticker (ms order and low frequency between 8 KHz and 64 KHz).
Therefore I implemented this feature by creating 1024 division by MTU2(Multi function Timer pulse Unit 2) in order to satisfy this spec.
As a result of investigating, the most unaffected channel among MTU2 placed on GR-PEACH and GR-LYCHEE was channel 3, so I use channel 3 for this feature.

- mbed_drv_cfg.h
  I added a macro of MTU2 channel to this file for commonalizing code for GR-PEACH and GR-LYCHEE, and referenced it's macro at us_ticker.c.
- targets.json
  I added a macro for enabling LP Ticker.
- mtu2.c mtu2.h
  I defined fuction of MTU2's clock supply and stop.
  Because MTU2 is utilized by pwm driver too, those function were referenced at lp_ticker driver and pwm driver.

- lp_ticker.c lp_ticker_init()
  In order to satisfy the LP Ticker spec, I implemented by creating 1024 division by MTU2.
  When an interrupt is required, it will be set with ticker_set_interrupt().

- lp_ticker.c lp_ticker_free()
  This function stops the counting and powerdown the lp_ticker.

- lp_ticker.c lp_read()
  This function returns the timer counter of MTU2.

- lp_ticker.c lp_ticker_set_interrupt()
  In order to satisfy specifications, I implemented lp_ticker_set_interrupt() function.

- lp_ticker.c lp_ticker_fire_interrupt()
  In order to satisfy spec, I implemented lp_ticker_fire_interrupt() function.
  Also I added GIC_EnableIRQ for allowing the interrupt at end of function.

- lp_ticker.c lp_ticker_get_info()
  To satisfy the spec, I implemented lp_ticker_get_info() function. The value of freq includes rounding off.
2018-08-13 14:44:27 +01:00
bcostm 659cebad3a F1 ST CUBE V1.6.1: add I2C patches 2018-08-13 14:44:27 +01:00
bcostm 7449c11e2f F1 ST CUBE V1.6.1
- stm32f1xx hal V1.1.2
2018-08-13 14:44:27 +01:00
Kimmo Vaisanen 70435d28f4 Lora: Fix cancel_sending
This commit fixes some bugs from cancel_sending() method:
-  System crashed if method was called before initialization.
   Now LORAWAN_STATUS_NOT_INITIALIZED will be returned.
-  Method returned LORAWAN_STATUS_BUSY error when no send request was pending.
   LORAWAN_STATUS_OK should be returned in this case.
-  LORAWAN_STATUS_BUSY is now returned if backoff timer is just about to be
   dispatched (time_left returns 0).
2018-08-13 14:44:27 +01:00