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

Add support for setting and reading timer #8

Merged
merged 5 commits into from
Jun 9, 2020
Merged

Add support for setting and reading timer #8

merged 5 commits into from
Jun 9, 2020

Conversation

tuupola
Copy link
Owner

@tuupola tuupola commented Jun 9, 2020

No description provided.

uint8_t tmp = BM8563_TIMER_ENABLE | BM8563_TIMER_1HZ;
bm8563_ioctl(&bm, BM8563_TIMER_CONTROL_WRITE, &tmp);
uint8_t count = 10;
uint8_t register = BM8563_TIMER_ENABLE | BM8563_TIMER_1HZ;

bm8563_ioctl(&bm, BM8563_TIMER_WRITE, &count);
bm8563_ioctl(&bm, BM8563_TIMER_CONTROL_WRITE, &register);
@tuupola tuupola changed the title Add support for timer Add support for setting and reading timer Jun 9, 2020
@tuupola tuupola merged commit 4cf248d into master Jun 9, 2020
@tuupola tuupola deleted the timer branch June 9, 2020 11:33
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.

1 participant