STM32F30xx Standard Peripheral Library
STM32F30xx_StdPeriph_Template subfolder
This subfolder contains standard template projects for the supported development tools
that compile the needed STM32F30xx standard peripheral drivers plus all the user-
modifiable files that are necessary to create a new project.
The files are listed and described in details in the following table.
Table 6: STM32F30xx_StdPeriph_Templates file description
Template source file allowing starting a development from scratch using the
library drivers.
Header file allowing to enable/disable the peripheral drivers header files
inclusion.󳘪 This file can also be used to enable or disable the library run-time
failure detection before compiling the firmware library drivers, through the
preprocessor define USE_FULL_ASSERT
This file contains the system clock configuration for STM32F30/31xx devices.
This file provides two functions and one global variable to be called from
󳘪 user application:
ï‚· SystemInit(): this function sets up the system clock source, PLL
multiplier and divider factors, AHB/APBx prescalers and Flash
settings. This function is called at startup just after reset and
before branch to main program. This call is made inside the
"startup_stm32f30x.s" file.
ï‚· SystemCoreClock: this variable contains the core clock (HCLK).
It can be used by the user application to set up the SysTick timer
or configure other parameters.
ï‚· SystemCoreClockUpdate(): this function updates the variable
SystemCoreClock and must be called whenever the core clock is
changed during program execution.󳘪
This file is automatically generated by the clock configuration
tool "STM32f30x_Clock_Configuration.xls". Using this tool, you
can generate a configuration file customized for your application
requirements. For more information, please refer to AN4152
available from ST web site.
Template source file containing the interrupt service routine (ISR) for Cortex-
M4 exceptions. You can add additional ISR(s) for the used peripheral(s) (for
the available peripheral interrupt handler name, please refer to the startup file
startup_stm32f30x.s).
Header file for stm32f30x_it.c
STM32F30xx_StdPeriph_Examples sub folder
This subfolder contains, for each peripheral, the minimum set of files needed to run a
typical example on this peripheral. In addition to the user files described in the section
above, each subfolder contains a readme.txt file describing the example and how to make
it work.
For more details about the available examples within the library please refer to
Library_Examples.html file located in the root of this folder.