-
Notifications
You must be signed in to change notification settings - Fork 24
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
Platform support for Raspberry Pi Pico #233
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.
This looks like a really good start. Minor comments added.
core/platform/lf_pico_support.c
Outdated
/** | ||
* Initialize the LF clock. Must be called before using other clock-related APIs. | ||
*/ |
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.
I think these function comments should appear only in the .h file unless they are somehow different for this implementation.
core/platform/lf_pico_support.c
Outdated
* | ||
* Ideally, the underlying platform clock should be monotonic. However, the | ||
* core lib tries to enforce monotonicity at higher level APIs (see tag.h). | ||
* TODO: might want to use the RTC |
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.
Maybe this should be an ordinary comment in the function body? It refers to the implementation, not the interface.
core/platform/lf_pico_support.c
Outdated
* Lock a mutex. | ||
* | ||
* @return 0 on success, platform-specific error number otherwise. | ||
* TODO: should this block? |
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.
Acquiring a mutex always needs to block.
merge in main
platform support for raspberry pi pico
some notes