From b2fb5b715ca4d1b0fbe65e9212824cdd0243985e Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 17 Jan 2020 22:34:44 +0900 Subject: [PATCH] ibmpc: Add intruppt disable and enable function --- tmk_core/protocol/ibmpc.c | 23 ++++++++++++++++++----- tmk_core/protocol/ibmpc.h | 14 ++------------ 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/tmk_core/protocol/ibmpc.c b/tmk_core/protocol/ibmpc.c index 92fc2bee..f9374089 100644 --- a/tmk_core/protocol/ibmpc.c +++ b/tmk_core/protocol/ibmpc.c @@ -70,13 +70,26 @@ volatile uint8_t ibmpc_error = IBMPC_ERR_NONE; void ibmpc_host_init(void) { - clock_init(); - data_init(); - idle(); + // initialize reset pin + IBMPC_RST_PORT |= (1<