Examples description
–
–
–
–
–
–
3.
In a FreeRTOS™ configuration, call to USBPD_DPM_Init() performs threads, message
queues creation and launches the RTOS Kernel (task scheduler).
Note:
The USB-C™ PD library uses FreeRTOS™ to manage high-level layers.
4.1.4
TCPM API description
For a complete description of the USB-PD core stack callbacks to be implemented on the
DPM user side, refer to the CHM file provided in the Documentation directory of the
X-CUBE-USB-PD Expansion Package
(STM32F072xB_USBPD_CORE_RELEASE_User_Manual.chm), in particular to
USBPD_PE_Callbacks Struct reference description. For a complete description of the
USBPD core TCPM stack callbacks to be implemented on the TCPC component side, refer
to the CHM file provided in the Documentation directory of the X-CUBE-USB-PD Expansion
Package (STM32F072xB_USBPD_CORE_TCPM_RELEASE user manual), in particular to
TCPC_DrvTypeDef Reference description
14/18
initialize the Device Policy Manager layer and all the communication layers (PE,
VDM, PRL, PHY).
stm32f0xx_hal_conf.h: contains STM32F0xx HAL configuration file (such as
enabled IPs)
stm32f0xx_hal_msp.c: contains hardware interface MSP functions (referred to by
HAL IP Initialization functions)
stm32f0xx_it.c/stm32f0xx_it.h: provides definitions for all exceptions handlers and
peripherals interrupt service routines used in the application.
usbpd_dpm_user.c/usbpd_dpm_user.h: contains USB-PD DPM user code,
including implementation of functions and callbacks required to fulfill USB core
stack API.
usbpd_pwr_if.c/usbpd_pwr_if.h: contains a definition of power interface control
functions
FreeRTOSConfig.h: contains application-specific definitions related to
FreeRTOS™ use.
UM2063 Rev 5
UM2063
Need help?
Do you have a question about the STM32 and is the answer not in the manual?
Questions and answers