-
Notifications
You must be signed in to change notification settings - Fork 1.3k
nrf: More cleanup and porting #1011
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
Conversation
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 for the cleanup! Just the minor style things. (I know @tannewt said let's not spend a lot of time on style things, but these are easy and it makes it easier to read the code if the style is consistent.)
ports/nrf/mphalport.c
Outdated
@@ -72,3 +72,13 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len) { | |||
void mp_hal_stdout_tx_str(const char *str) { | |||
mp_hal_stdout_tx_strn(str, strlen(str)); | |||
} | |||
|
|||
void mp_hal_delay_ms(mp_uint_t ms) | |||
{ |
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.
Put curly brace on previous line to make consistent with the rest of the code.
ports/nrf/mphalport.c
Outdated
} | ||
|
||
void mp_hal_delay_us(mp_uint_t us) | ||
{ |
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.
etc..
Muscle memory again, I'll try to get better at this! Thanks for the comments, I appreciate consistent code style as well, will fix it! :) |
Thus getting rid of the whole old hal! The module is not needed because the common-hal nRF implementation uses HW RNG anyway.
@dhalbert I fixed the comments you posted, if every thing is to your liking, please merge at your convenience :) |
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.
Very nice!! Thanks!
I think I didn't get notified of the latest commits because it was a force-push.
No description provided.