-
Notifications
You must be signed in to change notification settings - Fork 2k
cpu/samd5x: improve isr buffer handling #21486
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
base: master
Are you sure you want to change the base?
Conversation
cpu/samd5x/periph/can.c
Outdated
printf("Tx buffer|\t0x%08" PRIx32 "|\t%" PRIu32 "\n", | ||
(uint32_t)(dev->msg_ram_conf.tx_fifo_queue), | ||
(uint32_t)(ARRAY_SIZE(dev->msg_ram_conf.tx_fifo_queue))); | ||
printf("Standard filters|\t%p|\t%u\n", (dev->msg_ram.std_filter), |
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.
Hu, why going from formatting macros back to %p
and %u
?
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.
readability avoid unnecessary cast - i somehow thought newlib is C99 compliant -- will fix that
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.
for that array size thing i stayed with u
May I squash ? |
1fd9f34
to
1d3fea3
Compare
implemnt bad CC
Contribution description
this improves the buffer handling and improves readability of the samd5x can-driver.
avoid assertion failure if the enable pin is not configured.
Testing procedure
Issues/PRs references