Commit Graph

12660 Commits (44fc3313d1f41c73bb14ad697fcc82846f42139c)

Author SHA1 Message Date
Tony Wu 44fc3313d1 rtl8195am - fix us_ticker interrupt handling
TIMER2_7_IRQ is shared among several timer sources, including
us_ticker. Raising TIMER2_7_IRQ pending bit will trigger the timer
interrupt, but the timer interrupt handler will not know which timer
source this interrupt is for. This patch sets timer load value to one
tick and force us_ticker to fire almost "immediately".

TIMER2_7_IRQ is handled through a common interrupt handler, and
is automatically cleared. Therefore, there is no need to clear IRQ.

The underlying timer HAL treats load value as micro-seconds and does
conversion internally. Therefore, simply pass micro-seconds to timer
HAL without converting to tick first.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2017-11-17 14:55:48 +00:00
johnny de51bcaac8 Add support for RedBear's BLE Nano 2
Cribbed from 4bf42f2e20

I'm not sure if if there are any copyright issues here with what is
effectively a set of config files. A few folks have been bugging me (and
the redbear folks) for these changes, so I wanted them somewhere
centralized.
2017-11-17 14:55:48 +00:00
Dave Wu 5408dae639 - Removed .mbedignore due to an issue with the eclipse exporter not picking up the ignored files; - Added #includes in BSP data C files so they can be built on their own without mbedignore; 2017-11-17 14:55:48 +00:00
Dave Wu f53e037f1f Added a check for the STUCK bit before reading the RNG data register to ensure there are no hardware faults. 2017-11-17 14:55:48 +00:00
dave.wu@analog.com 41c6084a1e - Added code to clear temporary variable on the stack before exiting the trng_get_bytes; - Removed lp ticker as it does not satisfy the requirements of the lp timer. 2017-11-17 14:55:48 +00:00
Dave Wu c4220ece9b Added default delay and sample times for the ADC during initialization. 2017-11-17 14:55:47 +00:00
Dave Wu a85563bcc5 - Cleaned up some formatting issues; - Fixed a build error in spi_master_block_write; - Some clean up in serai_api. 2017-11-17 14:55:47 +00:00
Dave Wu 46eae9f862 Added curly brackets for the single line if else statement. 2017-11-17 14:55:47 +00:00
Dave Wu 477c728b61 - Added error checking for trng_get_bytes function; - Added curly brackets to single line conditions in gpio_qpi.c and gpio_irq_api.c; - Changed rx and tx buffers in serial module as local variables; - Minor i2c & spi updates for github pull request; - Added function definition for spi_master_block_write. 2017-11-17 14:55:47 +00:00
Dave Wu 1a0470f869 Removed the custom app thread stack size. 2017-11-17 14:55:47 +00:00
Dave Wu 78d8379a82 Removed undefined spi slave related functions. 2017-11-17 14:55:47 +00:00
Dave Wu aa6872523e - Fixed an issue where the TRNG device is read even when it is not ready; - Added a configuration call in trng_init to make sure the TRNG buffering mode is disabled, so only 8-bit bytes are returned; - Moved the TRNG device handle into the trng_t structure; - Fixed some formatting errors in the adc driver. 2017-11-17 14:55:47 +00:00
Dave Wu af8b5d916f - Added definiton for i2c_reset; - Removed unneeded code from i2c and serial modules. 2017-11-17 14:55:47 +00:00
Dave Wu f5b6cda0ba Fixed a merge error for LPC11U34_421. 2017-11-17 14:55:47 +00:00
Dave Wu b1b4cfb5dc Fixed issues raised in the feedback from ARM for the ADuCM4050 platform. 2017-11-17 14:55:47 +00:00
Dave Wu 0105347b93 Added support for ADI EV-COG-AD4050LZ platform. 2017-11-17 14:55:47 +00:00
Andrea Corrado 6de5b39f3f introduced mbed Connect Cloud board based on ODIN-W2 Module rety commit, added ublox changes
Corrected error

Corrected error in targets json

Reworked JSON

Added lwip-eth to Connect ODIN removes ARM CC error

Fixed formating issues

Correct formating error in  .json

Indentation errors
2017-11-17 14:55:47 +00:00
Jammu Kekkonen 8dceef0492 HEXIWEAR: define HEXIWEAR target to support bootloader. 2017-11-17 14:55:47 +00:00
Kevin Gilbert 05a36aafe8 Remove build warnings in LWIP 2017-11-17 14:55:47 +00:00
Chris Snow 761c57876b Fix ETHMEM_SECTION placement for ARM on LPC1768 2017-11-17 14:55:47 +00:00
gorazd 9f9666eced add new target L-Tek FF-LPC546XX 2017-11-17 14:55:46 +00:00
Maciej Bocianski 69df251916 event queue test: fix out of memory problem for NUCLEO_F070RB 2017-11-17 14:55:46 +00:00
Senthil Ramakrishnan 6d967bbb54 Fixed doxygen_options.json 2017-11-17 14:55:46 +00:00
Senthil Ramakrishnan 88a91a5a9b Fix comments on mbed_assert.h 2017-11-17 14:55:46 +00:00
Senthil Ramakrishnan d3ca63edd5 Doxygen comment updates and fixes 2017-11-17 14:55:46 +00:00
Martin Kojtal bb3bd003c5 ncs36510: fire interrupt correct timer fix
Use Timer1, it is used for us ticker isr handling. Plus reset target counter,
that should be 0, go to upper ticker isr handler immediately.
2017-11-17 14:55:46 +00:00
Ryan Kurte a95fcbf40b Swapped to macro definition for debug prints 2017-11-17 14:55:46 +00:00
Ryan Kurte b1c4fa3f34 Added critical section around rf_start_cca 2017-11-17 14:55:46 +00:00
Ryan Kurte b66b28c08a Threaded wrapper for rail driver on EFR32 platforms
Updated NanostackRfPhyEfr32 with a receive queue.
Cleaned up debug messages, re-added to non-threaded calls.

