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
Vincent Coubard
1e30ed599e
Span: define doc groups.
2018-10-23 12:15:47 +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
Cruz Monrreal II
ae28c74690
Merge branch 'kegilbert-patch-5' of ssh://github.com/ARMmbed/mbed-os into rollup
2018-10-17 21:38:38 -05:00
Cruz Monrreal
1a6d2f6513
Merge pull request #8451 from korjaa/fix_possible_filebase_deadlock
...
Added missing _mutex->unlock() to FileBase::lookup().
2018-10-17 17:40:29 -05:00
kegilbert
2d910cd8e7
Infered->Inferred
...
Signiture->Signature
2018-10-17 17:13:36 -05:00
Amanda Butler
048614638e
Copy edit mbed_rtc_time.h
...
Copy edit existing text.
2018-10-17 17:07:05 -05:00
Kevin Gilbert
3794fe5b6c
funtion->function
...
Minor doxygen typo patch
2018-10-17 17:01:48 -05:00
Kevin Gilbert
69e763e254
Minor mbed_assert doxy typos patch
2018-10-17 16:59:07 -05:00
Kevin Gilbert
3a04e6ae78
locable->lockable
...
Minor doxygen comment typo patch
2018-10-17 16:54:32 -05:00
Kevin Gilbert
d24f10e50e
Remove extra e in deepsleep
2018-10-17 16:44:15 -05:00
Kevin Gilbert
435f4724e0
underlyng->underlying
2018-10-17 12:23:35 -05:00
Cruz Monrreal
7085d16661
Merge pull request #8354 from kjbracey-arm/singletonptr_align
...
SingletonPtr: const and alignment
2018-10-17 08:35:12 -05:00
Jaakko Korhonen
4efec08127
Added missing _mutex->unlock() to FileBase::lookup().
2018-10-17 14:07:09 +03:00
Kevin Bracey
2df322c43d
Don't overrun in error prints
...
vsprintf returns the amount it would have written if the buffer had been
big enough, but we used that value directly when outputting, thus
overrunning memory and dumping stack contents.
Indicate truncation by inserting an ellipsis and newline. Slightly
increase the buffer size, so that we don't slightly decrease the maximum
printable characters because of the ellipsis insertion.
Partially addresses https://github.com/ARMmbed/mbed-os/issues/6850 by
forcing a newline when truncation happens - often truncation will drop a
newline and prevent a flush.
2018-10-17 12:55:20 +03:00
Kevin Bracey
c989845d5a
mbed_error_vfprintf -> mbed_error_vprintf
...
Name vfprintf doesn't make sense - if we have mbed_error_printf, this is
vprintf.
2018-10-17 12:55:20 +03:00
Kevin Bracey
d05c60ee3f
Sync output devices on exit
...
Mbed retarget does an `fflush` on stdout and stderr on exit - this
flushes the C library buffers (if it is buffering), but doesn't
flush any device buffers (eg UARTSerial's TX buffer). Add
sync() calls to the output device to do this.
2018-10-17 12:55:20 +03:00
Kevin Bracey
78f4b4bc82
Make mbed_error not serial-specific
...
Use write() on current output device instead - this works on the
assumption that write() is safe to call from critical section.
UARTSerial has previously been upgraded to support this, and this also
improves the behaviour when buffered serial is in use - the current
buffered output will be fully flushed before outputting the error
message.
2018-10-17 12:55:20 +03:00
Cruz Monrreal
ce7e61e37e
Merge pull request #8255 from MateuszMaz/refactoring_mbed_assert
...
Change behaviour of mbed_asert to use mbed_error instead of mbed_die
2018-10-16 11:06:18 -05:00
Kevin Bracey
e7815c64ad
Align SingletonPtr data to 8 bytes, or use C++11
...
Be more cautious about alignment - align the data within a SingletonPtr
to 8 bytes rather than 4. This could increase padding overhead by up
to 8 bytes, sadly, but we may need this alignment for correct operation.
Conditional check added for C++11 - if in use we can get correct minimal
alignment by using alignas(T).
2018-10-16 13:32:52 +03:00
Cruz Monrreal
ec03df4823
Merge pull request #7980 from kjbracey-arm/thread_deprecations
...
Clean up rtos::Thread deprecation warnings
2018-10-15 10:09:55 -05:00
Cruz Monrreal
e0e915f5db
Merge pull request #8423 from cmonr/rollup2
...
Rollup PR: Additional doc PRs + lingering need:CI PRs
2018-10-15 10:04:04 -05:00
Cruz Monrreal II
a51b0a3562
Merge branch 'atcmd_docs' of ssh://github.com/deepikabhavnani/mbed-os into deepikabhavnani-atcmd_docs
2018-10-12 21:46:59 -05:00
Cruz Monrreal II
d0aec14124
Merge branch 'typo-fix-1-1' of ssh://github.com/ARMmbed/mbed-os into ARMmbed-typo-fix-1-1
2018-10-12 21:46:51 -05:00
Cruz Monrreal II
2f6aa3331f
Merge branch 'heap_fix_7912' of ssh://github.com/deepikabhavnani/mbed-os into deepikabhavnani-heap_fix_7912
2018-10-12 21:46:27 -05:00
Amanda Butler
5b22304300
Edit ATCmdParser.md
...
Make minor grammar and spelling edits.
2018-10-12 17:16:09 -05:00
deepikabhavnani
92108858f5
Doc changes and rephrasing
2018-10-12 17:09:31 -05:00
Amanda Butler
00186e6f14
Copy edit mbed_rtc_time.h
...
Copy edit existing text for U.S. spelling and consistent capitalization.
2018-10-12 14:50:52 -05:00
Kevin Gilbert
a9dbd728f6
wich->which
2018-10-12 13:52:23 -05:00