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 #32 background imageLoading...
Page #32 background image
How to use and customize the library
UM1581
32/584
DocID023800 Rev 1
2 How to use and customize the library
The following sections explain all the steps required to configure, customize, run your first
example, and develop your application based on the library.
2.1 Library configuration parameters
The configuration interface allows customizing the library for your application. It is not
mandatory to modify this configuration and you can use the default configuration without
any modification.
To configure these parameters, you should enable, disable or modify some options by
uncommenting, commenting or modifying the values of the related define statements as
described in the table below.
Table 8: Library configuration parameters
Parameter
File
Description
STM32F30XX
(1)
stm32f30x.h
Default status: enabled
󳘪 Defines the root number of
STM32F30/31xx devices. This define
statement can be used at application level to
configure the application firmware for
STM32F30/31xx.
USE_STDPERIPH_DRIVER
(1)
stm32f30x.h
Default status: enabled
When disabled, the peripheral drivers are
not included and the application code is
based on direct access to peripherals
registers.
HSE_VALUE
stm32f30x.h
Default value: 8 MHz
Defines the value of the external oscillator
(HSE) expressed in Hz. The user must
adjust this define statement when using a
different crystal value.
HSE_STARTUP_TIMEOUT
stm32f30x.h
Default value: 0x0500
Defines the maximum external oscillator
(HSE) startup timeout value. The user must
adjust this define statement when using a
different statement startup time.
󳘪
HSI_VALUE
stm32f30x.h
Default value: 8 MHz
Defines the value of the internal oscillator
(HSI) expressed in Hz.
󳘪
__CM4_REV
stm32f30x.h
__MPU_PRESENT
These define statements are used by
Cortex-M4 CMSIS layer to inform about the
options supported by STM32F30/31xx
devices:
/*!< Configuration of the
Cortex-M4 Processor and Core
Peripherals
__NVIC_PRIO_BITS
__Vendor_SysTickConfig
__FPU_PRESENT

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