68 x USB I/o port

681 do general IO mouth using USB port

Tue, 2016-10-25 session-zhouchen

Because IO port co., LTD., in the use of DA14681 WLCSP packaging need to do general IO mouth using USB port, when ordinary IO mouth also has limitations, one is sleep, IO port for the unknown state, IO mouth high level only 3.3 V,
But I will sleep in code mode off:
/ * Set the desired sleep mode. * /
Pm_set_wakeup_mode (true);
Pm_set_sleep_mode (pm_mode_active);
At the same time in pm_system_init prvSetupHardware function to add (periph_gpio_setup);Within periph_gpio_setup function is set to add
USB - > USB_MCTRL_REG = 0;
CRG_PER - > USBPAD_REG = 0;
Hw_gpio_configure_pin (HW_GPIO_PORT_1 HW_GPIO_PIN_1, HW_GPIO_MODE_OUTPUT HW_GPIO_FUNC_GPIO, true);

Subscribe to the RSS - 68 - x USB I/o port