xt_usb: Clear flag before enabling interrupt
This commit is contained in:
parent
8a92f254e1
commit
2b9d4ace5b
1 changed files with 2 additions and 0 deletions
|
|
@ -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 { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue