ibm_usb: Fix interrupt enable macro
clear interrupt flag before enabling to ditch unwanted interrupt
This commit is contained in:
parent
9a06c701b0
commit
e7d6d24c17
1 changed files with 2 additions and 0 deletions
|
|
@ -75,7 +75,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
(0<<ISC10)); \
|
(0<<ISC10)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
/* NOTE: clear flag and enabling to ditch unwanted interrupt */
|
||||||
#define IBMPC_INT_ON() do { \
|
#define IBMPC_INT_ON() do { \
|
||||||
|
EIFR |= (1<<INTF1); \
|
||||||
EIMSK |= (1<<INT1); \
|
EIMSK |= (1<<INT1); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue