Skip to content

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

Conversation

mprse
Copy link
Contributor

@mprse mprse commented Oct 2, 2017

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

@@ -31,6 +31,15 @@ extern "C" {
* @{
*/

typedef void (*TICKER_IRQ_HANDLER_TYPE)(const ticker_data_t *const);
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@@ -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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should be if (

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 2, 2017

cc @c1728p9 @pan- @bulislaw

@mprse mprse force-pushed the feature-hal-spec-ticker_irq_handler_set branch from 2be698c to 2cd341d Compare October 2, 2017 08:50
Copy link
Member

@bulislaw bulislaw left a 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.

@mprse mprse force-pushed the feature-hal-spec-ticker_irq_handler_set branch from 2cd341d to fc115f0 Compare October 2, 2017 13:42
@mprse
Copy link
Contributor Author

mprse commented Oct 2, 2017

Added notes about default IRQ handlers. Modified functions which sets us/lp ticker IRQ handlers. In the new version this functions return previous handlers.

@mprse mprse force-pushed the feature-hal-spec-ticker_irq_handler_set branch from fc115f0 to 6eab387 Compare October 2, 2017 14:25
@theotherjimmy
Copy link
Contributor

@AnotherButler Heads up: Doxygen API change.

@mbed-ci
Copy link

mbed-ci commented Oct 10, 2017

Build : FAILURE

Build number : 76
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5234/

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 11, 2017

/morph build

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 11, 2017

/morph test

@mbed-ci
Copy link

mbed-ci commented Oct 11, 2017

Build : FAILURE

Build number : 105
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5234/

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 11, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 11, 2017

Build : SUCCESS

Build number : 127
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5234/

Triggering tests

/test mbed-os

@mbed-ci
Copy link

mbed-ci commented Oct 12, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 13, 2017

Can we rebase the destination branch? Failures are expected I assume, but can we fix that branch to have tests passing?

@mbed-ci
Copy link

mbed-ci commented Oct 16, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 18, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 18, 2017

Build : SUCCESS

Build number : 231
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5234/

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Oct 18, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 19, 2017

@bulislaw @c1728p9 approval for this extension, all testing done, can be ready !

@theotherjimmy theotherjimmy merged commit 291dd1d into ARMmbed:feature-hal-spec-ticker Oct 23, 2017
@c1728p9
Copy link
Contributor

c1728p9 commented Oct 23, 2017

I didn't realize this was against the feature-hal-spec-ticker branch. This should probably go into master as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants