-
Notifications
You must be signed in to change notification settings - Fork 7.4k
logging: add backend for xtensa simulator #14027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logging: add backend for xtensa simulator #14027
Conversation
299053f
to
d1484da
Compare
Codecov Report
@@ Coverage Diff @@
## master #14027 +/- ##
=======================================
Coverage 52.24% 52.24%
=======================================
Files 307 307
Lines 45467 45467
Branches 10525 10525
=======================================
Hits 23752 23752
Misses 16913 16913
Partials 4802 4802 Continue to review full report at Codecov.
|
static int char_out(u8_t *data, size_t length, void *ctx) | ||
{ | ||
for (size_t i = 0; i < length; i++) { | ||
preprint_char(data[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
write simcall can output the whole buffer in one invocation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, addressed.
d1484da
to
f50e69e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moving buffer size to kconfig would be nice.
#include <logging/log_output.h> | ||
#include <xtensa/simcall.h> | ||
|
||
#define _STDOUT_BUF_SIZE 256 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if there a potential RAM shortages on xtensa boards this should be moved to kconfig.
Add backend for the xtensa simulator. Fixes zephyrproject-rtos#10164 Signed-off-by: Anas Nashif <[email protected]>
f50e69e
to
f3802a7
Compare
Add backend for the xtensa simulator.
Fixes #10164