Skip to content

hardwareTimer updated function #1185

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

Closed
mayurharge opened this issue Sep 22, 2020 · 1 comment
Closed

hardwareTimer updated function #1185

mayurharge opened this issue Sep 22, 2020 · 1 comment
Assignees
Labels
answered invalid This doesn't seem right question ❓ Usually converted as a discussion

Comments

@mayurharge
Copy link

Hello,
This is more of a question than an issue.

I am using hardware timer code from example sketch Link
facing problem while initialisation of timer here MyTim->attachInterrupt(Update_IT_callback);
here in the core, this function is required void Update_IT_callback ( HardwareTimer*) as suggested by this error message invalid conversion from 'void (*)()' to 'void (*)(HardwareTimer*)

changing void Update_IT_callback ( void) to void Update_IT_callback ( HardwareTimer*) is solving my issue.

but please let em know that this fix is done in a proper way to avoid further issues in my code?
also please update the example code for better understanding of new function

thanks.

@fpistm
Copy link
Member

fpistm commented Sep 22, 2020

Hi @mayurharge

There is no issue with the example.
Since core version 1.9.0 this is the correct API:
#892
and the updated example:
stm32duino/STM32Examples#23

@fpistm fpistm closed this as completed Sep 22, 2020
@fpistm fpistm added answered invalid This doesn't seem right question ❓ Usually converted as a discussion labels Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered invalid This doesn't seem right question ❓ Usually converted as a discussion
Projects
None yet
Development

No branches or pull requests

3 participants