Commit Graph

8008 Commits (95383dde32fd49f19bee526631bf3c414bb627d9)

Author SHA1 Message Date
Toyomasa Watarai 1553c45fd2 break statement is on new line 2016-09-23 19:13:33 +09:00
Christopher Haster b371eb5269 callback - Reordered optional argument to static C function
Before:
Callback<void()> a = callback(obj, member)
Callback<void()> b = callback(context, function)

After:
Callback<void()> a = callback(obj, member)
Callback<void()> b = callback(function, context)

This ordering is more intuitive based on feedback from users. This order
was initially considered but proved problematic when integrated with
other variable arguments in attach functions.

With `callback` as a separate convenience function, this style
no longer presents a problem.
2016-09-23 04:52:58 -05:00
svastm 6d73dd338b STM32L4 - Update deepsleep implementation 2016-09-23 11:42:48 +02:00
Christopher Haster 64ac2105a3 lwip - Added option to set static IP addresses
Provided through the config options added to the network interface:
- EthernetInterface::set_network(ip_address, netmask, gateway)
- EthernetInterface::set_dhcp(dhcp)
2016-09-23 04:41:37 -05:00
Christopher Haster f0934fd0f1 nsapi - Added optional API for static configuration of network interfaces
This accomplishes two things:
1. Provides a simple route for adding static IP address support to the
   base NetworkInterface
2. Provides a simple route for adding configurability to network
   interfaces and unifies the network interface to consistent connect
   call, allowing network interfaces to be passed around abstractly

NetworkInterface
 - set_network
 - set_dhcp

WiFiInterface
 - set_credentials

CellularInterface
 - set_credentials
2016-09-23 04:39:13 -05:00
Martin Kojtal e4dde3460f Merge pull request #2774 from AlessandroA/uvisor_rpc
uVisor: Update to v0.25.0
2016-09-23 09:48:07 +01:00
Aksel Skauge Mellbye 3206d96487 [EFM32] Set default baud rate to 115200. 2016-09-23 10:32:56 +02:00
jeromecoutant ad4680abd2 [NUCLEO_F303ZE] MBED-OS5 capability 2016-09-23 09:24:55 +02:00
Christopher Haster 3e7b5ed6b9 Fixed rtx calls when inside critical sections
Before, rtx calls would hard fault in critical sections when an svc
instruction was attempted with interrupts disabled.

Required changes:
- Added check for CPSR I bit in cortex A rtx
- Added check for PRIMASK in cortex M rtx
- Modified critical sections in cortex M rtx to be recursive
  (already recursive in cortex A)
2016-09-22 21:19:22 -05:00
Sam Grove e9c556d356 Merge pull request #2757 from theotherjimmy/non-global-config
Refactor Target and Config away from global variables
2016-09-22 17:23:04 -05:00
Sam Grove 667c171760 Merge pull request #2754 from sarahmarshy/release_targets
New exporter build tests
2016-09-22 17:20:10 -05:00
Jimmy Brisson 2fe201cf10 Print percent complete when building 2016-09-22 15:10:03 -05:00
Sarah Marsh 16913b93a6 New build tests.
*Changes*
- Parallel export
- mbed-os tests added
- specified release version (default to 5)
- default tests AND targets dependent on specified release version
2016-09-22 10:03:34 -05:00
jeromecoutant c416a1286d [NUCLEO_F103RB] RTOS tests update
As this target has 20K RAM, default stack size needs to be tuned
2016-09-22 14:48:11 +02:00
Brian Daniels aeca796641 Fixing constant cleaning when compiling tests
This addresses the issue where building tests via test.py always triggered
a clean build. This is because the mbed_config.h file was being deleted from
the shared OS build to ensure that the correct config was always being
used. However, this contanstly triggered a rebuild of the OS since the
config file was not present.

