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
Cruz Monrreal II
8bb21afbf0
Merge branch 'sen_ErrorDoxyUpdate' of ssh://github.com/SenRamakri/mbed-os into SenRamakri-sen_ErrorDoxyUpdate
2018-10-12 12:07:28 -05:00
Cruz Monrreal II
b7ef70dea4
Merge branch 'update_stats_docs' of ssh://github.com/bridadan/mbed into bridadan-update_stats_docs
2018-10-12 12:07:23 -05:00
Cruz Monrreal II
828b6f506a
Merge branch 'sen_MemTraceDoxyUpdate' of ssh://github.com/SenRamakri/mbed-os into SenRamakri-sen_MemTraceDoxyUpdate
2018-10-12 12:07:21 -05:00
Cruz Monrreal II
98a9bb880b
Merge branch 'fhtidy_doc' of ssh://github.com/kjbracey-arm/mbed-os into kjbracey-arm-fhtidy_doc
2018-10-12 12:07:07 -05:00
Senthil Ramakrishnan
e547e3d88d
Fix doxygen comments and spelling errors
2018-10-12 11:49:58 -05:00
Amanda Butler
9eab32e365
Copy edit changes to mbed_mem_trace.h
...
Delete extra spaces.
2018-10-12 11:13:31 -05:00
Amanda Butler
82c4ce607d
Edit mbed_stats.h
...
Capitalize ID for consistency.
2018-10-12 11:08:01 -05:00
Cruz Monrreal
6d7b655b87
Merge pull request #8331 from deepikabhavnani/getc_fix
...
Stream: add necessary flushes, removing unneeded IAR workaround
2018-10-12 08:59:16 -05:00
Kevin Bracey
1ef213ec89
Clean up Thread deprecation warnings
...
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Brian Daniels
ddedc155d4
Updating stats doc comments
2018-10-11 19:11:17 -05:00
Senthil Ramakrishnan
026c978515
Adding doxygen comments for mem trace enum
2018-10-11 16:58:47 -05:00