Martin Kojtal
27c0affef7
Merge pull request #8578 from cmonr/rollup
...
Rollup PR: Samll docs changes
2018-10-30 10:03:01 +01:00
Cruz Monrreal
5ed07c2dd4
Merge pull request #8328 from kjbracey-arm/noreturn
...
Error path tightening: use MBED_NORETURN; add+use core_util_atomic_flag
2018-10-29 20:49:54 -05:00
Cruz Monrreal II
8b58ed75b0
Merge branch 'kegilbert-patch-6' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-29 19:13:29 -05:00
Cruz Monrreal
c9eaddd7e0
Merge pull request #8487 from kegilbert/mbed_mem_trace_config_patch2
...
Update mbed_mem_tracing config option
2018-10-29 18:53:25 -05:00
Amanda Butler
9ab13df3bd
Make changes from comments to FileHandle.h
...
Address comments.
2018-10-29 14:09:16 -05:00
Kevin Bracey
ea16a6ba1d
Add MBED_NORETURN attributes
...
Save some ROM space by putting MBED_NORETURN attributes on error
functions and failed asserts.
mbed_error was documented as returning an error code. It never
actually could return, so documentation updated, but return type
kept.
2018-10-29 13:58:06 +02:00
Kevin Bracey
57748bd46e
Adjust error paths locking and returning
...
Various fixes in preparation for making sure error calls do not return.
* Clear out handle_error's use of error_in_progress as a sort of spin
lock; this is most likely to deadlock if ever activated, and conflicts
with error's use of error_in_progress. Use a normal critical section lock.
* Make error use same mbed_halt_system helper as mbed_error.
* Make error's recursion check avoid print and proceed to halt, rather
than returning.
* Make mbed_error use error_in_progress to avoid recursion in same way
as error() does.
* Give mbed_halt_system its own recursion check in case of error in
mbed_die - give it a simple fallback.
* Make the in_progress things properly atomic, just in case.
2018-10-29 13:58:06 +02:00
Kevin Bracey
c32984c3a8
Add atomic_flag utility
...
An atomic flag primitive is sometimes wanted, and it is cumbersome to
create it from the compare-and-swap operation - cumbersome enough that
people often don't bother.
Put in a core_util_atomic_flag that follows the C11/C++11 atomic_flag
API, such that it could be mapped to it with #define later.
2018-10-29 13:58:05 +02:00
Kevin Bracey
0b27736536
Remove sleep manager tests that trigger mbed_error
...
Intercepting mbed_error will be too hard after mbed_error becomes
[[noreturn]], so remove tests that do this.
2018-10-29 13:58:05 +02:00
Cruz Monrreal
d23d7855fc
Merge pull request #8552 from cmonr/rollup
...
Rollup PR: UK Docathon pt2
2018-10-27 08:27:02 -05:00
kegilbert
a2ac895c37
This reverts commit 9b53d1256fb358407acbaf81c70b71d937b1f7cd.i
...
Move the memory tracing enabled macro to a config option but
revert the !defined -> #if changes to no longer cause breaking
changes.
2018-10-26 17:35:33 -05:00
Cruz Monrreal II
99e198aa4f
Merge branch 'non-copyable-doc' of ssh://github.com/pan-/mbed into rollup
2018-10-26 11:43:04 -05:00
Cruz Monrreal
c25f15615b
Merge pull request #8526 from michalpasztamobica/windows_unittest_compilation_fix
...
Fix for unit test build on Windows machines
2018-10-26 11:38:59 -05:00
Mel W
47adbd258c
Minor streamlining of long sentences
2018-10-26 15:28:38 +03:00
Cruz Monrreal II
5da4fe7e20
Merge branch 'docs_update-platformmutex' of ssh://github.com/fkjagodzinski/mbed-os into rollup
2018-10-25 21:49:39 -05:00
Cruz Monrreal
de6ba91644
Merge pull request #8365 from 0xc0170/fix_astyle_common2
...
Fix astyle for tests folders
2018-10-25 10:41:13 -05:00
Cruz Monrreal
9c59d9acc3
Merge pull request #7864 from deepikabhavnani/remove_mbed_h
...
Add required header file and namespace element instead add all.
2018-10-25 09:26:24 -05:00
Martin Kojtal
ca444a7f01
platform: fix astyle
2018-10-25 09:58:18 +01:00
Michal Paszta
0b3593f576
Fix for unit test build on Windows machines
...
In case MINGW is detected - define MBED_WEAK to be empty, as Windows
executables cannot handle the weak attribute.
2018-10-25 08:27:52 +03:00
Amanda Butler
1131d844c9
Edit PlatformMutex.h
...
Change passive to active voice.
2018-10-24 16:39:45 -05:00
Filip Jagodzinski
e095c78c66
PlatformMutex docs update
2018-10-24 18:07:46 +02:00
Vincent Coubard
abeab68729
NonCopyable: Fix edit.
2018-10-24 08:35:10 +01:00
Cruz Monrreal II
fe1d6b0565
Merge branch 'mbed_rtc_time_example_fix' of ssh://github.com/mprse/mbed-os into rollup
2018-10-23 22:38:42 -05:00
Cruz Monrreal II
408051ad40
Merge branch 'span-doc' of ssh://github.com/pan-/mbed into rollup
2018-10-23 22:38:35 -05:00
Amanda Butler
acaf96834e
Copy edit NonCopyable.h
...
Make minor copy edits, mostly to existing text before this PR.
2018-10-23 14:50:37 -05:00
Vincent Coubard
0d2a8e0417
NonCopyable: Add into platform doc group.
2018-10-23 14:41:38 +01:00
Vincent Coubard
3fe42b6c0d
NonCopyable: Rewrite of class documentation.
2018-10-23 14:34:43 +01:00
Vincent Coubard
1e30ed599e
Span: define doc groups.
2018-10-23 12:15:47 +01:00
Vincent Coubard
29f7d9d508
NonCopyable: Prevent doc generation for protected member function.
2018-10-23 12:11:02 +01:00
Vincent Coubard
c956a93252
Span: Improve subspan return type.
...
This clarifies code and documentation generated.
2018-10-23 11:39:27 +01:00
Vincent Coubard
03d308d114
Span: Add related non member function to class documentation.
2018-10-23 11:38:37 +01:00
Vincent Coubard
a0786adbc4
Span: Improve documentation
...
Makes doxygen reference to SPAN_DYNAMIC_EXTENT by name instead of the macro expansion -1.
Add reference to the macro in the class documentation.
2018-10-23 11:38:01 +01:00
Przemyslaw Stekiel
0a1e3a0c52
mbed_rtc_time.h - documentation fix
...
Make example code consistent with:
https://os.mbed.com/teams/mbed_example/code/time_HelloWorld/file/0c6401d671c6/main.cpp/
2018-10-23 12:18:45 +02:00
Kevin Bracey
500e37f3a2
mbed_error: Always print full filename if passed
...
Don't extract filename from the stored error - print it directly.
Use "mbed_error_puts" for both error message and filename to avoid
buffer length limits.
Switch to puts also fixes the potential problem of an error message
containing a '%' upsetting the formatter - it should have been
mbed_printf_error("%s", error_msg) in the first place.
2018-10-22 09:53:21 +03:00
Kevin Bracey
10fe32277d
mbed_error: Print thread names
...
As part of this, don't show empty current thread info in non-RTOS
build.
2018-10-22 09:53:21 +03:00
Kevin Bracey
c3d0e2c2ef
mbed_error: Correct full thread info print
...
Casts were covering up a type mismatch.
Print the "ready" list, and remove the explicit print of the idle thread
(it should be in the ready list).
2018-10-22 09:53:21 +03:00
Kevin Bracey
25d0fbaaeb
mbed_error: remove redundant memset
...
If we want zero-fill, strncpy does it anyway.
2018-10-22 09:53:20 +03:00
Kevin Bracey
c2076b5ec4
mbed_error: Simplify read of stack pointer
2018-10-22 09:53:20 +03:00
Kevin Bracey
e20edbdb46
Add mbed_error_puts
...
This is potentially useful for printing long strings such as filenames
from assert messages, avoiding the buffer limit inherent in
mbed_error_printf.
2018-10-22 09:53:20 +03:00
Cruz Monrreal II
1c1432e8e7
Merge branch 'kegilbert-patch-6-1' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-18 20:01:36 -05:00
Amanda Butler
1f9ef36483
Edit DirHandle.h
...
Edit for active voice.
2018-10-18 11:11:03 -05:00
Cruz Monrreal
e698f0b29f
Merge pull request #8076 from kjbracey-arm/error_stderr
...
Error output improvements
2018-10-18 08:39:17 -05:00
Cruz Monrreal
ad6ada014a
Merge pull request #7948 from kegilbert/mbed_mem_trace_log_toggle
...
Add enable/disable cb function in mem_trace
2018-10-18 08:38:26 -05:00
Amanda Butler
7d604fedf8
Fix typo in DirHandle.md
...
Add "s" for agreement.
2018-10-17 22:42:28 -05:00
Kevin Gilbert
6b3bf28d0d
Move inline code snippets to code blocks
2018-10-17 22:42:19 -05:00
Cruz Monrreal II
2a68339867
Merge branch 'typo-patch-underlying-1' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-17 21:38:45 -05:00
Cruz Monrreal II
9000821b4d
Merge branch 'kegilbert-patch-2' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-17 21:38:44 -05:00
Cruz Monrreal II
3d753290c7
Merge branch 'cb_doxytypo_patch' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-17 21:38:42 -05:00
Cruz Monrreal II
ecd109e0be
Merge branch 'kegilbert-patch-3' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-17 21:38:41 -05:00
Cruz Monrreal II
f8997fa1a4
Merge branch 'kegilbert-patch-4' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-17 21:38:40 -05:00