ibm_usb: Fix interrupt enable macro

clear interrupt flag before enabling to ditch unwanted interrupt
This commit is contained in:
tmk 2020-01-23 17:10:23 +09:00
parent 9a06c701b0
commit e7d6d24c17

View file

@ -75,7 +75,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
(0<<ISC10)); \
} while (0)
/* NOTE: clear flag and enabling to ditch unwanted interrupt */
#define IBMPC_INT_ON() do { \
EIFR |= (1<<INTF1); \
EIMSK |= (1<<INT1); \
} while (0)