Skip to content

sys/event: add periodic timeout event #16507

Merged
kaspar030 merged 3 commits intoRIOT-OS:masterfrom
fjmolinas:pr_event_timeout_periodic
Jun 8, 2021
Merged

sys/event: add periodic timeout event #16507
kaspar030 merged 3 commits intoRIOT-OS:masterfrom
fjmolinas:pr_event_timeout_periodic

Conversation

@fjmolinas
Copy link
Copy Markdown
Contributor

Contribution description

This PR adds a periodic timeout event using ztimer. Useful to scheduler a task that should be periodically executed, e.g.: reading some sensor.

Testing procedure

make -C tests/event_timeout_ztimer

Issues/PRs references

depend on #16505

@fjmolinas fjmolinas added the State: waiting for other PR State: The PR requires another PR to be merged first label May 28, 2021
@fjmolinas fjmolinas requested a review from kaspar030 May 28, 2021 09:33
@github-actions github-actions bot added Area: build system Area: Build system Area: sys Area: System Area: tests Area: tests and testing framework labels May 28, 2021
@fjmolinas fjmolinas added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: run tests If set, CI server will run tests on hardware for the labeled PR labels Jun 1, 2021
@kaspar030
Copy link
Copy Markdown
Contributor

please rebase!

@fjmolinas fjmolinas force-pushed the pr_event_timeout_periodic branch from 31604d6 to 1f4d5f7 Compare June 1, 2021 10:36
@fjmolinas fjmolinas removed the State: waiting for other PR State: The PR requires another PR to be merged first label Jun 1, 2021
@github-actions github-actions bot removed the Area: build system Area: Build system label Jun 1, 2021
*/
void event_timeout_clear(event_timeout_t *event_timeout);

#if IS_USED(MODULE_EVENT_PERIODIC_TIMEOUT)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this should have || doxygen.

(I think I missed that for event_timeout_ztimer)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@fjmolinas
Copy link
Copy Markdown
Contributor Author

@kaspar030 may I squash?

@fjmolinas fjmolinas force-pushed the pr_event_timeout_periodic branch from 33776f1 to 86b32e0 Compare June 1, 2021 14:18
@kaspar030
Copy link
Copy Markdown
Contributor

I think "event_periodic" would suffice as a name (drop the "timeout"). What do you think?

@fjmolinas fjmolinas force-pushed the pr_event_timeout_periodic branch from 86b32e0 to b0396ee Compare June 3, 2021 15:54
@fjmolinas
Copy link
Copy Markdown
Contributor Author

I think "event_periodic" would suffice as a name (drop the "timeout"). What do you think?

dropped.

@fjmolinas
Copy link
Copy Markdown
Contributor Author

Unrelated test failures

@fjmolinas fjmolinas added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jun 7, 2021
@fjmolinas
Copy link
Copy Markdown
Contributor Author

@fjmolinas fjmolinas added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: run tests If set, CI server will run tests on hardware for the labeled PR CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jun 7, 2021
@kaspar030 kaspar030 self-assigned this Jun 8, 2021
Copy link
Copy Markdown
Contributor

@kaspar030 kaspar030 left a comment

Choose a reason for hiding this comment

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

ACK.

Code looks fine. Tested on nrf52840dk and native.

@kaspar030 kaspar030 merged commit cfb10db into RIOT-OS:master Jun 8, 2021
@MrKevinWeiss MrKevinWeiss added Process: release backport Integration Process: The PR is a release backport of a change previously provided to master and removed Process: release backport Integration Process: The PR is a release backport of a change previously provided to master labels Jul 15, 2021
@MrKevinWeiss MrKevinWeiss added this to the Release 2021.07 milestone Jul 15, 2021
@fjmolinas fjmolinas deleted the pr_event_timeout_periodic branch July 30, 2021 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants