Commit Graph

8217 Commits (8ca7ff2f5ba047eb6bfc0ee64bc0076a00c66de8)

Author SHA1 Message Date
jeromecoutant 42f40f98ed Correct RTOS MBED OS2 tests for STM32F3 2016-09-29 12:01:11 +02:00
Vincent Coubard dcf03310d0 NRF5 - Fix usage of volatile variable in nordic critical section implementations. 2016-09-29 10:05:02 +01:00
svastm d37e4d876d STM32L4 - Rename RTC_LSI 2016-09-29 10:00:48 +02:00
svastm f361a430ef STM32L1 - Rename RTC_LSI 2016-09-29 10:00:45 +02:00
svastm da44e99a1c STM32L0 - Rename RTC_LSI 2016-09-29 10:00:41 +02:00
svastm 57208bb651 STM32F7 - Rename RTC_LSI 2016-09-29 10:00:38 +02:00
svastm a0fd0d39c1 STM32F4 - Rename RTC_LSI 2016-09-29 10:00:34 +02:00
svastm faae46385f STM32F3 - Rename RTC_LSI 2016-09-29 09:52:05 +02:00
svastm 574e7b7622 STM32F2 - Rename RTC_LSI 2016-09-29 09:52:05 +02:00
svastm a4db938b7a STM32F1 - Rename RTC_LSI 2016-09-29 09:52:05 +02:00
svastm 9053d3b9ea STM32F0 - Rename RTC_LSI 2016-09-29 09:52:05 +02:00
javier-moreno-tridonic-com c1f2691ded Reverted the my change on argument parsing 2016-09-29 08:34:10 +02:00
Sam Grove 2564a833c0 Merge pull request #2822 from anangl/master
TARGET_NRF5: Removed waiting for TX completed from 'serial_putc()'.
2016-09-28 15:37:58 -07:00
Sam Grove fbce4e18b2 Merge pull request #2853 from bridadan/examples-toolchain-filtering
[Tests] Example build toolchain filtering
2016-09-28 15:30:55 -07:00
Brian Daniels abb6d2681e Adding memap tests and adding to travis ci 2016-09-28 17:27:25 -05:00
Jimmy Brisson ceda396e18 Add simple build profiles to toolchains 2016-09-28 17:25:24 -05:00
Sam Grove 48ac4aec25 Merge pull request #2830 from jeromecoutant/PR_L073RZ
[STM32L073RZ] update OS5 RTOS tests
2016-09-28 15:00:27 -07:00
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 cadcc80371 Handling Exceptions better when building tests
Previously, when building tests with test.py, if an exception occurred, the
error message would be masked by the function 'build_tests'. This commit
handles NotSupportedExceptions and ToolExceptions, but lets all other
Exceptions propigate up to the caller function. In most cases, this is the
CLI scripts, which will print a traceback. This will allow us to better
debug the python tools if errors occur.
2016-09-28 14:13:23 -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
Javier Gomez Moreno f8af872870 Added -d paremeter to unfold 'Misc' contents in memap.py 2016-09-28 11:58:27 +02:00
svastm 4226a17d6f SW4STM32 - Use targets.json to find fp config 2016-09-28 10:26:26 +02: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