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

non-portable attachInterrupt() definition in ~/.arduino15/packages/WCH/hardware/ch32v/1.0.4/cores/arduino/WInterrupts.h #135

Open
polypagan opened this issue Jul 16, 2024 · 2 comments

Comments

@polypagan
Copy link

attachInterrupt(pin,GPIOMode_TypeDef io_mode, void (*callback)(void), EXTIMode_TypeDef it_mode, EXTITrigger_TypeDef trigger_mode);

throws errors.

attachInterrupt(digitalPinToInterrupt(pin), ISR, mode);

is used by every other Arduino package I've used/looked at. I assume this variation is required by features of CH32V parts. There must be some workaround that I am not smart enough to work out.

If I were calling attachInterrupt() directly from my own code, I could make this conditional. That approach doesn't work when attachInterrupt() is called by library code.

@lyusupov
Copy link

duplicates #15

@polypagan
Copy link
Author

My apologies for duplicate. I did search, didn't find.

I will close this, duplicate is also closed with refusal to correct, making this core unusable for many applications.

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

2 participants