Software Description; Demonstration Application; Table 4. Main Application Functions Description; Figure 11. Stm32G0 Software Architecture Overview - ST STM32G071B-DISCO User Manual

Usb-c discovery kit
Table of Contents

Advertisement

Software description

5
Software description
Following sections detail:
Application: in charge to initialize demo application, HAL, interrupt handler and launch
the main module
Middleware: FreeRTOS, USBPD
5.1

Demonstration Application

The application goal is to prepare demonstration startup, by initializing all the HW/SW.
Table below provides a description of all the actions performed by the different functions in
main.c
Main
SystemClock_Config
16/30

Figure 11. STM32G0 software architecture overview

Table 4. Main application functions description

Functions (Main.c)
Initialize the HAL, configure the clock and the power
MOS, depending on the door position, initialize the
responder for the STM32CubeMonitor USB Type-C PD
tool (GUI_Init), start the stack (USBPD_DPM_InitCore),
the UCPD application (USBPD_DPM_UserInit), start the
OS (USBPD_DPM_InitOS), and then start the
demonstration
Set the right clocks for flash and RCC
UM2546 Rev 1
Description
UM2546

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G071B-DISCO and is the answer not in the manual?

Table of Contents