-
Notifications
You must be signed in to change notification settings - Fork 3k
Add API to set ticker IRQ handler. #5234
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
Add API to set ticker IRQ handler. #5234
Conversation
hal/us_ticker_api.h
Outdated
@@ -31,6 +31,15 @@ extern "C" { | |||
* @{ | |||
*/ | |||
|
|||
typedef void (*TICKER_IRQ_HANDLER_TYPE)(const ticker_data_t *const); |
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.
please for typedef use small letters, as any other implementation does in this codebase
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.
fixed.
hal/mbed_us_ticker_api.c
Outdated
@@ -38,5 +40,7 @@ const ticker_data_t* get_us_ticker_data(void) | |||
|
|||
void us_ticker_irq_handler(void) | |||
{ | |||
ticker_irq_handler(&us_data); | |||
if(irq_handler) { |
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.
should be if (
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.
fixed.
2be698c
to
2cd341d
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.
Can we add docs (doxy) to the api headers saying that there's a default one used in both cases.
2cd341d
to
fc115f0
Compare
Added notes about default IRQ handlers. Modified functions which sets us/lp ticker IRQ handlers. In the new version this functions return previous handlers. |
fc115f0
to
6eab387
Compare
@AnotherButler Heads up: Doxygen API change. |
Build : FAILUREBuild number : 76 |
/morph build |
/morph test |
Build : FAILUREBuild number : 105 |
/morph build |
Build : SUCCESSBuild number : 127 Triggering tests/test mbed-os |
Test : FAILUREBuild number : 61 |
Can we rebase the destination branch? Failures are expected I assume, but can we fix that branch to have tests passing? |
Test : FAILUREBuild number : 83 |
/morph build |
Build : SUCCESSBuild number : 231 Triggering tests/morph test |
Test : SUCCESSBuild number : 115 |
I didn't realize this was against the feature-hal-spec-ticker branch. This should probably go into master as well. |
Description
Add API to set IRQ handler for high frequency ticker and low power ticker.
This is done to be able to test HAL ticker API without using mbed upper layers to connect IRQ handler.
Status
READY
Migrations
YES
Add API to set IRQ handler for high frequency ticker and low power ticker.
Original IRQ handler is set as default ticker IRQ handler.
Related PRs
------ | ------
ARMmbed:feature-hal-spec-ticker | #5233