Commit Graph

10489 Commits (4f2850e283af459863a9bb520167663c3ec32305)

Author SHA1 Message Date
Anna Bridge a1d1a6037c Merge pull request #3888 from 0xc0170/fix_add_examples
tools: add new examples
2017-04-20 15:38:02 +01:00
Sam Grove 32401318a6 Merge pull request #4048 from tung7970/feature-lwipopt
Make LWIP options configurable
2017-04-20 09:05:31 -05:00
Rob Meades 4c5e89a5df [UBLOX_C030] 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-20 14:03:47 +01:00
Martin Kojtal 84eddd01c1 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-04-20 10:53:01 +01:00
Francisco J. Manno 4398b1f3c1 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-19 18:37:37 +01:00
Anna Bridge 2e2fe377b3 bus reset for KL25Z fix, USBSerial update
1. added call to busReset() to KL25Z HAL; now the USB stack survives if you disconnect the cable, similar to LPC40 2. busReset callback to update terminal_connected in USBCDC 3. new bool USBSerial::connected() to read protected terminal_connected property, useful when you want to check if the terminal is ready from main app
2017-04-19 15:38:51 +01:00
Sam Grove 247238d993 Merge pull request #4167 from 0x6d61726b/patch-2
Replace deprecated import and correct typo in c_blob_mbed.tmpl
2017-04-19 02:28:34 -05:00
Sam Grove 01767268cd Merge pull request #4142 from productize/master
EFM32: Fixed `pwmout_all_inactive` being inversed
2017-04-19 02:27:19 -05:00
Sam Grove c710f46993 Merge pull request #4179 from AlessandroA/uvisor_makefile_fix_cp_cmd
uVisor: Fix copy of quick-start doc in exporter script
2017-04-19 02:22:14 -05:00
Sam Grove 8a2ae245d0 Merge pull request #4175 from nvlsianpu/nRF52840_rm_apptimer
[NRF52840]: Remove unwanted nRF5 SDK's app_timer libarary.
2017-04-19 02:21:16 -05:00
Sam Grove a67eca5e72 Merge pull request #4173 from theotherjimmy/fix-cmsis-traceback
Fix Traceback in CMSIS export.
2017-04-19 02:20:21 -05:00
Sam Grove 0cfa96cf55 Merge pull request #4170 from theotherjimmy/fix-include-paths
Fix include paths for Windows builds
2017-04-19 02:19:23 -05:00
Sam Grove de6cce77be Merge pull request #4168 from theotherjimmy/gnuarmeclipse-more-templates
Generate GNU ARM Eclipse .mbedignore file with jinja2
2017-04-19 02:18:17 -05:00
Sam Grove af63b57f89 Merge pull request #4141 from tung7970/fix-mbedos
Fix mbed_board.c compiler warning
2017-04-19 02:17:08 -05:00
Sam Grove 7bd8c32f2d Merge pull request #4133 from u-blox/c030-debug-8mhz-xtal
U-BLOX_C030: Default XTAL is now 12MHz onboard. Option to use Debug 8MHz
2017-04-19 02:14:51 -05:00
Sam Grove 0beb95f1a6 Merge pull request #4074 from stevew817/siliconlabs/update_tbsense_2_pinout
[Silicon Labs] Update pinout
2017-04-19 02:06:54 -05:00
Sam Grove e532e0f446 Merge pull request #3991 from geky/fix-events-non-rtos-wait
events: Fix zero wait condition in non-rtos semaphore
2017-04-19 02:04:52 -05:00
Sam Grove 87610e700b Merge pull request #4152 from jeromecoutant/PR_ADC_F4_NEW
STM32F4 Internal ADC channels rework
2017-04-19 00:38:16 -05:00
Jimmy Brisson fb8fda3cee Merge pull request #4097 from bulislaw/build_debug_macro
Debug build flag + change to sleep behavior in debug mode
2017-04-18 15:05:02 -05:00
Sam Grove 5f9f8c5337 doxygen_options update
All fields are strings, not arrays. Update the PREDEFINED and
EXCLUDE_PATTERNS fields.
2017-04-17 21:13:59 -05:00
Mahadevan Mahesh 5b866b79d1 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-14 11:21:28 -05:00
maclobdell 77f4e23c0f [NCS36510] Reduce default heap size allocated by IAR to 1/4 of total RAM.
Allows mesh minimal example to compile with IAR.
2017-04-13 22:48:34 -05:00
Christopher Haster 4459e6d5a0 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-13 12:15:50 -05:00
Jimmy Brisson 61c4d50109 Fix typo in doxygen tag 2017-04-12 15:23:24 -05:00
Sam Grove f2cd27344e Add configuration file for docs.mbed.com builds 2017-04-12 12:59:57 -05:00
Sam Grove 9dd24f92c2 Disallow doxygen to render protected and private members 2017-04-12 11:48:02 -05:00
Jimmy Brisson 6a325673de 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-12 11:00:09 -05:00
Jimmy Brisson 157023342f Add license to configuration header 2017-04-12 10:50:43 -05:00
Jimmy Brisson 212a3dfd12 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-12 10:50:38 -05:00
Jimmy Brisson 1e21985ff7 Fail IAR exports without linker scirpts with NotSupportedException 2017-04-12 10:39:24 -05:00
Sam Grove 710af8f09b Add deprecation note to CAN attach
attach members not using Callback class are not compatible with
const and volatile types. This was missed when callback was initially
added
2017-04-12 10:30:33 -05:00
Jimmy Brisson 65adf446c5 Merge pull request #3993 from mbartling/supported-lists
Added list options for --supported command
2017-04-12 09:33:27 -05:00
Sam Grove 26b9a1f6a3 Enable doxygen to use the pre-processor
Best way to enable MBED_DEPRICATED APIs to be properly rendered
requires using the doxygen preprocessor. This means all device_has
labels need to also be defined or the default DOXYGEN_ONLY label
applied to the API headers which this commit does. ASYNCH currently
exluded.
2017-04-12 09:01:29 -05:00
Sam Grove cba75f467d Fix typo in doxygen group 2017-04-12 08:56:36 -05:00
Alessandro Angelino 8bc81e0efd uVisor: Fix copy of quick-start doc in exporter script 2017-04-12 14:28:43 +01:00
Andrzej Puzdrowski 67276e3785 [NRF52840]: fix coding style us_ticker.c 2017-04-12 14:34:14 +02:00
jeromecoutant 03972ebb0c STM32L4 Internal ADC channels rework
Internal ADC pins are now out of PinMap_ADC array
2017-04-12 13:14:58 +02:00
Andrzej Puzdrowski 55fbd7a299 [NRF52840]: Removed unwanted nRF5 SDK's app_timer libarary.
The Library is unused by the port. It breaks "non-rtos" compilation.
2017-04-12 11:43:11 +02:00
Andrzej Puzdrowski 560bd7403d [NRF52840]: fix:
- rtc overflow-while-set-timestamp issue
- timer has a race condition
2017-04-12 11:10:48 +02:00
Jimmy Brisson e307b907d6 Fix typo in LPCExpresso exporter template 2017-04-11 15:18:19 -05:00
Jimmy Brisson 7c40343e74 Fix include paths for Windows builds 2017-04-11 14:26:14 -05:00
Jimmy Brisson 6fa1de2161 Generate GNU ARM Eclipse's .mbedignore with Jinja2 2017-04-11 14:11:44 -05:00
0x6d61726b 5be47f1e2b Update c_blob_mbed.tmpl
- critical.h is deprecated, replaced with "platform/mbed_critical.h"
- typo corrected
2017-04-11 20:30:34 +02:00
Martin Kojtal 7d65b0f644 Merge pull request #4148 from ARMmbed/revert-4118-PR_REWORK_INTERNAL_ADC_F4
Revert "STM32F4 Internal ADC channels rework"
2017-04-11 13:39:04 +01:00
jeromecoutant d1fa95184f STM32F7 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array
2017-04-11 12:56:13 +02:00
Martin Kojtal 971abf8b75 Merge pull request #4123 from neilt6/patch-3
Updated CAN to new Callback API
2017-04-11 10:18:27 +01:00
jeromecoutant 43ab8812d7 STM32F2 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array
2017-04-11 11:16:46 +02:00
jeromecoutant 7da6960cfe NUCLEO_F207ZG: I2C_3 is not available 2017-04-11 10:41:57 +02:00
jeromecoutant 613cc3d6d9 STM32F4 Internal ADC channels rework
Internal ADC pin are now out of PinMap_ADC array.
2017-04-11 10:12:25 +02:00
Sam Grove b2cd20c5c5 Merge pull request #4122 from neilt6/patch-1
Fixed compiler warning in mbed_retarget.cpp
2017-04-10 16:38:08 -05:00