Commit Graph

26716 Commits (b9d824d67cb15cf43a205aa5c78336aaa2aaeecf)

Author SHA1 Message Date
Kyle Kearney b9d824d67c Avoid stale mutex in QSPIFBlockDevice::read
Update to follow the same `goto exit_point` pattern that is used
by the rest of the functions to avoid leaving the mutex locked
when errors are detected and require the function to abort.
2019-11-18 15:42:08 +00:00
Kyle Kearney 6003dbe6b0 Reuse existing error for _qspi_configure_format
Use QSPIF_BD_ERROR_DEVICE_ERROR instead of introducing a new error code.
Add tr_error calls whenever _qspi_configure_format fails to aid in debugging.
2019-11-18 15:42:08 +00:00
Kyle Kearney 2b3ee26f62 Report errors returned by _qspi_configure_format
The function returns a qspi_status_t but most usages in QSPIFBlockDevice
assume that it always succeeds.
2019-11-18 15:42:08 +00:00
Kyle Kearney a114cd30bc Restore old qspi_alt_size_t values as compatibility macros 2019-11-18 15:42:08 +00:00
Kyle Kearney 6b1a21b7f0 Update STM driver changes for clarity
- Use a switch statement rather than shifting and masking to compute
  the AlternateBytes value.
- Rename rounded_size to alt_bytes to clarify its purpose.
2019-11-18 15:42:08 +00:00
Kyle Kearney aab40e07f3 Change qspi_inst_t typdef to int
Existing code may a dependency on the old behavior of "-1" to
mean "no instruction". Therefore, update the typedef, and the value
of QSPI_NO_INST, to avoid breaking those uses.
2019-11-18 15:42:08 +00:00
Kyle Kearney 4917bfabdf QSPIFBlockDevice: Fix incomplete propagation of qspi_inst_t 2019-11-18 15:42:08 +00:00
Martin Kojtal a69a2efae7 QSPIFBlockDevice: fix type on the namespace mbed 2019-11-18 15:42:08 +00:00
Matthew Macovsky 3b86b35616 Introduce qspi_inst_t type for QSPI instructions
Encourage the usage of consistent types (there are currently
 a mix of `int` and `unsigned int` used for qspi instructions)
