Senthil Ramakrishnan
92e0cbfaef
Doxygen fixes
2018-05-23 13:27:57 -05:00
Senthil Ramakrishnan
5ef6728c08
Splitting MBED_ERROR macros to support ones with/without error value argument
2018-05-23 12:21:28 -05:00
Senthil Ramakrishnan
693a6c40bb
Refactor error reporting
2018-05-23 12:21:11 -05:00
Senthil Ramakrishnan
d4fe75731d
Adding mbed prefixes to all macros and functions to avoid namespace conflicts
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
147d9cac4e
Test application/cases optimization for some low memory targets, macro changes and test fixes
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
f9c25612ae
Fix test failures when trap errors are enabled and other fixes
2018-05-23 12:21:10 -05:00
Senthil Ramakrishnan
cbfc06577b
Fixes to align with naming conventions
2018-05-23 12:21:09 -05:00
Senthil Ramakrishnan
92df68b1ea
Changed variable names for registers to avoid namespace conflicts, build fixes, macros and other fixes
2018-05-23 12:21:09 -05:00
Senthil Ramakrishnan
530e9d323f
Changed variable names for registers to avoid namespace conflicts and rtos disabled build fixes
2018-05-23 12:21:09 -05:00
Senthil Ramakrishnan
2e28dd95e1
Change set_error/set_error_fatal to warning/error, add itm support and other changes
2018-05-23 12:21:08 -05:00
Senthil Ramakrishnan
7c6c718f75
Fixed entity reporting and comments
2018-05-23 12:21:08 -05:00
Senthil Ramakrishnan
839fef0ad1
Added more tests for error log and error reporting, updated doxygen comments
2018-05-23 12:21:07 -05:00
Senthil Ramakrishnan
9041b475c6
Error handling/logging implementation and tests
2018-05-23 12:21:07 -05:00
Martin Kojtal
23d8085174
Merge pull request #6878 from bulislaw/rtc_lp_ticker
...
Add low power timer fallback for platforms without RTC
2018-05-22 14:35:18 +02:00
Martin Kojtal
5d027f4e27
Merge pull request #6857 from deepikabhavnani/cpu_stats
...
CPU Statistics
2018-05-22 14:30:21 +02:00
Martin Kojtal
02af950f62
Merge pull request #6336 from geky/fat-errors
...
fatfs: Update error code mapping
2018-05-22 14:27:01 +02:00
Cruz Monrreal
a301db5d43
Merge pull request #6791 from kjbracey-arm/fcntl
...
Add POSIX fcntl flag support
2018-05-21 17:17:02 -05:00
Christopher Haster
effdc6571b
retarget: Added workaround for conflicting definitions of error_t
...
The errno.h header file defines the type error_t, unfortunately this
is a common type name that may be defined in user code. For at least GCC
we can work around this by telling errno that the error_t is already
defined.
2018-05-17 10:26:33 -05:00
Christopher Haster
78992a4c26
retarget: Added include errno.h
...
Unfortunately, some toolchains don't define the same errno codes that
are used fairly consistently on Linux based platforms, which means they
also don't match the errno codes used in the retarget layer.
If a user includes errno.h after mbed.h, the errno codes can be
redefined incorrectly.
Adding an include of errno.h in mbed.h forces the order to be fixed.
2018-05-17 10:26:33 -05:00
Deepika
029237b683
Addressed review comments
...
1. LP ticker limiation note
2. Use read_us in mbed_uptime function
3. Doxygen recommendations
4. Use us_timestamp_t instead uint64_t
5. Astyle changes
2018-05-15 11:36:08 -05:00
deepikabhavnani
3420ff7f9c
CPU statistics addition
...
API to get CPU stats like sleep/deepsleep time, uptime and idle time.
These can be used by application to know the CPU Usage runtime.
2018-05-15 11:20:52 -05:00
Deepika
1961428c1b
OS version added + CPUID for cortex-M only
...
CPUID base register is available for Cortex-M processors only.
Cortex-A devices have Main ID Register, which can be used in future to
get processor info.
2018-05-15 10:22:13 -05:00
deepikabhavnani
c08b3e3d3d
System Info API addition
...
API added to get the system information like CPU ID, compiler ID and
compiler version.
2018-05-15 10:17:40 -05:00
Bartek Szatkowski
ac9276499f
Add low power timer fallback for platforms without RTC
...
Low power timer will be used as RTC for platforms that don't have HW RTC
capabilities.
2018-05-14 12:07:59 +01:00
deepikabhavnani
97c88188d0
Cleanup
...
1. Enable watermark to get stack space information
2. Restructured code
3. Throw error if MBED_THREAD_STATS_ENABLED is not set
4. Astyle changes
2018-05-11 10:06:44 -05:00
deepikabhavnani
f43b16ffd9
Cleaup and review comments addressed
...
1. Removed prefix thread_ from all elements of mbed_stats_thread_t
2. #if conditions aligned to rest of the file
2018-05-11 10:05:35 -05:00
deepikabhavnani
1dad73949c
Thread statistics addition.
...
API to get all system threads information and states.
2018-05-11 10:05:32 -05:00
Cruz Monrreal
ab7a856657
Merge pull request #6784 from deepikabhavnani/mbed_stats_fix
...
Add common define MBED_ALL_STATS_ENABLED to enable all statistics
2018-05-10 23:25:23 -05:00
Cruz Monrreal
a2370d57fa
Merge pull request #6809 from deepikabhavnani/add_assert
...
Mbed Stats: Assert if NULL pointer passed as arg
2018-05-09 10:50:10 -05:00
Cruz Monrreal
68ad00ffb8
Merge pull request #6645 from woodsking2/master
...
mbed_wait_api: add comments to warn the func will lock deep sleep
2018-05-08 10:54:48 -05:00
Cruz Monrreal
39fd120064
Merge pull request #6797 from OpenNuvoton/nuvoton_fix_noserial
...
Fix compile error with DirectSerial in serial-less build
2018-05-07 10:27:27 -05:00
deepikabhavnani
0f0a4c0a50
Check for NULL pointer before access
2018-05-03 11:23:12 -05:00
Kevin Bracey
cf91b1c6d7
Add POSIX fcntl to control blocking
...
Add the POSIX fcntl call, but only implementing F_SETFL and F_GETFL
for O_NONBLOCK, so users can control the blocking flag of streams
with only the integer file descriptor.
Necessary to portably control the blockingness of the console:
int flags = fcntl(STDOUT_FILENO, F_GETFL);
fcntl(STDOUT_FILENO, F_SETFL, flags | O_NONBLOCK);
2018-05-03 15:40:26 +03:00
Kevin Bracey
a8ab233a1a
retarget: distinguish FileHandle and descriptor
...
Avoid using `fh` for the integer descriptor numbers, reserving
that for the `FileHandle` objects - use `fildes` or `fd`,
matching POSIX.
2018-05-03 15:40:26 +03:00
Kevin Bracey
59f49e2b96
Add `is_blocking()` method to FileHandle
...
There was no way to check current blocking state, so no way to modify
and restore status.
Also have default FileHandle::set_blocking() used by real files return a
correct error code when asked for non-blocking, and success when asked
for blocking.
These were minor omissions that are required to implement POSIX fcntl
properly.
fixup! Add `is_blocking()` method to FileHandle
2018-05-03 15:38:33 +03:00
ccli8
bfe9ee7777
Fix compile error with DirectSerial in serial-less build
2018-05-03 10:52:09 +08:00
James Wang
c9b2640f70
mbed_wait_api: wait_ms() wait() wait_us() add "If the RTOS is present" comments
2018-05-03 10:22:32 +08:00
deepikabhavnani
a228fd0f3b
Add common define to enable all statistics
...
As part of Device Health requirement, all mbed OS statistics should be
enabled with single macro `MBED_ALL_STATS_ENABLED`
2018-05-02 14:14:07 -05:00
ccli8
89622378d8
Fix compile error with MBED_MEM_TRACING_ENABLED and ARMC6
2018-04-27 14:19:12 +08:00
Kevin Bracey
39fa676993
Make poll() use RTOS tick count
...
RTOS maintains a tick count - use it, avoiding issues with sleep and low
power timers.
2018-04-23 14:42:59 +03:00
Martin Kojtal
c6b6bab2f9
Merge pull request #6630 from OpenNuvoton/nuvoton_add_nonsecure_flash
...
Support secure/non-secure flash IAP for Cortex-M23/M33
2018-04-19 17:24:27 +02:00
James Wang
27ce443a70
accept Amanda Butler's review. change to "This function always spins to get the exact number of microseconds, which potentially affects power (such as preventing deep sleep) and multithread performance. You can avoid it by using Thread::wait()."
2018-04-18 10:22:50 +08:00
Cruz Monrreal
d680ceeba6
Merge pull request #6603 from marcuschangarm/fix-flowcontrol
...
Optional hardware flow control for STDOUT
2018-04-17 13:15:31 -05:00
Cruz Monrreal
7dabd247ab
Merge pull request #6510 from yossi2le/add-deprecated-doxygen-remarks
...
Adding missing @deprecated to function inline documentation
2018-04-17 10:53:54 -05:00
James Wang
04627992db
Accept Kevin Bracey's review, "wait_ms() and wait(float) always spin to get an exact number of microseconds, potentially impacting power and multi-thread performance. Again, avoided by Thread::wait()".
2018-04-17 18:11:59 +08:00
James Wang
efc228ff06
accept Cruz Monrreal's review
2018-04-17 15:23:15 +08:00
James Wang
4c69419e2e
mbed_wait_api: add comments to warn the func will lock deep sleep
2018-04-16 18:13:15 +08:00
Marcus Chang
7e6538ffed
Optional hardware flow control for STDOUT
...
Some platforms have interface chips with hardware flow control
enabled by default. This commit adds configurable flow control to
STDOUT.
Usage:
* Define pin names STDIO_UART_RTS for Rx-flow-control and
STDIO_UART_CTS for Tx-flow-control.
* Set target.console-uart-flow-control. Valid options are:
null, RTS, CTS, and RTSCTS.
2018-04-15 20:12:14 -07:00
ccli8
1b7b94e0ad
Add MBED_NONSECURE_ENTRY for all-toolchain secure gateway functions
2018-04-16 09:38:39 +08:00
Cruz Monrreal
339283b3b8
Merge pull request #6418 from amq/poll-lowpowertimer
...
Add an option to use LowPowerTimer for poll
2018-04-12 18:37:22 -05:00