How to use and customize the library
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
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.
Default status: enabled
When disabled, the peripheral drivers are
not included and the application code is
based on direct access to peripherals
registers.
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.
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.
󳘪
Default value: 8 MHz
Defines the value of the internal oscillator
(HSI) expressed in Hz.
󳘪
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