xt_usb: Clear flag before enabling interrupt

This commit is contained in:
tmk 2018-03-02 02:29:46 +09:00
parent 8a92f254e1
commit 2b9d4ace5b

View file

@ -71,7 +71,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
EICRA |= ((1<<ISC11) | \
(0<<ISC10)); \
} while (0)
/* clears flag and enables interrupt */
#define XT_INT_ON() do { \
EIFR |= (1<<INTF1); \
EIMSK |= (1<<INT1); \
} while (0)
#define XT_INT_OFF() do { \