Adding sei() and cli() as aliases for interrupts() and noInterrupts(). (#1089)
This commit is contained in:
parent
1228251bc3
commit
1e2f1a19ff
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ void noInterrupts();
|
||||||
#define portModeRegister(port) ((volatile uint32_t*) sio_hw->gpio_oe)
|
#define portModeRegister(port) ((volatile uint32_t*) sio_hw->gpio_oe)
|
||||||
#define digitalWriteFast(pin, val) (val ? sio_hw->gpio_set = (1 << pin) : sio_hw->gpio_clr = (1 << pin))
|
#define digitalWriteFast(pin, val) (val ? sio_hw->gpio_set = (1 << pin) : sio_hw->gpio_clr = (1 << pin))
|
||||||
#define digitalReadFast(pin) ((1 << pin) & sio_hw->gpio_in)
|
#define digitalReadFast(pin) ((1 << pin) & sio_hw->gpio_in)
|
||||||
|
#define sei() interrupts()
|
||||||
|
#define cli() noInterrupts()
|
||||||
|
|
||||||
// ADC RP2040-specific calls
|
// ADC RP2040-specific calls
|
||||||
void analogReadResolution(int bits);
|
void analogReadResolution(int bits);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue