Commit Graph

8819 Commits (8482aafa2aba3817e47379796b71c7b446a9c093)

Author SHA1 Message Date
Martin Kojtal 5c89e1f07a Merge pull request #3108 from pan-/nrf52_sleep_clean_fpu_irq
Fix sleep function for NRF52.
2016-10-26 12:51:49 +02:00
pradeep-gr 99bd584070 Conflict resolved 2016-10-26 15:07:52 +05:30
pradeep-gr 4e4823053a To resolve conflict 2016-10-26 15:00:19 +05:30
Marcelo Salazar 739ff674fc Folder re-org to fit new MCU K22F variances
This is a simple re-structure of the K22F folder to allow other MCU
variances to land here.
Created the MCU_K22F512 device but left the 'K22F' as a target for
the FRDM-K22F board.

Rebased to master
2016-10-26 10:29:15 +01:00
pradeep-gr b6e06bd04b LOAD_ADDRESS added 2016-10-26 14:43:21 +05:30
Steven Cooreman 8b36d9c55f [EFM32] Workaround for SDK5.0.0 and USB
Aliased a few macros that changed name from SDK4.x to SDK5.x. in order to make the USB library play nice with SDK5.0.0
2016-10-25 12:05:07 -07:00
Christopher Haster 2fd15f4f44 lwip - Fixed memory leak in k64f cyclic-buffer overflow
This was actually several bugs colluding together.

1. Confusion on the buffer-semaphore paradigm used led to misuse of the
tx semaphore and potential for odd behaviour.

2. Equality tests on tx_consume_index and tx_produce_index did not
handle overflow correctly. This would allow tx_consume_index to catch
up to tx_produce_index and trick the k64f_rx_reclaim function into
forgetting about a whole buffer of pbufs.

3. On top of all of that, the ENET_BUFFDESCRIPTOR_TX_READ_MASK was not
correctly read immediately after being set due to either a compiler
optimization or hardware delays. This caused k64f_low_level_output
to eagerly overrun existing buff-descriptors before they had been
completely sent. Adopting the counting-semaphore paradigm for 1 avoided
this concern.

As pointed out by @infinnovation, the overflow only occurs in the rare
case that the 120MHz CPU can actually generate packets faster than the
ENET hardware can transmit on a 100Mbps link.
2016-10-25 13:22:17 -05:00
Steven Cooreman a9fe108266 [EFM32] NVIC virtualization was not committed for CM0
This is a workaround to fix the breaking build until someone adds NVIC virtualization to the CM0plus CMSIS header
2016-10-25 09:51:25 -07:00
Bradley Scott 97eaed7b0a STM32F3: Eliminate two unused variable warnings 2016-10-25 10:59:19 -04:00
Bradley Scott 4f9bdf5ee0 STM32F3: Correct UART4 and UART5 defines when using DEVICE_SERIAL_ASYNCH 2016-10-25 10:58:38 -04:00
Martin Kojtal d7c02a13b1 Merge pull request #2953 from geky/nsapi-fix-ipv6-parsing
nsapi - Fix leftover bytes from suffix during ipv6 parsing
2016-10-25 14:37:38 +02:00
Martin Kojtal ecbfaa7a7b Merge pull request #3112 from geky/events-no-unused-id
events - Remove unused variable warning in ndebug builds
2016-10-25 13:58:57 +02:00
Anna Bridge 045b7d412d Minor review comments plus add new 'compile' option to examples json file.
Adding the new compile option allows the marking of a set of examples to
indicate whether they should be compiled or not. For the update process
examples that are not compiled will not be auto updated irrespective of
that setting.
Other changes to make return logic from some functions in update.py more
efficient and some typos in the lib file.
2016-10-25 12:37:29 +01:00
tomoyuki yamanaka ecff4225d4 Fixed the issue about push/pop of VFP register.
When the floating-point calculation is executed into the processing which is called from IRQ handlers, VFP register is overwritten.
Therefore, we fixed the issue. we added the process to execute the saving (Push) and the returning (Pop) of VFP register in before and after the appropriate processing.
2016-10-25 19:31:38 +09:00
Martin Kojtal 2175009bc5 Merge pull request #2938 from radhika-raghavendran/master
InterruptIn changes in NCS36510 HAL.
2016-10-25 11:58:39 +02:00
Martin Kojtal 4ec2f2e3ec Merge pull request #2943 from nvlsianpu/nrf_nvic_set_vector_func_trzy
[NRF5] NVIC_SetVector functionality
2016-10-25 11:10:03 +02:00
Martin Kojtal 26bf6eb599 Merge pull request #3089 from NXPmicro/Remove_Clock_Init
Kinetis HAL: Remove clock initialization code from serial and ticker …
2016-10-25 11:02:31 +02:00
Martin Kojtal 4d1d1c5b69 Merge pull request #3068 from MultiTechSystems/mdot-pin-updates
MultiTech mDot - clean up PeripheralPins.c and add new pin names
2016-10-25 10:47:59 +02:00
Marc Moreno Berengue e7829cd617 [BEETLE] Update BLE Cordio libraries
This patch updates the BLE Cordio libraries.

Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2016-10-24 17:41:23 +01:00
Marc Moreno Berengue a3eacfd8d1 [BEETLE] Update disable dualtimer irq function
This patch updates DualTimer_DisableInterrupt to
disable the interrupt timers individually.
In addition, it updates lp_ticker accordingly.

Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
2016-10-24 17:39:19 +01:00
Bruno Monteiro Pires 8c9d92079e [SDFileSystem] Fixed tab spacing from 0e8ba85
* Removed missplaced tabs