Due to the shared build, having multiple app configurations that could
override the OS settings is not possible. For this reason, we now ignore
app config files unless explicitly set via the command line option
'--app-config'. Though there will now be two mbed_config.h files in the
include path of the build, it shouldn't matter since the contents will be
the same.
2016-09-22 08:30:21 -04:00
Vincent Coubard e8bddd6711 BLE - Legacy nordic implementation: Move static singleton into a function.
The change of scope all the code from BLE when this code is not used by the end
user application.
2016-09-22 12:10:14 +01:00
Vincent Coubard b4ac8f214a BLE - Nordic implementation: Move singleton into a function.
This change remove BLE code from the binary generated if the user code doesn't
use BLE.
2016-09-22 11:58:29 +01:00
Erwan GOURIOU 22d6bc076a [dev_asynch_i2c] reduce footprint for i2c_s struct 2016-09-22 09:52:21 +02:00
Erwan GOURIOU d7dda282c2 [dev_asynch_i2c] Extend asynch I2C to STM32F4 boards
Move i2c_s to common_objects.h
Introduce I2C Master/Slave asynch test
Test I2C asynch master/slave on STM32F4 boards
2016-09-22 09:52:21 +02:00
Erwan GOURIOU 1707b3c582 [dev_asynch_i2c] Move i2c_s to common_objects.h 2016-09-22 09:43:52 +02:00
Erwan GOURIOU 8982ff1971 [dev_i2c] Fix I2C byte transfer API to enable Master/Slave test on F411RE
i2c_byte_write could be used to send byte and address.
In case used for address, ADDR Flag should be reset.
2016-09-22 09:39:10 +02:00
Erwan GOURIOU d2c3dc3d08 [dev_asynch_i2c] HAL Fix to support Master Rx w/ repeated start
As per reference manual, closing communication for master receiver
with repeated start requires, after reading second last data byte
(after second last RxNE event):
-Clearing ACK bit (same as non repeated start case)
-Set START bit (instead of STOP bit in non repeated start case)
This is valid for I2C_FIRST_FRAME and I2C_NEXT_FRAME conditions
2016-09-22 09:39:10 +02:00
Erwan GOURIOU 4b42fc5a22 [dev_asynch_i2c] Test Asynch I2C on F411RE
Add single board I2C master/slave asynch test
2016-09-22 09:39:10 +02:00
Erwan GOURIOU 7632f7aa5c [dev_asynch_i2c] Enable asynch I2C on NUCLEO_F411RE
Dev Asynch I2c
One limitation linked to HAL bug:
Master RX(Repeated Start) KO
2016-09-22 09:34:51 +02:00
Erwan GOURIOU 6304980d70 [dev_asynch_i2c] Update I2C Tests to support F411 2016-09-22 09:34:51 +02:00
Tony Wu aa663ea42d RTOS - Move per-target RTX config to mbed_rtx.h
Disintegrate global RTX target config. Move per-target fragment
to mbed_rtx.h under each vendor's directory.

One mbed_rtx.h is defined for each vendor at this moment, however,
the granularity of mbed_rtx.h can be per-chip, or per-board
if necessary.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-22 15:09:49 +08:00
Sam Grove c1c1492fa7 Merge pull request #2744 from jeromecoutant/PR_STM32_IPV4
FEATURE_IPV4/TESTS: result status could be wrong
2016-09-22 01:21:35 -05:00
Sam Grove cc69dedac2 Merge pull request #2752 from ARMmbed/jenkinsfile
Update Jenkinsfile
2016-09-22 00:48:33 -05:00
Sam Grove 0c0455bf3f Merge pull request #2745 from pan-/disable_global_objects_destruction
Disable global objects destruction
2016-09-22 00:48:08 -05:00
Sam Grove c424913071 Merge pull request #2662 from mintisan/master
Update CONTRIBUTING.md
2016-09-22 00:47:44 -05:00
Sam Grove 28013dddc4 Merge pull request #2650 from svastm/lp_timer_f3
STM32F3 - Add low power timer
2016-09-22 00:47:30 -05:00
Sam Grove a994f47da9 Merge pull request #2640 from jeromecoutant/PR_F0_RB
[NUCLEO_F072RB-NUCLEO_F070RB] RTOS issues
2016-09-22 00:47:14 -05:00
Sam Grove 6fce892f05 Merge pull request #2614 from MarceloSalazar/uvision_default
Change default uvision exporter to uvision5
2016-09-22 00:46:18 -05:00
Sam Grove 4fa65a656e Merge pull request #2542 from LMESTM/dev_spi_asynch_stm32f4
Dev spi asynch stm32f4
2016-09-22 00:45:08 -05:00
Alessandro Angelino 2a42255bba uVisor: Update to v0.25.0
The update includes:

