Skip to content
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

Adding timer functions #36

Open
dehanj opened this issue Feb 14, 2024 · 0 comments
Open

Adding timer functions #36

dehanj opened this issue Feb 14, 2024 · 0 comments

Comments

@dehanj
Copy link
Member

dehanj commented Feb 14, 2024

The timer is useful and will most likely be used by a lot of applications. Adding functions around the timer will make it easier to use.

Both controlling the timer, and also a delay function which is commonly used.

Proposing these functions;

  • int timer_start(int ticks, int prescaler)
  • bool timer_is_expired(void)
  • void timer_stop(void)
  • void timer_delay(int delay_ms)
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

No branches or pull requests

1 participant