QSPI commands are limited to 8 bits, to this is a typdef to char
2019-11-18 15:42:08 +00:00
Roman Okhrimenko a9eea6cdef Added specific policy file for 2M device to expand slot sizes 2019-11-18 15:42:08 +00:00
Roman Okhrimenko ba39ce30c0 Initial addition of files to support CY8CKIT_064S2_4343W target 2019-11-18 15:42:08 +00:00
Leszek Rusinowicz 060e8cfb8b FUTURE_SEQUANA: SPI HAL API fixes.
- Fixed miscalculation in SPI frequency setup (divider value).
- Added possibility to set up SCK line as NC (usable when SPI peripheral
   is used to handle non-SPI protocols.
- Fixed handlingh of 16-bit (and other >8 bit) transfers.

(cherry picked from commit 7d391f257b4ff6cdd7b43eeaa4894f8ce6d2cf8e)
2019-11-18 15:42:08 +00:00
toyowata 9ab22274a6 Add bootloader support for Seeed Arch-MAX 2019-11-18 15:42:08 +00:00
Mukund Ghonasgi 67fdf6c6f9 Address ARM Code review feedback. 2019-11-18 15:42:08 +00:00
Mukund Ghonasgi 64be6a7604 Update Target Cypress Specific Cordio BT Driver to keep Host MCU active for the duration BT device asserts HOST WAKE. This change fixes race condition in Cypress Cordio driver. 2019-11-18 15:42:08 +00:00
Laurent Meunier d92adcd28c Clearing UART TC Flag prevents deep sleep, so do not clear it
The TC flag is used in function serial_is_tx_ongoing to check if there is
an ongoing serial transmission. So this Flag must not be cleared at the
end of the transmission, otherwise, serial_is_tx_ongoing will notify that
TX is ongoing.

The impact is that it may prevent deep sleep to be entered.

Also there is no need to clear this flag at the end of the transaction
because it will be cleared automatically by HW when a new transmission
starts.
2019-11-18 15:42:08 +00:00
Veijo Pesonen 2ea642a45f NRF52840_DK: enables FLASHIAP for the device 2019-11-18 15:42:08 +00:00
d-kato 1a27863701 Fix multiple definitions of GR-LYCHEE 2019-11-18 15:42:08 +00:00
d-kato 7425838ab7 Add FLASHIAP to GR-PEACH component 2019-11-18 15:42:08 +00:00
Hugues Kamba b76394d6dd USBDevice: add documentation on USB suspend/resume to enter deep sleep
It is possible to temporarily suspend USB and safely preserve its
configuration. This is needed to allow a device to enter deep
sleep as a USBDevice instance prevents deep sleep. USB operation can be
suspended with `deinit` and restored with `connect`.
2019-11-18 15:42:08 +00:00
Kyle Kearney 87e138fe3c Fix swapped pins for CYW943012P6EVB-01 in cybsp_types
Fix the issue as 09f715c96e in
cybsp_types.h as well.
2019-11-18 15:42:08 +00:00
Kyle Kearney 0bc3d7ca33 Fix swapped BT pins on CYW943012P6EVB-01
The BT_DEVICE_WAKE and BT_HOST_WAKE pins were swapped relative to
how the chips are wired up on the board.
2019-11-18 15:42:08 +00:00
Maciej Bocianski 72760d7c7f EFM32GG11_STK3701: add QSPIF component config 2019-11-18 15:42:08 +00:00
Alexandre Bourdiol 1e351720a7 Mbed patch of STM32cube for bootloader: use NVIC_FLASH_VECTOR_ADDRESS 2019-11-18 15:42:08 +00:00
Alexandre Bourdiol bdb0082bc9 Update HAL/LL EXTI to have default API applied on current core and nott CPU1 2019-11-18 15:42:08 +00:00
Alexandre Bourdiol 7846c9fe91 SystemCoreClock should correspond to current core clock and not D1 clock. 2019-11-18 15:42:08 +00:00
Alexandre Bourdiol 5418d70813 DISCO_H747I Dualcore support
Add 2 targets for DISCO_H747I dualcore:
* DISCO_H747I      -> for CM7 core
* DISCO_H747I_CM4  -> for CM4 core

Current restrictions:
* TICKLESS deactivated
* DeepSleep not supported (DeepSleep wrapped to sleep)

Warning: use of the same IP (example I2C1) by both core at the same time is not prevented,
but is strongly not recommended.
Some Hardware Semaphore are use for common IP, to manage concurrent access by both cores: Flash, GPIO, RCC.

Warning: Drag and drop of binary to DISCO_H747I will flash CM7.
         In order to flash CM4, one can use STM32 CubeProgrammer tool.
2019-11-18 15:42:08 +00:00
Kimmo Vaisanen a7868daa89 Cellular: Change visibility of _is_connected as protected
AT_CellularContext::do_connect() is a virtual API and therefore can be overwritten in
inherited class. The problem was that it sets AT_CellularContext::_is_connected flag but
earlier it was set as private member making it impossible to set in overwritten do_connect()
method.

This commit fixes the problem by changing _is_connected as protected enabling its use
in inherited class.
2019-11-18 15:42:08 +00:00
Chris Trowbridge d8b3b5a453 Increase NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS from a default of 1 to 4 2019-11-18 15:42:08 +00:00
jeromecoutant efea334014 STMOD_CELLULAR: update readme 2019-11-18 15:42:08 +00:00
jeromecoutant fb35091432 STMOD_CELLULAR: remove flow control support for DISCO_L4R9I 2019-11-18 15:42:08 +00:00
Maciej Bocianski 1a2a3515ff nrf52 - fix i2c/twi driver
Sync TWI driver to sdk version 15.3.0 to get rid of data length limitation
2019-11-18 15:42:08 +00:00
Maciej Bocianski 13092277d4 nrf5x - add missing gpio_set implementation 2019-11-18 15:42:08 +00:00
Janne Kiiskila 67fbe49819 stm32f4xx_hal_pcd.c@346,22: unused variable 'ep'
Compiler warning fix, trivial. One function has an unused
variable, delete that line.
2019-11-18 15:42:08 +00:00
Kyle Kearney e28a6c5723 Enable tickless for PSoC6 targets 2019-11-18 15:42:08 +00:00
Alex Elium 0876d84613 mbed_rtc_time.h lacks an include guard
This PR adds it
2019-11-18 15:42:08 +00:00
Marcin Tomczyk 91806101c3 Disable emac multicast filtering for unimplemented/unsupported/unworking boards 2019-11-18 15:42:08 +00:00
Sathish Kumar Mani 9acdd53144 Fixes IPv6 multicast join issue
Problem Statement:
During multicast join sequence, InternetSocket::join_multicast_group() calls InternetSocket::modify_multicast_group(). modify_multicast_group() sets up the multicast group address (i.e., mreq.imr_multiaddr) to be joined and the interface address (i.e., mreq.imr_interface) to be used for the multicast join request. The interface address is initialized with the default value, which sets the version of interface address to NSAPI_UNSPEC. This results in LWIP::setsockopt() API to attempt IPv6 multicast join on the IPv4 interface address, hence IPv6 multicast join always fails with the protocol error.

Fix:
Initialize interface address version based on the multicast address version in LWIP::setsockopt(), before attempting multicast join operation.
2019-11-18 15:42:08 +00:00
Ryan Morse 5dc2f981a3 Update WHD to v1.40 2019-11-18 15:42:08 +00:00
Ryan Morse 2d757fc321 Fixed issue with integer overflow when converting time units 2019-11-18 15:42:08 +00:00
Shuopeng Deng 154d51b040 fixed spi_master_write to support transfer of 8+ bits
remove an unnecessary cast
2019-11-18 15:42:08 +00:00
Shuopeng Deng 61218d00ea Fix dropped bytes on spi write
The cyhal_spi_send api was changed to read and discard a byte on every
send operation (at the protocol level all SPI transfers are bidirectional).
This means that to achieve a truly bidirectional transfer, the
cyhal_spi_transfer API must be called (as opposed to a write followed
by a read).
2019-11-18 15:42:08 +00:00
jeromecoutant 82ecd19e9c STMOD_CELLULAR: set CTS with PullDown 2019-11-18 15:42:08 +00:00
Graham Hammond ea448f5144 IOTBTOOL-407 Fix microbit to use Arm C5
Earlier changes introduced a change to default Arm C6, which does not compile the micro library which is based on Mbed 2. This change fixes the compiler version for NRF51_MICROBIT devices.
2019-11-18 15:42:08 +00:00
Ron Eldor 463f00e723 Fix Failure in cc ecdh_alt montgomery curve
Change the order of the input keys and output secret given and
returned from the CC API, to address correct endianity.
2019-11-18 15:42:08 +00:00
Martin Kojtal 679d24833a
Merge pull request #11696 from ARMmbed/release-candidate
Release candidate for mbed-os-5.14.1
2019-10-16 23:08:49 +02:00
adbridge a4715aab32 "Update secure binaries for ARM_MUSCA_A1_S (ARMC6)" 2019-10-16 13:00:44 +01:00
adbridge 455bb9ec68 "Update secure binaries for LPC55S69_S (ARMC6)" 2019-10-16 12:31:35 +01:00
adbridge 070269295f Add OKDO platform
Manually ported from PR11407
2019-10-16 12:10:38 +01:00
Jarkko Paso 9051e21f39 Merge commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d'
* commit 'ffb05c770964013a9f1ee9fb89d25e9fd09e886d':
  Squashed 'features/nanostack/coap-service/' changes from e9edb1b..b919a33
2019-10-16 12:06:09 +01:00