Commit Graph

10277 Commits (9bb5cfef69c88cf3072b243d0ea29de9700aa4c3)

Author SHA1 Message Date
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
0xc0170 1cbcf7d77e tools: add new examples
Bootloader, bootloader blinky and fat filesystem examples added.
2017-04-21 15:42:21 +01:00
Seppe Stas eeba630ca8 EFM32: Fixed `pwmout_all_inactive` being inversed
If one of the CC channel pins is enabled, `pwmout_all_inactive` it
means a channel is active so it should return `true`.

This commit also contains some cleanup in `pwm_init`.
2017-04-21 15:42:21 +01:00
Jimmy Brisson 1d68057a7a Fix Traceback in CMSIS export.
The traceback was caused when a file without a parent directory (which
is implicitly ".") is added to the resources object. The code assumed
that all files within the resources object would have a parent
directory.

This commit changes the check to account for files that are in the root
directory of a project and have no preceding `./`
2017-04-21 15:42:20 +01:00
Jimmy Brisson 18134bf8b3 Fix include paths for Windows builds 2017-04-21 15:42:20 +01:00
Jimmy Brisson d732f31a12 Generate GNU ARM Eclipse's .mbedignore with Jinja2 2017-04-21 15:42:20 +01:00
Tony Wu d922b5d567 Fix mbed_board.c compiler warning
Fix the following compiler warning.

Compile [ 63.7%]: mbed_board.c
[Warning] mbed_board.c@99,36: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Tony Wu <tonyw@realtek.com>
2017-04-21 15:42:20 +01:00
Rob Meades 708d606600 U-BLOX_C030: Default XTAL is now 12MHz onboard. Option to use Debug 8MHz XTAL by using Macro USE_DEBUG_8MHz_XTAL 2017-04-21 15:42:19 +01:00
Steven Cooreman 10e67bb837 Update pinmap of EFM32PG12 as well 2017-04-21 15:42:19 +01:00
Steven Cooreman 946321032c Support SPI CPP objects with different pinouts sharing the same peripheral 2017-04-21 15:42:19 +01:00
Steven Cooreman 15c28056c2 Update TB Sense 2
* Update i2c driver to tackle multiple I2C object instances on different pins
* Update pinmap to enable the extra peripherals of EFx32xG12 over EFx32xG1
2017-04-21 15:42:19 +01:00
jeromecoutant 4c166fc8b7 STM32F4 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array.
2017-04-21 15:42:18 +01:00
Sam Grove f98e0388cb Revert "STM32F4 Internal ADC channels rework" 2017-04-21 15:42:18 +01:00
Neil Thiessen 73a46c0e09 Updated CAN to new Callback API
Updated CAN to use new Callback assignment API in order to fix compiler warnings.
2017-04-21 15:42:18 +01:00
Neil Thiessen 8394968a12 Fixed compiler warning in mbed_retarget.cpp
Fixed compiler warning about openmode_to_posix() being declared but never referenced.
2017-04-21 15:42:17 +01:00
Jimmy Brisson b7b55db77a Allow configuration of artifact name in app config 2017-04-21 15:42:17 +01:00
Jimmy Brisson e6c44d633c Update gnuarmeclipse to preprocess linker scripts 2017-04-21 15:42:17 +01:00
jeromecoutant a8650d8e82 STM32F4 : remove SERIAL_TX and SERIAL_RX from available pins
Pins are used for debug printf
2017-04-21 15:42:17 +01:00
jeromecoutant 04e99642b1 STM32F4 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array.
2017-04-21 15:42:16 +01:00