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.
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.