* Fixes to the ARMv7-M MPU driver.
* RPC APIs implementation.
* NVIC_SystemReset virtualization.
2016-09-21 18:16:33 +01:00
Mahadevan Mahesh c3b4a43bec Update KSDK SDHC driver for K64F & K66F
1. Use function pointer for interrupt handler, this should reduce the code-size
   for applications that do not use this driver
2. Fix the wait for initialization of the SD card
3. Fix SDHC driver support for non-word aligned accesses
4. Remove some redundant code & assert function calls.
5. Updated various comments

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-09-21 12:07:09 -05:00
Sarah Marsh b39fbd3273 Use single quotes to escape make commands 2016-09-21 11:30:58 -05:00
Alessandro Angelino 8c5200c37f uVisor: Fix the core selection pattern 2016-09-21 17:16:47 +01:00
Alessandro Angelino 373b0ba34a CMSIS 5: Virtualize NVIC_SystemReset
This applies only when the virtualization option is explicitly set.
Currently only uVisor virtualizes the NVIC APIs.
2016-09-21 17:15:42 +01:00
Martin Kojtal 2866e21bea Merge pull request #2701 from simonqhughes/master
CFSTORE Integration with Storage-Volume-Manager and Flash-Journal API update to the latest versions
2016-09-21 17:03:31 +01:00
Laurent MEUNIER b7a39d04d4 fixup! UTEST Spi Asynch 2016-09-21 13:49:57 +02:00
svastm e38b1d12fb STM32L1 - Enable the low power timer
Enable the low power timer for the NUCLEO_L152RE
2016-09-21 10:57:15 +02:00
svastm 37ee192205 STM32L1 - Add low power timer 2016-09-21 10:56:37 +02:00
Jimmy Brisson d4f9820577 Refactor Target and Config away from global variables 2016-09-20 16:09:22 -05:00
Jimmy Brisson ed3ee52c3b Add .bld directories to exported project 2016-09-20 15:33:00 -05:00
Laurent MEUNIER 04fe4d2588 [STM32F4 HAL] Avoid SPI spurious interrupt
If SPI TXE is not disabled at the end of transfer, MBED application
callback that is registered for transfer completion might be called twice
2016-09-20 19:25:25 +02:00
Laurent MEUNIER 00086a6f44 [STM32F4] Simplify spi Asynch transfer implementation
Following discussion on:

it seems now clear that the transfer API is meant to be used either
with only Rx, or only Tx or Rx and Tx with the same lenth.

Therefore we're removing support of transfers of Rx and Tx with different
lenghts - this makes porting to HAL more direct and simpler.
2016-09-20 19:25:25 +02:00
Laurent MEUNIER e68b550c2a [STM32F4] enable SPI ASYNCH 2016-09-20 19:25:25 +02:00
Laurent MEUNIER 3140b4bb29 UTEST Spi Asynch
Update test to be able to test on NUCLEO boards using generic
default pins definitions
2016-09-20 19:25:25 +02:00
Laurent MEUNIER c5323c13a8 [STM32F4] SPI: avoid duplicate information accross layers
Same information was stored in spi_api.c and STM32 HAL layers.
Modify code to avoid this duplicate information.
2016-09-20 19:25:25 +02:00