mirror of
https://xff.cz/git/pinephone-keyboard/
synced 2024-11-09 22:15:42 +01:00
Add extra 50uA savings by disabling the USB 3.3V regulator
This commit is contained in:
parent
b24b0f1d84
commit
c4f36fdb14
1 changed files with 2 additions and 2 deletions
|
@ -2038,8 +2038,8 @@ void main(void)
|
||||||
// turn off PLL48
|
// turn off PLL48
|
||||||
P1_UDCCTRL |= BIT(0);
|
P1_UDCCTRL |= BIT(0);
|
||||||
|
|
||||||
// turn off unused USB resources (phy power down, PLL48 powerdown
|
// turn off unused USB resources (phy power down, PLL48 powerdown, regulator off, pins to gpio mode)
|
||||||
P1_USBCTRL |= BIT(0) | BIT(1);
|
P1_USBCTRL = BIT(0) | BIT(1) | BIT(2) | BIT(7);
|
||||||
|
|
||||||
// enable auto-tuning internal RC oscillator based on USB SOF packets
|
// enable auto-tuning internal RC oscillator based on USB SOF packets
|
||||||
P1_IRCCTRL |= BIT(1); // enable manual trim
|
P1_IRCCTRL |= BIT(1); // enable manual trim
|
||||||
|
|
Loading…
Reference in a new issue