diff options
| author | hathach <[email protected]> | 2025-10-30 14:52:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-30 14:52:09 +0700 |
| commit | 3f1f7140c4ad1991c8c1bf73a0864414da68a40d (patch) | |
| tree | e36fccfa8ba0379dc53a62c03e52f0588d824855 | |
| parent | 88305b1b34160b4548609b78807be910944856ab (diff) | |
update lpc55 family.c
| -rw-r--r-- | hw/bsp/lpc55/family.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/lpc55/family.c b/hw/bsp/lpc55/family.c index 503e16216..f1ef58926 100644 --- a/hw/bsp/lpc55/family.c +++ b/hw/bsp/lpc55/family.c @@ -214,7 +214,7 @@ void board_init(void) { RESET_PeripheralReset(kUSB0HSL_RST_SHIFT_RSTn); RESET_PeripheralReset(kUSB0HMR_RST_SHIFT_RSTn); - if (BOARD_TUD_RHPORT == 0) { + if (CFG_TUD_ENABLED && BOARD_TUD_RHPORT == 0) { // Enable USB Clock Adjustments to trim the FRO for the full speed controller ANACTRL->FRO192M_CTRL |= ANACTRL_FRO192M_CTRL_USBCLKADJ_MASK; CLOCK_SetClkDiv(kCLOCK_DivUsb0Clk, 1, false); |