Signed-off-by: Bruno Monteiro Pires <brunomonteiropires@gmail.com>
2016-10-24 14:35:00 -02:00
Martin Kojtal e2efb35723 Merge pull request #3011 from RobMeades/master
Add u-blox Sara-N target.
2016-10-24 18:33:22 +02:00
Steven Cooreman 220363b099 This one slipped through 2016-10-24 18:30:03 +02:00
Alessandro Angelino eb86d12aee EFM32: Add support for uVisor 2016-10-24 18:29:51 +02:00
Alessandro Angelino 371d652a04 EFM32: Use SECURE_ACCESS to access the ROM table
To allow enabling of uVisor on EFM32, the ROM table must be accessed
through the CMSIS-provided SECURE_ACCESS macro.
2016-10-24 18:29:37 +02:00
Steven Cooreman 0b6ed71626 [EFM32] Move clock configuration to target settings
Moving the per-board clock configuration (which oscillators are available on the board, their frequencies, and which ones to use) as config options to the target database. This way, they're more easily overridable when third parties start creating boards with EFM32 MCUs
2016-10-24 18:29:25 +02:00
Steven Cooreman 758d160384 [EFM32] Collapse NVIC relocation handling
Gecko SDK 5.0.0 provides a convenient define for the amount of vectors wired on the chip, so we can use that to collapse the cmsis_nvic.h header
2016-10-24 18:29:00 +02:00
Steven Cooreman 7c0dd13bc6 [Silicon Labs][CMSIS] Patch CMSIS v4.2+ macros into mbed
The current version of cmsis shipping with mbed does not provide the __IOM and friends macros that became standard with CMSIS 4.2+. Patching these into CMSIS to allow vendors to continue updating their support libraries, awaiting a full CMSIS update in mbed (which is past due now).
2016-10-24 18:28:44 +02:00
Martin Kojtal 4fa5a80c84 Merge pull request #3084 from nvlsianpu/fix_gpioe_uninit
[nrf5] fix in Digital I/O : a gpioe pin was uninitialized badly
2016-10-24 18:27:28 +02:00
Martin Kojtal a0ca7eba07 Merge pull request #3092 from bridadan/parallelize-iar-build-system
[tools + tests] Adding parallelized build option for iar and uvision exporters
2016-10-24 18:26:07 +02:00
Steven Cooreman 3c450f1b37 [EFM32] Update emlib to version 5.0.0 in preparation for new targets
* Updated cmsis headers to match emlib 5.0.0
* Updated GPIO handling to match new header guards in use
* Updated linker scripts to match emlib 5.0.0
2016-10-24 18:26:02 +02:00
Steven Cooreman c60dacfccf [EFM32] Fix typo to targets.json 2016-10-24 18:25:34 +02:00
Steven Cooreman bb03e8c9e4 [EFM32] More condensation 2016-10-24 18:25:21 +02:00
Steven Cooreman 6315147faf [EFM32] Use serial configuration from platform
mbed added configuration options for default serial baud rate and stdio baud rate, so we can get rid of the workaround in the HAL
2016-10-24 18:25:11 +02:00
Steven Cooreman 1f3003fb22 [EFM32] Small fixes
* Use mbed_error
* Include cmsis headers by default when grabbing device.h
* Get rid of enum to uint casting in pinmap
2016-10-24 18:24:59 +02:00
Steven Cooreman 4df6986100 [EFM32] Use targets.json to improve directory structure
Now that we have targets.json, we get target inheritance and can use it to clean up the EFM32 folder structure.
* In the top-level EFM32 folder, there are now folders per MCU family (Giant, Leopard, ...)
* Those family folders contain the CMSIS headers in the 'device' subfolder, as well as global family headers (i.e. mapping of pins to peripherals)
* Inside of the family folder, there is a per-target folder containing target settings. In the future, we'll want to get rid of those by using the config system provided by targets.json
2016-10-24 18:24:49 +02:00
Steven Cooreman 6574f4d0a4 [EFM32] Clean up per-target Modules.h
Removed deprecated defines MODULES_SIZE_* and moved the setting for the SPI asynch transfer queue size to targets.json, where it apparently belongs
2016-10-24 18:24:33 +02:00
Steven Cooreman b766c48744 [EFM32] Condense common header files
First wave of squashing header files in order to get to a more sensible folder tree.
* Moved header files with 100% similarity to common folder
* Created a CommonPinNames.h header containing the base pin names P[A-F][0-15] and NC
2016-10-24 18:23:51 +02:00
Martin Kojtal 9cd14e29a7 Merge pull request #3110 from sam-taylor-arm/patch-1
Update README.md for 5.2
2016-10-24 16:09:27 +02:00
Vincent Coubard 501a00b1ac Add define for FPU_EXCEPTION_MASK 2016-10-24 14:15:34 +01:00
Sam Taylor fd9e9980ba Update README.md
Changed revision number and documentation links for the 5.2 release
2016-10-21 19:09:41 +01:00
Christopher Haster 2fefc05f08 events - Removed unused variable warning in ndebug builds 2016-10-21 12:51:55 -05:00
Vincent Coubard bd1ad99452 Fix sleep function for NRF52.
An active IRQ from the FPU can prevent the micro to go to sleep, even if this
IRQ is not enabled and not implemented. As a workaround, the FPU IRQ is cleared
before enterring sleep.
2016-10-21 14:47:44 +01:00
cyliangtw 85c45a5174 [NUC472] Fix SetBaudRate 5% inaccuracy issue 2016-10-21 14:01:17 +08:00
Jimmy Brisson 800792a42e Remove pycurl dependency 2016-10-20 16:24:47 -05:00
Brian Daniels d192491191 Making IAR exporter build test parallelized 2016-10-20 16:11:03 -05:00
Russ Butler d1a71eb9fc Merge pull request #3088 from andresag01/mbedtls-preoprocessor-checks
Add checks for NULL_ENTROPY and SSL_TLS in mbed OS
2016-10-20 15:51:24 -04:00
Russ Butler a6e199ac75 Merge pull request #3087 from theotherjimmy/update-packs
Update pack-derived files, and add safely test to uVision exporter
2016-10-20 15:30:05 -04:00
Bruno Monteiro Pires 0e8ba855a0 [SDFileSystem] Enable / Disable serial debug.
+ Added ``void debug(bool dbg)`` method to allow enabling/disabling
  serial debug at runtime.
+ Replaced calls to ``debug`` with ``debug_if`` to prevent messges
  from being thrown via serial when debug is disabled.

Signed-off-by: Bruno Monteiro Pires <brunomonteiropires@gmail.com>
2016-10-20 14:20:32 -02:00
Andres AG 509a72ca81 Add checks for NULL_ENTROPY and SSL_TLS in mbed OS 2016-10-20 17:07:32 +01:00