]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
ibm_usb: Fix interrupt enable macro
authortmk <hasu@tmk-kbd.com>
Thu, 23 Jan 2020 08:10:23 +0000 (17:10 +0900)
committertmk <hasu@tmk-kbd.com>
Sat, 29 Feb 2020 08:29:54 +0000 (17:29 +0900)
clear interrupt flag before enabling to ditch unwanted interrupt

converter/ibmpc_usb/config.h

index fc545f691c8bb98ee73649edf00f4f313510ec44..0198f5e1647ebafded0c1228b4800ce7f982ef09 100644 (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)