Commit Graph

10295 Commits (mbed_lib_rev142)

Author SHA1 Message Date
Jimmy Brisson 8d21974ba3 Merge pull request #4278 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.5
2017-05-09 10:57:46 -05:00
adbridge 499584744b Update MBED_LIBRARY_VERSION to v142 2017-05-05 16:48:53 +01:00
0x6d61726b c9313005fb removed warning: unused variable 'ethhdr' [-Wunused-variable] 2017-05-05 16:48:53 +01:00
Kevin Gilbert 5fb0d56d76 Fixed typos 2017-05-05 16:48:52 +01:00
Kevin Gilbert e52f649555 Addressed review comments: fixed unmapped switches and added Hexiware buttons 2017-05-05 16:48:52 +01:00
Kevin Gilbert ad8f2fcbdf Added mapping to USER_BUTTON-labelled switches
Revert HRM1017 file source deletion

Added in small comment next to additions

Added mapping to BTN-labelled switches

Added mapping to USER_BUTTON-labelled switches

Undo incorrect mapping to SWIO pin in NORDIC target
2017-05-05 16:48:51 +01:00
Kevin Gilbert 1b53295f46 Added mapping to BTN-labelled switches 2017-05-05 16:48:51 +01:00
Kevin Gilbert b1653431a8 Adding consistent button pin mappings 2017-05-05 16:48:50 +01:00
Adam Green 5fdf630396 Inherit Xadow M0 target from LPC11U35_501
targets/targets.json already added MCU_LPC11U35_501 as an extra label
but it didn't have LPC11U35_501 (without the MCU_ prefix). Both of
these target names are used as folder names to organize files
specific to this device. For example the LPC11U35.ld linker script used
by GCC_ARM for this target is located in a TARGET_LPC11U35_501 folder.

I switched to using inheritance to properly setup the target labels
based on @theotherjimmy comments on PR #4252. Everything in the
XADOW_M0 targe appears to have been copy/pasted from LPC11U35_501
anyway so inheritance seems to be the best way to set the values of
the XADOW_M0 properties.
2017-05-05 16:48:50 +01:00
Christopher Haster ed1daf62b2 Removed debug links to printf/exit in NDEBUG builds
Allows development of small applications where stdio is avoided
2017-05-05 16:48:50 +01:00
Jimmy Brisson b20bf0e623 Add a config test to check for failing bootloader images 2017-05-05 16:48:49 +01:00
Jimmy Brisson 7f12628fbb Error when bootloader is specified but does not exist
The changes to build_api.py make the error happen when running things
like get_config.py
2017-05-05 16:48:49 +01:00
Daniel Zimmermann 14a2801a1b LPC4088: Enable LWIP feature
This patch enable the LWIP feature for the LPC4088 and LPC4088_DM boards.
The lwIP stack support already this hardware.
See: ./features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c
2017-05-05 16:48:48 +01:00
Jimmy Brisson f97184af84 Add `mbed new .` output to export 2017-05-05 16:48:48 +01:00
Laurent MEUNIER f38998cae5 STM32 Fixed warning related to __packed redefinition
Before this patch, many warnings like below were generated
during compilation with ArmCC
[Warning] lwip_ethernet.h@57,0:  #3135-D: attribute does not apply to any entity

This happens here as ``--gnu`` option of ArmCC is being used, which
enables the GNU compiler extensions that the ARM compiler supports.

