CommunityGD32Cores / ArduinoCore-GD32

Arduino core for GD32 devices, community developed, based on original GigaDevice's core
Other
89 stars 33 forks source link

Fixed an error that occurred when EXTENDED_PIN_MODE was disabled #113

Closed WhereAreBugs closed 11 months ago

WhereAreBugs commented 11 months ago

This has caused an error.

maxgerhardt commented 11 months ago

Which sketch code produced which error messages that this PR fixes?

WhereAreBugs commented 11 months ago

When I trying to call the function deattchInterrupt(), which is declared as void detachInterrupt(pin_size_t interruptNumber);,but realized as void detachInterrupt(uint32_t pin). When I compiled on some boards without macro EXTENDED_PIN_MODE, due to the code below at Common.h,

image

the type will mismatch. So I get an error. In addition, my English is not good. Please forgive me if I am rude.

maxgerhardt commented 11 months ago

Ah, then I understand it.