bdk: utilize new gpio functions
This commit is contained in:
1 parent
05b5e4f297
commit
5bb9a244ea
8 files changed
+45
-86
No files matched your search
+1
-1
@@ -221,7 +221,7 @@ static void _usb_charger_detect()
|
||||
usbd_otg->charger_detect |= 1;
|
||||
// Configure detect pin.
|
||||
PINMUX_AUX(PINMUX_AUX_LCD_GPIO1) &= ~(PINMUX_PARKED | PINMUX_TRISTATE | PINMUX_PULL_MASK);
|
||||
gpio_config(GPIO_PORT_V, GPIO_PIN_3, GPIO_MODE_GPIO);
|
||||
gpio_direction_input(GPIO_PORT_V, GPIO_PIN_3);
|
||||
|
||||
// Configure charger pin.
|
||||
PINMUX_AUX(PINMUX_AUX_USB_VBUS_EN1) &= ~(PINMUX_INPUT_ENABLE | PINMUX_PARKED | PINMUX_TRISTATE | PINMUX_PULL_MASK);
|
||||
|
||||
Reference in new issue
Block a user