CommunityGD32Cores / ArduinoCore-GD32

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

Fixed an error that occurred when EXTENDED_PIN_MODE was disabled #113

Closed WhereAreBugs closed 1 year ago

WhereAreBugs commented 1 year ago

This has caused an error.

maxgerhardt commented 1 year ago

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

WhereAreBugs commented 1 year 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 1 year ago

Ah, then I understand it.