EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #28 background imageLoading...
Page #28 background image
STM32F30xx Standard Peripheral Library
UM1581
28/584
DocID023800 Rev 1
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
File name
Description
main.c
Template source file allowing starting a development from scratch using the
library drivers.
main.h
header file for main.c
stm32f30x_conf.h
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
system_stm32f30x.c
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.
stm32f30x_it.c
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).
stm32f30x_it.h
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.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals