Closed obra closed 1 year ago
I agree, we should implement it like STM32Duino does as a macro for fastest execution speed.
Done in https://github.com/CommunityGD32Cores/ArduinoCore-GD32/commit/a22a2e3aca8ce338f1ca8e2170fd70c53399120e quite some time ago.
https://www.arduino.cc/reference/en/language/functions/interrupts/nointerrupts/ says they're part of the standard API.
We don't implement them.
It looks like it they should be implemented as wrappers around
__disableIrq
and__enableIrq()
per https://stm32f4-discovery.net/2015/06/how-to-properly-enabledisable-interrupts-in-arm-cortex-m/ and some grepping of the GD32 code.