summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-02-09 16:14:50 +0700
committerGitHub <[email protected]>2022-02-09 16:14:50 +0700
commit63cb3cdc74552f5b1a590e08c9c73bdef4feccc1 (patch)
treed44c45a0ffc09298ba5526dddb4cfabd7f5894d9 /hw
parentd6fb1859a466508534b336c468ab328ea6704894 (diff)
parentce7a8fed36dc61ef488f1c75a9c810681c7dcde9 (diff)
Merge pull request #1304 from kkitayam/add_hcd_for_frdm_kl25z
Add hcd driver for frdm kl25z
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/frdm_kl25z/board.mk1
-rw-r--r--hw/bsp/frdm_kl25z/frdm_kl25z.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/hw/bsp/frdm_kl25z/board.mk b/hw/bsp/frdm_kl25z/board.mk
index 15bd50eda..3585b8b03 100644
--- a/hw/bsp/frdm_kl25z/board.mk
+++ b/hw/bsp/frdm_kl25z/board.mk
@@ -23,6 +23,7 @@ LD_FILE = $(MCU_DIR)/gcc/MKL25Z128xxx4_flash.ld
SRC_C += \
src/portable/nxp/khci/dcd_khci.c \
+ src/portable/nxp/khci/hcd_khci.c \
$(MCU_DIR)/system_MKL25Z4.c \
$(MCU_DIR)/project_template/clock_config.c \
$(MCU_DIR)/drivers/fsl_clock.c \
diff --git a/hw/bsp/frdm_kl25z/frdm_kl25z.c b/hw/bsp/frdm_kl25z/frdm_kl25z.c
index 72982ed8a..2930ed56e 100644
--- a/hw/bsp/frdm_kl25z/frdm_kl25z.c
+++ b/hw/bsp/frdm_kl25z/frdm_kl25z.c
@@ -39,7 +39,12 @@
//--------------------------------------------------------------------+
void USB0_IRQHandler(void)
{
+#if TUSB_OPT_HOST_ENABLED
+ tuh_int_handler(0);
+#endif
+#if TUSB_OPT_DEVICE_ENABLED
tud_int_handler(0);
+#endif
}
//--------------------------------------------------------------------+