How to set and use two usb_pd_port in stm32g4 ?
I bought B-G474E-DPOW1 and had one typec interface, which cc connect ucpd_dbcc pins. I need another typec interface to send pd message, could I use the ucpd_cc pins for this?
And I try to change the demo code "USB-PD_Consumer_1port", set USBPD_PORT_COUNT=2, while got error when pd init, error in USBPD_PE_Init.
/* PE SET UP : Port 0 */
CHECK_PE_FUNCTION_CALL(USBPD_PE_Init(USBPD_PORT_0, (USBPD_SettingsTypeDef *)&DPM_Settings[USBPD_PORT_0], &DPM_Params[USBPD_PORT_0], &dpmCallbacks));
#if USBPD_PORT_COUNT == 2
