Add extra 50uA savings by disabling the USB 3.3V regulator

This commit is contained in:
Ondrej Jirman 2023-02-17 17:29:27 +01:00
parent b24b0f1d84
commit c4f36fdb14

View file

@ -2038,8 +2038,8 @@ void main(void)
// turn off PLL48
P1_UDCCTRL |= BIT(0);
// turn off unused USB resources (phy power down, PLL48 powerdown
P1_USBCTRL |= BIT(0) | BIT(1);
// turn off unused USB resources (phy power down, PLL48 powerdown, regulator off, pins to gpio mode)
P1_USBCTRL = BIT(0) | BIT(1) | BIT(2) | BIT(7);
// enable auto-tuning internal RC oscillator based on USB SOF packets
P1_IRCCTRL |= BIT(1); // enable manual trim