Commit Graph

8097 Commits (5f8fbac56f01bde28b2e82a7df742a5426836f9d)

Author SHA1 Message Date
Sam Grove 9e1b53f6d3 Merge pull request #2851 from geky/callback-function-objects
callback - Add size-limited function-object overloads to Callback
2016-09-28 15:00:09 -07:00
Sam Grove 6856a892ef Merge pull request #2841 from javier-moreno-tridonic-com/fix-border-router-shudown-reconections
Fixed assert failure on reconections
2016-09-28 14:59:52 -07:00
Sam Grove ab3e77f50a Merge pull request #2826 from jeromecoutant/PR_F410RB_THREAD
[STM32F410RB] update OS5 RTOS thread test
2016-09-28 14:59:29 -07:00
Sam Grove 7608401f2b Merge pull request #2810 from toyowata/master
[LPC1347] Fix PwmOut prescaler for 16-bit timer
2016-09-28 14:58:55 -07:00
Sam Grove 28a4b3e03a Merge pull request #2781 from jeromecoutant/PR_RTOS_Tests_clean
Clean RTOS tests after PR #2648
2016-09-28 14:58:43 -07:00
Sam Grove 3d1531fcb1 Merge pull request #2767 from mikaleppanen/lwip_2_0
Replace lwIP 1.4.1 with lwIP 2.0
2016-09-28 14:58:22 -07:00
Sam Grove 3f9a04ceca Merge pull request #2760 from svastm/lp_timer_f4
STM32F4 - Add low power timer
2016-09-28 14:57:31 -07:00
Mike Fiore fdd267cadf resolve multiple STM32F411RE configurations in mbed_rtx.h 2016-09-28 14:57:46 -05:00
Brian Daniels 10534019b9 Making all toolchains print final compiler message.
This functionality was already present in the ARM toolchain script, but
this commit adds this across all toolchain scripts. Solves an issue that
cropped up where a build error wasn't being printed unless the verbose
flag was used. This should now print any existing error messages that have
been printed when the compiler output is being parsed.
2016-09-28 14:42:35 -05:00
Brian Daniels 1448aa5770 Limiting uvisor example to just GCC_ARM toolchain 2016-09-28 13:09:11 -05:00
Brian Daniels 53ecfdb856 Adding the ability to filter examples by toolchains
This change was driven by the fact that certain
examples only support a subset of the toolchains.
2016-09-28 13:04:14 -05:00
Christopher Haster 161a2ec259 callback - Added size-limited function-object overloads to Callback
The callback class can now accept generalized function-objects:

    class Thing {
    public:
        int value;

        void operator()() {
            printf("hi! %d\n", value);
        }
    };

    Callback<void()> cb(Thing(2));

However, with the intention of avoiding implicit dynamic-memory
allocations, the Callback class is limited to a single word of storage.
Exceeding this size will eliminate the function-object type from the
overload set and fail to compile.

Effort was invested to make this situation very clear to the user. Here
is an example error message with noise removed:

    [ERROR] ./main.cpp: In function 'int main()':
    ./mbed-os/hal/api/Ticker.h:101:10: note:
        no known conversion for argument 1 from 'BigFunc' to 'mbed::Callback<void()>'

The real benefit of this change is the ability for users to hook into
the attributes of the Callback class. This mostly allows lifetime
management of the function-objects from third-party libraries (such as
the Event class from mbed-events).

Note: The convenient `callback` function may become ambiguous if
provided with a type that defines multiple incompatible `operator()`
member functions.
2016-09-28 12:23:29 -05:00
Christopher Haster 804a621231 callback - Moved internal dispatch mechanism to generated op-table
This allows additional attributes to be attached to the internally
generated type such as move and destructor operations with no increase
in RAM footprint.

The current overloads can't take advantage of this, but it does open
the possibility for more powerful overloads that can provide these
additional attributes.

Changes to mbed-os memory consumption:

        .text   .data   .bss
before  57887   2292    7692
after   57842   2292    7691
2016-09-28 12:23:24 -05:00
Sam Grove b481da44e9 Merge pull request #2843 from andresag01/update_mbedtls
Update feature/mbedtls with mbedtls' development HEAD
2016-09-28 06:48:24 -07:00
Vincent Coubard 597f104685 TARGET_NRF51822 - Override critical section enter/exit when Nordic SDK v10 is used.
This change is not located in the hal because SDK v10 is not available from this
place. It is safe to provide the implementation in BLE because the SDK V10 is
defined there. Default implementations of critical section enter/exit are safe
as long as the softdevice is not used.
2016-09-28 13:53:51 +01:00
Vincent Coubard c536392079 TARGET_NRF5 - Add critical section enter/exit overrides for NRF5 targets.
This change takes advantage of the reworked primitives of SDK v11.
2016-09-28 13:43:31 +01:00
Andres AG 11ee1de620 Update feature/mbedtls with mbedtls' development HEAD 2016-09-28 09:26:02 +01:00
javier-moreno-tridonic-com 51fd80bb63 Fixed assert failure on reconections
When the border router is switched off, the several retries will end up triggering the asserts in NanostackSocket::open. This is caused because socket_tbl elements, are never set to NULL.
2016-09-28 09:59:12 +02:00
svastm 0766d39746 STM32F4 - Enable the low power timer
Enable the low power timer for the following targets:
 - NUCLEO_F411RE
 - NUCLEO_F401RE
 - DISCO_F429ZI
 - NUCLEO_F446RE
 - NUCLEO_F410RB
 - DISCO_F469NI
 - NUCLEO_F446ZE
 - B86B_F446VE
2016-09-28 09:36:37 +02:00
svastm 21b11a26ec STM32F4 - Add low power timer 2016-09-28 09:31:03 +02:00
Vincent Coubard 1aa76b7724 HAL - Tag implementation of critical section enter/exit as weak so it can be overriden.
This change allows a port to provide its own implementation of:
* core_util_critical_section_enter
* core_util_critical_section_exit

Some system like the NRF series require specific behavior for the critical
section and now can override it properly.
2016-09-28 08:13:46 +01:00
jeromecoutant 7ec5de8c78 space correction 2016-09-28 09:10:25 +02:00
Mika Leppänen e5c291d347 Added version to nsapi get host by name 2016-09-28 08:48:45 +03:00
Mika Leppänen 1f98cc3d54 Corrected tcp socket send 2016-09-28 08:48:45 +03:00
Mika Leppänen 95383dde32 Added ipv6 support to lwip dns adaptation and updated dchp functionality 2016-09-28 08:48:45 +03:00
Mika Leppänen 283ee52228 Added lwip status parameter 2016-09-28 08:48:45 +03:00
Mika Leppänen 0a88251b6c Declare heap ourselves to specify section 2016-09-28 08:48:45 +03:00
Mika Leppänen 1d2130f032 Updated STM mac for lwip 2.0 and IPv6. 2016-09-28 08:48:44 +03:00
Mika Leppänen a349c1123c Updated VK_RZ_A1H mac for lwip 2.0 and IPv6. 2016-09-28 08:48:44 +03:00
Mika Leppänen c61973c954 Updated RZ_A1H mac for lwip 2.0 and IPv6 2016-09-28 08:48:44 +03:00
Mika Leppänen f270fcbd12 Updated LPC17 mac for lwip 2.0 and IPv6 2016-09-28 08:48:44 +03:00
Mika Leppänen f4e76bb704 Updated NUC472 mac for lwip 2.0 and IPv6 2016-09-28 08:48:44 +03:00
Mika Leppänen 2bad43d7ca Corrected K66F and K64F drivers to make "or" operation instead of "and" when multicast
group address is added to filter.
2016-09-28 08:48:43 +03:00
Mika Leppänen bb50717dc3 Updated lwip API and configuration files to lwip 2.0 2016-09-28 08:48:43 +03:00
Mika Leppänen 5f7a953325 K64F: Use older multicast filtering API 2016-09-28 08:48:43 +03:00
Mika Leppänen 2f9c5e92ef Updated K64F mac for lwip 2.0 and IPv6 2016-09-28 08:48:43 +03:00
Mika Leppänen 98c452dafb Added json configuration file and mbed ignore file to lwip stack. 2016-09-28 08:48:43 +03:00
Mika Leppänen 052d994f10 lwip 2.0 https://github.com/ARMmbed/lwip 2016-09-28 08:48:10 +03:00
Mika Leppänen ded3211e0b Squashed 'features/net/FEATURE_IPV4/lwip-interface/lwip/' content from commit d7a6c6d
git-subtree-dir: features/net/FEATURE_IPV4/lwip-interface/lwip
git-subtree-split: d7a6c6d768a300917c489e7b48d3708260926f20
2016-09-28 08:48:10 +03:00
Mika Leppänen 66f9ecd758 Delete previous lwIP
Leave an empty space for fresh subtree
2016-09-28 08:44:01 +03:00
Głąbek, Andrzej 86005da023 Merge branch 'master' of https://github.com/ARMmbed/mbed-os
* 'master' of https://github.com/ARMmbed/mbed-os: (63 commits)
  [XDOT_L151] add IAR support
  Modify mbedtls scripts to add config-no-entropy.h
  Remove extra spaces
  [XDOT_L151] include xDot in mbed 5 releases
  [STM32F429ZI] INITIAL_SP correction
  [STM32F091RC] patch for tests-mbedmicro-rtos-mbed-threads
  mbedtls trng - remove MBEDTLS_ENTROPY_HARDWARE_ALT
  targets - add TRNG device_has to STM32F7 targets
  mbedtls - move TRNG mbed impl into platform folder
  TRNG HAL - fix length doc wording for get_bytes
  HAL TRNG - add dummy variable to empty structs
  TRNG - protect HAL implementation if DEVICE_TRNG is not defined
  TRNG - remove set seed function
  HAL - RNG rename to TRNG
  HAL - rng nuvoton cleanup code style
  RNG - fix warnings due to obj not used for some targets
  RNG - rename rng_get_numbers to rng_get_bytes
  mbedtls - mbed wrapper rename to mbed_rng
  HAL: Add rng set seed value function
  NUMAKER_PFM_NUC472: Add RGN HAL API implementation
  ...