This is solve by adding a extra check on __CCARM .
2017-05-05 16:48:48 +01:00
Adam Green 2f2026e36f Fix C++11 build error w/ u-blox EVK-ODIN-W2
When attempting to perform a test build of various mbed-os targets with
GCC configured to build -std=gnu++11, all of the targets built
successfully except for this one. It gave errors like this:
    ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp: In function 'emac_interface_t* wifi_emac_get_interface()':
    ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp:331:38: error: use of deleted function 'emac_interface::emac_interface()'
             _intf = new emac_interface_t();
                                          ^
    In file included from ../mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/sdk/wifi_emac/wifi_emac_api.cpp:9:0:
    ../mbed-os/hal/emac_api.h:150:16: note: 'emac_interface::emac_interface()' is implicitly deleted because the default definition would be ill-formed:
     typedef struct emac_interface {
                    ^
    ../mbed-os/hal/emac_api.h:150:16: error: uninitialized const member in 'struct emac_interface'
    ../mbed-os/hal/emac_api.h:151:32: note: 'const emac_interface_ops_t emac_interface::ops' should be initialized
         const emac_interface_ops_t ops;

This commit contains a proposed change which fixes this issue by not
using the new operator to allocate the emac_interface_t structure but
instead using the malloc() function since the construction is being
handled explicitly in the subsequent lines of the
wifi_emac_get_interface() function anyway.

I also added code which only completes the initialization of the _intf
object if its allocation succeeds and just returns NULL otherwise.

I see no deallocation of the _intf object occurring so no change from
delete to free() needed to be made.
2017-05-05 16:48:47 +01:00
Martin Kojtal 5ab3fb8710 Config: config header file should contain new line 2017-05-05 16:48:47 +01:00
Chris ce2ea7f8ee fixed missing device_name for xDot and removed progen 2017-05-05 16:48:46 +01:00
adbridge 9bb5cfef69 Update.py: Tidy up Fn headers, make logger work globally
The function headers have been updated to follow the standard format
that should be being used for tools in mbed. This is a one line summary
followed by a descriptive block with more detail.
Updated the handling of the main function so that the logger becomes
global and thus works across all the functions. This has been tested
with both the fork and branch options, and for levels INFO and DEBUG.
2017-05-05 16:48:46 +01:00
Anna Bridge 4f15ea7cdb Updated script to add an extra feature and general improvements.
Added the ability to specify a branch to update rather than a fork
Replaced print commands with the use of a logger
Updated the run_cmd functions in line with previous improvements
2017-05-05 16:48:46 +01:00
Martin Kojtal a1fafd5add test - add nanostack to examples.json file 2017-05-05 16:48:45 +01:00
maclobdell eccd4fbe28 Reduce default heap size allocated by IAR to 1/4 of total RAM.
Allows mesh minimal example to compile with IAR.
2017-05-05 16:48:45 +01:00
Martin Kojtal 3f549ad1e7 tests: race test - add not supported for single threaded env
Fixes #4196. As someone might not be aware that settting default_lib to small has
some implications regarding thread safety, therefore we print an error.
2017-05-05 16:48:45 +01:00
Jan Jongboom 83d186a355 Visual Studio Code exporter 2017-05-05 16:48:44 +01:00
Matteo Italia 9934b91c1e Updated year in license header 2017-05-05 16:48:44 +01:00
Matteo Italia 614d1f3b98 Qt Creator exporter: added derivation from GccArm Makefile
this allows Qt Creator to build the generated project "out of the box",
enabling integration with the "Issues" list
2017-05-05 16:48:43 +01:00
Matteo Italia c2f5aa19a7 QtCreator exporter: switch to jinja-based templates
this also makes so that the export directory setting is honored
2017-05-05 16:48:43 +01:00
Matteo Italia e496a637c3 Added minimal support for Qt Creator projects 2017-05-05 16:48:42 +01:00
Steven Cooreman 6071b14fdc Rename targets
Due to limitation in the mbed website backend (board names need to be <= 19 characters), we are shortening the CLI target names from THUNDERBOARD to TB.
@screamerbg
2017-05-05 16:48:42 +01:00
Martin Kojtal ed4febefde Merge pull request #4209 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.4
2017-04-27 09:04:03 +01:00
Bartek Szatkowski 9ce6141626 MAX32630: Fix sleep definitions 2017-04-24 11:25:35 +01:00
adbridge c23bd8d513 Update MBED_LIBRARY_VERSION to v141 2017-04-21 15:42:26 +01:00
jeromecoutant 74c2273f42 STM32F2 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array
2017-04-21 15:42:26 +01:00
jeromecoutant c23fea7de0 NUCLEO_F207ZG: I2C_3 is not available 2017-04-21 15:42:25 +01:00
Rob Meades 896dc40630 make the UBLOX_C030 target private and introduce UBLOX_C030_U201 and UBLOX_C030_N211 for the two versions of the board (for the Sara U201 module and Sara N211 module respectively). These targets then inherit the UBLOX_C030 "base" target. The two targets are the same right now but will diverge when the cellular API is introduced. 2017-04-21 15:42:25 +01:00
Andrzej Puzdrowski 212d74ca94 fix coding style us_ticker.c 2017-04-21 15:42:25 +01:00
Andrzej Puzdrowski 92cfa96502 fix: - rtc overflow-while-set-timestamp issue - timer has a race condition 2017-04-21 15:42:25 +01:00
jeromecoutant 08e79cb6b3 STM32F7 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array
2017-04-21 15:42:24 +01:00
Francisco J. Manno 36b759e801 Fix gcc [-Wsign-compare] warning
[Warning] mbed_board.c@99,36: comparison between signed and unsigned
integer expressions [-Wsign-compare] is seen during compilation.
Fix the warning and small improvements.

1. Change type of loop variable "i" to the same type as "size".
   Size is > 0 checked by the if statement and i stops at == size
   so none can be negative. However size still needs to be signed
   to detect error codes from vsnprintf.
2. Reduced scope of stdio_out_prev and make sure it's initialized.
3. Define a name for the error buffer size and use vsnprintf instead
   of vsprintf to avoid writing outside of the array.
   NOTE: the if(size > 0) statement doesn't need to change. If
   the message to write is larger than the buffer size vsnprintf
   truncates it automatically but still returns a positive value.
2017-04-21 15:42:24 +01:00
Christopher Haster 66e705da2e events: Remove strict-aliasing warning
Several opaque buffers are used to to wrap c++ classes to pass
to the c layer. The reinterpret cast to c++ classes is fine as long
as the underlying buffer is not interpreted as different incompatible
types, or else the behaviour is undefined.

In the equeue_tick_init function, placement new is used to initialize
the buffers. However, this interprets the buffer as a simple array
of bytes, not the actual class type. Later the buffer is casted to
the class type. From the point of view of the compiler, these two
types are incompatible, and the compiler is free to reorder the
operations under the assumption that they can't affect each other.

Reinterpet casting the buffer to a class pointer before using
placement new insures that the buffer is only interpreted as a single
type. Or simple using the return value from placement new will handle
the aliasing appropriately.
2017-04-21 15:42:24 +01:00
jeromecoutant 559fe3dec6 STM32L4 Internal ADC channels rework
Internal ADC pins are now out of PinMap_ADC array
2017-04-21 15:42:24 +01:00
Jimmy Brisson 54e1e55844 Fail IAR exports without linker scirpts with NotSupportedException 2017-04-21 15:42:23 +01:00
Jimmy Brisson ad8faab60a Fix typo in LPCExpresso exporter template 2017-04-21 15:42:23 +01:00
Jimmy Brisson 2ac978fd53 Add license to configuration header 2017-04-21 15:42:23 +01:00
Jimmy Brisson 38505300a5 Move config to own dir
I also broke the config header template into it's own file. Further, I
fixed a bug in the config header generation where if no macros, builds
would crash.
2017-04-21 15:42:23 +01:00
Mahadevan Mahesh 7f1ffbdb06 MCUXpresso: Update ARM linker files to reduce RAM reserved for stack & heap
Heap and stack size is determined via the RTOS.

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-04-21 15:42:22 +01:00
Brian Daniels 8521f71386 Removing old filesystem test 2017-04-21 15:42:22 +01:00
jeromecoutant 8e4c9c3238 STM32 increase IAR heap size for big RAM targets 2017-04-21 15:42:22 +01:00
Andrzej Puzdrowski 6b4acbbf7e us_ticker: - extarct for check rtc overflow - make common_rtc_32bit_ticks_get safe against preemption. 2017-04-21 15:42:21 +01:00
Andrzej Puzdrowski 3a2718b5c5 If rtc overflow occurr while setting of timestam then the ccompara-event ocurre (erroneusly) in 512s. - move ovf handler at the begining of rtc handler for mitigate the case (mitigate issue for exexution from rtc handler) - add repeating of operation of set a timestamp in cas that rtc overflow occured during the operation. 2017-04-21 15:42:21 +01:00