Commit Graph

3337 Commits (mbed-os-5.9.5)

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
Mirela Chirica 5d46e285ca Cellular: WISE_1570's system clock back to HSE_XTAL 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
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
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
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
bcostm 96cc81412b STM32F7: remove HAL_InitTick() declaration in us_ticker_data.h files 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
Ashok Rao 553cfe9def Changing default SPI CS pin to SD card on MTB 2018-08-13 14:44:27 +01:00
Kari Haapalehto 4f14ea7726 WiFiInterface::get_target_default_instance() added to TARGET_WICED. 2018-08-13 14:44:27 +01:00
cyliangtw 37aa036117 Fixed NUC472 SD & EMAC IP reset define 2018-08-13 14:44:27 +01:00
Nis Madsen 81b75d482d MPS2 platform: Enable interrupt on rx for UART 2018-08-13 14:44:27 +01:00
Mika Leppänen 921920846a On STM32F439xI IAR linker file decreased stack size and increased heap
Decreased stack size from 24kB to 1kB (stack is used on boot-up/interrupt
handler). Increased heap size from 65kB to 89kB.

Change is related to issue https://github.com/ARMmbed/mbed-os/issues/7137
where UBLOX_EVK_ODIN_W2 runs out of heap on WLAN.
2018-08-13 14:44:27 +01:00
ccli8 7fcf7deddd Fix __user_setup_stackheap and ARM_LIB_STACK/ARM_LIB_HEAP cannot co-exist in RTOS-less build 2018-08-13 14:44:27 +01:00
ccli8 39c8d2958c Merge multiple ARM/ARMC6 sys.cpp into one 2018-08-13 14:44:27 +01:00
Cruz Monrreal II 6974f23e99 Fixed LWIP/EMAC issue for additional targets 2018-07-30 10:47:37 -05:00
Seppo Takalo 2dc22250a2 WICED based WiFi devices still need FEATURE_LWIP
This feature is removed from the master, as it is obsolete now.
LWIP is always build in on the master.
However, 5.9 this still needs to be enabled.
2018-07-30 10:47:36 -05:00
ccli8 f0c4e949c5 Replace __wrap__sbrk with overriding _sbrk
With _sbrk being weak, we can override it directly rather than #if to support heap with
two-region model.
2018-07-30 10:47:22 -05:00
zzw 93340828ae realtek rtl8195am remove DEVICE_EMAC
1, remove DEVICE_EMAC for wifi feature
2018-07-30 10:47:14 -05:00
zzw ad7cb6563c realtek rtl8195am remove DEVICE_EMAC
1, remove DEVICE_EMAC for wifi feature
2018-07-30 10:46:12 -05:00
Qinghao Shi d8290667d0 enable HAL FLASH API on Fast Models MPS2 targets 2018-07-30 10:41:46 -05:00
bcostm becdc31214 STM32L496: fix RAM size in ARM scatter file 2018-07-30 10:41:45 -05:00
justinkim ead552f22c fix timer Interrupt callback function bug 2018-07-30 10:41:43 -05:00
justinkim a1e2910192 add Systick configuration function in Init function 2018-07-30 10:41:43 -05:00
justinkim 6345835120 fix GPIO bug & typo initialization bug 2018-07-30 10:41:43 -05:00
justinkim 5c29ed8443 add GPIO Pad Type Define & fix typo 2018-07-30 10:41:42 -05:00
mattbrown015 822bf98c11 Improve GPIO IRQ edge detection when waking from deepsleep 2018-07-30 10:41:41 -05:00
Ganesh Ramachandran 82ce7c87c1 Resolved conflict in targets/targets.json 2018-07-30 10:41:38 -05:00
Ganesh Ramachandran 83d95ad918 Added Support for Toshiba TMPM3H6 2018-07-30 10:41:38 -05:00
PHST 72869a2789 Place "MBED_WEAK" for IAR-Toolchain before the type. 2018-07-27 13:44:00 -05:00
PHST fdbd6763dd Added missing include. 2018-07-27 13:44:00 -05:00
PHST 9b3f32137b Replace __attribute__((weak)) with MBED_WEAK 2018-07-27 13:44:00 -05:00
PHST 20a0e8fb77 Make PeripheralPins.c configuration tables weakly defined to be overridable for target EFM32GG11. 2018-07-27 13:44:00 -05:00
PHST d5adad5302 EFM32 Make PeripheralPins.c configuration tables weakly defined to be overridable.
See issue "https://github.com/ARMmbed/mbed-os/issues/7424#issuecomment-404233377"
2018-07-27 13:44:00 -05:00
jeromecoutant 48378cfd64 STM32F2/F4/F7 : LL API is now available 2018-07-27 13:43:58 -05:00
Steven Cooreman a4c40fda27 Add implementation for CRC API 2018-07-27 13:43:54 -05:00
RFulchiero 48fa58ba38 Improved formatting for preprocessor conditionals. 2018-07-27 13:38:58 -05:00