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

capsules: add buzzer driver #1104

Closed
wants to merge 1 commit into from
Closed

capsules: add buzzer driver #1104

wants to merge 1 commit into from

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jul 9, 2018

This is an interface for a simple buzzer. It supports time-shared access to the buzzer for multiple apps. Each "buzz" from an app can last up to 5 seconds.

Blocked on #1003 and #1103

Testing Strategy

Tested on the ACD52832

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make formatall.

@bradjc bradjc added the blocked Waiting on something, like a different PR or a dependency. label Jul 9, 2018

1 => {
let frequency_hz = arg1 & 0xFFFF;
let duration_ms = cmp::min((arg1 >> 16) & 0xFFFF, 5000);
Copy link
Member

Choose a reason for hiding this comment

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

Might be nice to make 5000 a field of the capsule that the board decides on when initializing the capsule (maybe add a DEFAULT_MAX_BUZZ constant just so an indecisive board integrator can go with the value you chose).

@bradjc bradjc force-pushed the buzzer-pr branch 3 times, most recently from 8ba51d9 to 5e3a5d5 Compare July 12, 2018 03:55
Copy link
Contributor

@phil-levis phil-levis left a comment

Choose a reason for hiding this comment

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

Overall, this looks good to me; I have a concern with #1003 but once that's resolved this should be good and I can mark approve.

@bradjc bradjc removed the blocked Waiting on something, like a different PR or a dependency. label Dec 6, 2018
@bradjc bradjc force-pushed the buzzer-pr branch 2 times, most recently from 2382b69 to 201f8ab Compare December 6, 2018 03:32
@bradjc bradjc mentioned this pull request Dec 11, 2018
2 tasks
This is an interface for a simple buzzer. It supports time-shared access
to the buzzer for multiple apps.
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.

None yet

3 participants