summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-08-28 17:34:22 +0700
committerhathach <[email protected]>2023-08-28 17:34:40 +0700
commit588b758717f3c22aa8046d61247b9967de8840b7 (patch)
tree875e516c07a5a56126388b1d647eb8fbad1d559d /src/portable
parente2f28bc134446dc081766055171ca427afd4f564 (diff)
rename OPT_MCU_KINETIS_K64 to OPT_MCU_KINETIS_K
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/nxp/khci/dcd_khci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/nxp/khci/dcd_khci.c b/src/portable/nxp/khci/dcd_khci.c
index d957338ad..2293d1b59 100644
--- a/src/portable/nxp/khci/dcd_khci.c
+++ b/src/portable/nxp/khci/dcd_khci.c
@@ -269,10 +269,10 @@ void dcd_init(uint8_t rhport)
{
(void) rhport;
-#if (CFG_TUSB_MCU == OPT_MCU_KINETIS_K64)
+#if (CFG_TUSB_MCU == OPT_MCU_KINETIS_K)
uint32_t clk_recover_irc_en;
uint32_t clk_recover_ctrl;
-
+
clk_recover_irc_en = KHCI->CLK_RECOVER_IRC_EN;
clk_recover_ctrl = KHCI->CLK_RECOVER_CTRL;
@@ -284,7 +284,7 @@ void dcd_init(uint8_t rhport)
#else
KHCI->USBTRC0 |= USB_USBTRC0_USBRESET_MASK;
while (KHCI->USBTRC0 & USB_USBTRC0_USBRESET_MASK);
-#endif
+#endif
tu_memclr(&_dcd, sizeof(_dcd));
KHCI->USBTRC0 |= TU_BIT(6); /* software must set this bit to 1 */