mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/usbdev_synopsys_dwc2: set V_DDUSB for U5
This commit is contained in:
parent
1850f7a2c7
commit
34ba3a22c8
@ -750,6 +750,11 @@ static void _usbdev_init(usbdev_t *dev)
|
||||
PWR->CR2 |= PWR_CR2_USV;
|
||||
#endif /* PWR_CR2_USV */
|
||||
|
||||
#if defined(PWR_SVMCR_USV)
|
||||
/* on U5: Validate USB Supply */
|
||||
PWR->SVMCR |= PWR_SVMCR_USV;
|
||||
#endif /* PWR_SVMCR_USV */
|
||||
|
||||
/* Enable the clock to the peripheral */
|
||||
periph_clk_en(conf->ahb, conf->rcc_mask);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user