Removed debug print override

Removed tr_debug override

Removed normal-operation prints that could have timing implications if enabled

Removed dead NVIC code (and a couple of dead log outputs)
2017-11-17 14:55:46 +00:00
Boting Ren c4a034fba7 Add mbed-cloud-client support on DISCO_L475VG_IOT01A with wifi_esp8266_v4.json. 2017-11-17 14:55:46 +00:00
jeromecoutant 5382081206 NUCLEO_L496ZG_P support 2017-11-17 14:55:46 +00:00
jeromecoutant 27d4b52a5f NUCLEO_L496ZG minor update 2017-11-17 14:55:46 +00:00
Filip Jagodzinski 5ead8ecceb Tests: RTOS: RtosTimer: Refactor for readability 2017-11-17 14:55:46 +00:00
Filip Jagodzinski 5fe9ee5571 Tests: RTOS: RtosTimer: Fix tests for NRF51_DK board
Additional delay is needed to prevent random failures when
waiting for a semaphore.
2017-11-17 14:55:45 +00:00
Kevin Bracey 781c0c7105 Shrink RTOS classes
Various RTOS classes were storing their CMSIS-RTOS creation attribute
structure as a member, when it's not required after construction. Reduce
memory by eliminating this member.
2017-11-17 14:55:45 +00:00
Maciej Bocianski 3aa46e6af0 small supplement for PR #5338 2017-11-17 14:55:45 +00:00
Laurent MEUNIER 157150ec91 STM32: Extend Ethernet RMII workaround
to all applicable devices part of F77x/F76x series.
2017-11-17 14:55:45 +00:00
Marcus Chang ce04e3db08 Increase flash size on Realtek RTL8195AM
The Realtek RTL8195AM has 2 MiB of external flash. This change
enables the FlashIAP driver to gain access to the full flash.
2017-11-17 14:55:45 +00:00
Laurent MEUNIER f81521adcc STM32: remove trailing white spaces 2017-11-17 14:55:45 +00:00
Laurent MEUNIER e20d35df27 STM32F4: Flash: fix 2MB GetSector computation
The computation of the sector number in GetSector for 2MB flash sizes
consists in adding an extra constant for 2MB dual bank (12 as in
ADDR_FLASH_SECTOR_12), then going through the same address check as if it
was an address of the first sector.

That means that we need to modify tmp and address as if it was a first bank
address, which we're doing here by sub_stracting 0x100000 delta.
2017-11-17 14:55:45 +00:00
jeromecoutant c2bba672df STM32F412 IAR linker file issue 2017-11-17 14:55:45 +00:00
Martin Kojtal 2f36cd78d6 test: realtek net config default to none
Changing this to none as result of build failures. Wifi needs own configuration
per an enviroment. By setting this to none, net tests are skipped for Realtek
platform.
2017-11-17 14:55:45 +00:00
danclement 889e22cce9 Checking in the fixes related to I2C issues.
Three main issues:
1) The 0x13 special case section in write data in ncs36510_i2c.c didn't have a write++ command.
2) In the same write function, the WDAT8 command was put before the 0x13 section and this is not correct
3) Needed to add wait_us(0) before and after the register writes for apparent clock domain crossing delay times until registers are stable in HW

There were also a handful of other tweaks related to general code maintenance and moving some status register checks to the proper locations.
2017-11-17 14:55:45 +00:00
Senthil Ramakrishnan d116c9d031 RealTek WiFi test configuration 2017-11-17 14:55:45 +00:00
Anna Bridge 78474a5129
Merge pull request #5427 from ARMmbed/release-candidate
Release candidate for mbed-os-5.6.4
2017-11-06 13:15:06 +00:00
Martin Kojtal ee7d82864c Update Mbed version block for patch release 2017-11-03 13:02:58 +00:00
Shrikant Tudavekar 8c386421fb Collect build artifacts disable cleanup
In preparation to exporter tests
2017-11-03 13:02:57 +00:00
Laurent MEUNIER 36190391cf STM32: Ethernet: Workaround for STM32_F767 revA
On STM32 F767 rev A devices ,Ethernet peripheral had problems on RMII
interface, on MII this was not the case.

This commits implements a tentative workaround for the issue rerfered to
as Ethernet erroneous data received in RMII configuration in the Errata
sheet below:
http://www.st.com/content/ccc/resource/technical/document/errata_sheet/group0/23/a6/11/0b/30/24/46/a5/DM00257543/files/DM00257543.pdf/jcr:content/translations/en.DM00257543.pdf

Note that the issue has been fixed in 'Z' revision. of STM32 F767 MCUs.
2017-11-03 13:02:57 +00:00
Vincent Coubard cfe4c7a649 BLE: Fix typos in iBeacon documentation. 2017-11-03 13:02:57 +00:00
Amanda Butler 756df3ebe4 Copy edit iBeacon.h
Make minor copy edits.
2017-11-03 13:02:57 +00:00