Browse Source

Tweak AVR critical section defines

pull/1/head
Scott Lahteine 7 years ago
parent
commit
c1269c2ec1
  1. 4
      Marlin/src/HAL/HAL_AVR/HAL.h

4
Marlin/src/HAL/HAL_AVR/HAL.h

@ -52,8 +52,8 @@
//#define analogInputToDigitalPin(IO) IO //#define analogInputToDigitalPin(IO) IO
#ifndef CRITICAL_SECTION_START #ifndef CRITICAL_SECTION_START
#define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli(); #define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli()
#define CRITICAL_SECTION_END SREG = _sreg; #define CRITICAL_SECTION_END SREG = _sreg
#endif #endif
#define ISRS_ENABLED() TEST(SREG, SREG_I) #define ISRS_ENABLED() TEST(SREG, SREG_I)
#define ENABLE_ISRS() sei() #define ENABLE_ISRS() sei()

Loading…
Cancel
Save