parent
c4b8339b84
commit
78c7fedcea
|
@ -115,8 +115,8 @@ typedef Servo hal_servo_t;
|
||||||
//
|
//
|
||||||
// Interrupts
|
// Interrupts
|
||||||
//
|
//
|
||||||
#define sei() noInterrupts()
|
#define sei() interrupts()
|
||||||
#define cli() interrupts()
|
#define cli() noInterrupts()
|
||||||
|
|
||||||
#define CRITICAL_SECTION_START() const bool _irqon = hal.isr_state(); hal.isr_off()
|
#define CRITICAL_SECTION_START() const bool _irqon = hal.isr_state(); hal.isr_off()
|
||||||
#define CRITICAL_SECTION_END() if (_irqon) hal.isr_on()
|
#define CRITICAL_SECTION_END() if (_irqon) hal.isr_on()
|
||||||
|
|
Loading…
Reference in a new issue