Skip to content

Conversation

@kasjer
Copy link
Contributor

@kasjer kasjer commented Nov 2, 2025

This adds few commands to shell to manipulate
gpio and nvregs.


for (i = 0; i < n; ++i) {
val = hal_nvreg_read(i);
streamer_printf(streamer, "reg[%d] = %" PRIu32 " (0x%" PRIX32 ")\n", i,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar print was discussed in other PRs and consensus was to use PRI macros only for 64bit values, while smaller types should simply be casted to (int) or (unsigned int)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

This adds few commands to shell to manipulate
gpio and nvregs.

Signed-off-by: Jerzy Kasenberg <jerzy@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants