Skip to content

Commit 3f1f714

Browse files
committed
update lpc55 family.c
1 parent 88305b1 commit 3f1f714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/bsp/lpc55/family.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void board_init(void) {
214214
RESET_PeripheralReset(kUSB0HSL_RST_SHIFT_RSTn);
215215
RESET_PeripheralReset(kUSB0HMR_RST_SHIFT_RSTn);
216216

217-
if (BOARD_TUD_RHPORT == 0) {
217+
if (CFG_TUD_ENABLED && BOARD_TUD_RHPORT == 0) {
218218
// Enable USB Clock Adjustments to trim the FRO for the full speed controller
219219
ANACTRL->FRO192M_CTRL |= ANACTRL_FRO192M_CTRL_USBCLKADJ_MASK;
220220
CLOCK_SetClkDiv(kCLOCK_DivUsb0Clk, 1, false);

0 commit comments

Comments
 (0)