Commit Graph

3150 Commits (mbed-os-5.9.2)

Author SHA1 Message Date
Przemyslaw Stekiel 126bf17ff4 NRF_52840: Fix us ticker counter size
It has been noticed that there is a problem with us ticker on NRF_52840 board after 32 bit counter has been used for us ticker on NRF52 family boards.
Currently NRF52 symbol is defined only for MCU_NRF52832 (not for MCU_NRF52840) and based on this symbol 16 or 32 bit counter is selected (16 bit for NRF51 family and 32 for NRF52 family).
Since MCU_NRF52840 defines NRF52840_XXAA and provides 32 bit counters, 32 bit counter should be selected also when NRF52840_XXAA symbol is defined.
2018-06-29 17:11:50 +01:00
jeromecoutant 6eb564f434 STM32 serial RX/TX active patch
In serial_tx_active and serial_rx_active functions,
we check the internal state value with

HAL_UART_STATE_BUSY_TX = 0x21U,
HAL_UART_STATE_BUSY_RX = 0x22U,

It seems that value can also be :
HAL_UART_STATE_BUSY_TX_RX = 0x23U,
2018-06-29 17:11:50 +01:00
jeromecoutant 77cb1ccc03 TARGET_STM32L4 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant 2e54baa03d TARGET_STM32L1 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant 91e7db00a6 TARGET_STM32L0 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant 7fa433d75d TARGET_STM32F7 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant b6cbec8a30 TARGET_STM32F4 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant f5830bf143 TARGET_STM32F3 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant b3292e2b2a TARGET_STM32F2 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant 56975a54fe TARGET_STM32F1 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant a4970221bf TARGET_STM32F0 astyle 2018-06-29 17:11:50 +01:00
jeromecoutant 91c3b4dc8f TARGET_STM astyle 2018-06-29 17:11:50 +01:00
Kari Haapalehto f01cd413fa Cleaning MTB_USI_WM_BN_BM_22, MTB_ADV_WISE_1530 and MTB_MXCHIP_EMW3166 targets These wiced targets are not supported at mbed-os 2 release, so removing "2" from release_versions. LWIP feature flag removed, since it isn't needed anymore. EMAC removed from device_has_add, since it isn't needed with these targets. "network-default-interface-type": "WIFI" has been added. 2018-06-29 17:11:50 +01:00
Marcus Chang 00a0c81217 Improve serial performance for NRF52 series
Time sensitive user callbacks are called through lowest priority
SWI handlers instead of the highest priority UART handler.
2018-06-29 17:10:17 +01:00
Marcus Chang f4aa4ff082 Make serial_putc non-blocking for the NRF52 series
Previous implementation would block until character had been
completely sent, which is not what the API specifies.
2018-06-29 17:10:17 +01:00
Marcus Chang e2ab561e3d Remove whitespace from NRF52 serial_api.c 2018-06-29 17:10:17 +01:00
Boting Ren 5570782b04 fix LED_RED mapping on NUCLEO_F429ZI 2018-06-29 17:10:17 +01:00
TomoYamanaka 8528353acc Modify RAM size definition of ARMCC for GR-LYCHEE
I modified RAM size of ARMCC compiler for GR-LYCHEE.
In case of GR-LYCHEE, RAM size is 3M Byte(including Non-Cache area), but there was a typo at MACRO definition.
2018-06-29 17:10:17 +01:00
TomoYamanaka 16f09712ee Support Bootloader for GR-PEACH and GR-LYCHEE
The mainly changes is below:
- Update scatter file, linker file for bootloader support
- Update the file for RZ/A1 serial flash boot loader
- Add "device name" and "bootloader_supported" in targets.json
2018-06-29 17:10:17 +01:00
TomoYamanaka a08c3ec5db Support Flash iAP for GR-PEACH and GR-LYCHEE
The mainly changes is below:
- Add flash_api.c
- Add the definition of SPI multi I/O Bus controller that is used for flash access
- Add "FLASH" as device feature
- Add the macro regarding information of the incorporated Flash
- Add the processing to expand code to RAM
2018-06-29 17:10:17 +01:00
Kari Haapalehto b955eb7e49 Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530 2018-06-29 17:10:17 +01:00
Mahesh Mahadevan f3207adac1 MIMXRT1050: Update to EVK Rev B
1. Add the IVT header to the binary as this is required for boot up
   This was earlier added by the DAPLink firmware. As it is no longer
   handled in DAPLink, the header needs to be added inside mbed.
2. Update drivers

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-06-29 17:10:17 +01:00
aqib nasim 27a5e47b8e adding USTICKER label for C027 2018-06-29 17:10:17 +01:00
Melvin van den berg 4d84c0329c - Fixed coding style - Set default pull mode to PullNone in gpio_irq_init 2018-06-29 17:10:17 +01:00
Melvin van den berg f59655629e Fixed broken InterruptIn.mode() in NRF5x target which didn't do anything: interruptIn always remained with pullup resistor enabled. 2018-06-29 17:10:17 +01:00
Marcus Chang 4a5e6a9d7d Fix SPI initialization for NRF52 series
New changes to Mbed error reporting in 5.9 exposed bug in SPI
driver where an instance was uninitialized twice which triggered
an ASSERT.

This fix keeps track of which instance has been initialized and
only calls uninit when it is safe.
2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 6048944f98 us_ticker_set_interrupt: fix bit-shift operation 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 6b9f91a519 Use lp_ticker.c for NRF51 and NRF52 boards 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel b3de87b62e Use common_rtc.h for NRF51 and NRF52 boards 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 1f0f9c2257 NRF5x: Increase lp us ticker interrupt priority
Set the second highest user level, leaving the highest for UART (we are having constant overflows) and two levels below for everything else.
This should increase the timer accuracy.
2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 1e49e4d45c NRF5x: Add bug fix for the first timer read.
It has been noticed that first read value can not be trusted.
2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel d6b7367bac Use common us_ticker.c for NRF51 and NRF52 boards 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 80b100eef5 NRF51, NRF52: Implement us_ticker_free() function. 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 9ecbc5b02b common_rtc_set_interrupt: Wrap <ticks_count> before comparisons
RTC counter is 24-bit. Upper layer handles counter size and wraps ticks count when interrupt is to be fired before passing it to common_rtc_set_interrupt(), but for consistency and safety reasons we can wrap it again in the NRF driver.
2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel 97b4f65216 NRF5x: Remove duplicate lp ticker initialization from I2C, flash, trng. 2018-06-29 17:10:17 +01:00
Przemyslaw Stekiel ae5848e29a NRF52_DK: Use 32 bit counter for us ticker (instead 16 bit counter) 2018-06-29 17:10:17 +01:00
Qinghao Shi fa8ceef3bb add comments about TIMER modes and set TIMER2 off by default 2018-06-29 17:10:17 +01:00
Qinghao Shi e23bde94ac change us_ticker_inited to static 2018-06-29 17:10:17 +01:00
Qinghao Shi 341f4b45e3 add disable interrupt function in us_ticker_free() 2018-06-29 17:10:17 +01:00
Qinghao Shi e6c3ad43bb update us_ticker driver and revert CMSDK headers changes 2018-06-29 17:10:17 +01:00
Qinghao Shi 537afa388c Enable new HAL us_ticker API on fast model MPS2 platform 2018-06-29 17:10:17 +01:00
Kari Haapalehto 1b18393b21 Add binary drivers for MTB_MXCHIP_EMW3166 2018-06-29 17:10:17 +01:00
Laurent MEUNIER 207dbb2ee2 STM32: Reduce HAL_deepsleep stack usage
There are cases where a call hal_deepsleep would overflow the idle task
stack, especially in developper or debug profile.

In order to avoid this case, we split ForceClockOutofDeepSleep
into two separate functions the two structure RCC_ClkInitStruct and
RCC_OscInitStruct are not allocated at the same time.
2018-06-29 17:10:17 +01:00
bcostm 9cd91a6868 fix hash alignment of F2, F7, L4 2018-06-29 17:10:17 +01:00
Mika Leppänen 787ea51bad K64F, K66F: Update the ENET PHY driver
PHY init and autonegotation is split into own functions.
2018-06-29 17:10:17 +01:00
Seppo Takalo 0b7e21a793 Provide default WiFi interface for Ublox EVK ODIN W2 2018-06-29 17:10:17 +01:00
Seppo Takalo e858b98073 Provide default WiFI interface for REALTEK_RTL8195AM 2018-06-29 17:10:17 +01:00
David Saada 38e8ac4617 Rename text region in ARM linker file for a few NXP CPUs 2018-06-29 17:10:17 +01:00
Juho Eskeli 5dcd26503a Make MTB_ADV_WISE_1570 respect MBED_APP_START & enable bootloader 2018-06-29 17:10:17 +01:00
Keyur Hariya a7b8ccc65d Rename files to fix warning
"aes.c" file name conflict in Maxim platform and mbedtls.
2018-06-29 17:10:17 +01:00