mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/tinyusb/hw/hw_stm32_otg: set V_DDUSB for U5
This commit is contained in:
parent
34ba3a22c8
commit
ec52057efc
@ -37,6 +37,11 @@ static int tinyusb_hw_init_dev(const dwc2_usb_otg_fshs_config_t *conf)
|
||||
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