# Conflicts:
#	hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c
2016-09-28 07:06:28 +02:00
Sam Grove 58c12f19b2 Merge pull request #2824 from jeromecoutant/PR_F429ZI_SP
[STM32F429ZI] INITIAL_SP correction
2016-09-27 21:56:24 -07:00
Sam Grove 24f76f1f68 Merge pull request #2821 from jeromecoutant/PR_STM32F091RC
[STM32F091RC] patch for tests-mbedmicro-rtos-mbed-threads
2016-09-27 21:55:20 -07:00
Sam Grove 75cf25056c Merge pull request #2818 from pan-/fix_test_tools_warnings
TESTS TOOLS - fix warnings
2016-09-27 21:54:53 -07:00
Sam Grove 4a6558083e Merge pull request #2814 from bcostm/adcintch_F3
STM32F3xx - Add support of ADC internal channels
2016-09-27 21:54:27 -07:00
Sam Grove f22d5a7415 Merge pull request #2811 from bcostm/fix_sw4stm32_exporter_fpu
Fix sw4stm32 exporter fpu
2016-09-27 21:54:10 -07:00
Sam Grove f6ba3faced Merge pull request #2793 from akselsm/efm32-baudrate-fix
[EFM32] Set default baud rate to 115200.
2016-09-27 21:53:48 -07:00
Sam Grove 681cff8010 Merge pull request #2785 from pan-/remove_warnings_from_nordic_target
TARGET_NRF - Remove warnings from nordic target.
2016-09-27 21:53:28 -07:00
Sam Grove 816f028c5a Merge pull request #2756 from theotherjimmy/export-bld-dir
exporters - Add .bld directories to exported project
2016-09-27 21:52:57 -07:00
Sam Grove d204d69003 Merge pull request #2749 from bcostm/serialFC_disco-f746ng
DISCO_F746NG - Add Serial Flow Control pins
2016-09-27 21:52:37 -07:00