Remove the extra copy of CRITICAL_SECTION from fastio

This commit is contained in:
Yuri D'Elia 2021-01-29 18:30:16 +01:00
parent 31b3ad0613
commit b8b75186fe

View File

@ -9,12 +9,6 @@
#include <avr/io.h> #include <avr/io.h>
#include "macros.h" #include "macros.h"
#ifndef CRITICAL_SECTION_START
#define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli();
#define CRITICAL_SECTION_END SREG = _sreg;
#include <avr/interrupt.h>
#endif //CRITICAL_SECTION_START
/* /*
magic I/O routines magic I/O routines