Skip to content

Commit 2c0fcc2

Browse files
committed
Add statements for control VBUS
1 parent a750c9c commit 2c0fcc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/portable/renesas/usba/hcd_usba.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ bool hcd_init(uint8_t rhport)
538538
USB0.SYSCFG.BIT.DPRPU = 0;
539539
USB0.SYSCFG.BIT.DRPD = 0;
540540
USB0.SYSCFG.BIT.DCFM = 1;
541+
542+
USB0.DVSTCTR0.BIT.VBUSEN = 1;
543+
541544
USB0.SYSCFG.BIT.DRPD = 1;
542545
for (volatile int i = 0; i < 30000; ++i) ;
543546
USB0.SYSCFG.BIT.USBE = 1;

0 commit comments

Comments
 (0)