Example description
SysTick_Example SysTick Configuration example
Example Description
This example shows how to configure the SysTick to generate a time base equal to
1 ms. The system clock is set to 120 MHz, the SysTick is clocked by the AHB clock
(HCLK).
A "Delay" function is implemented based on the SysTick end-of-count event.
Four LEDs are toggled with a timing defined by the Delay function.
Directory contents
- SysTick/SysTick_Example/stm32f2xx_conf.h Library Configuration file
- SysTick/SysTick_Example/stm32f2xx_it.c Interrupt handlers
- SysTick/SysTick_Example/stm32f2xx_it.h Header for stm32f2xx_it.c
- SysTick/SysTick_Example/main.c Main program
- SysTick/SysTick_Example/main.h Header for main.c
- SysTick/SysTick_Example/system_stm32f2xx.c STM32F2xx system source file
The "system_stm32f2xx.c" is generated by an automatic clock configuration
tool and can be easily customized to your own configuration.
To select different clock setup, use the "STM32F2xx_Clock_Configuration_V1.0.0.xls" tool.
Hardware and Software environment
- This example runs on STM32F2xx Devices.
- This example has been tested with STM322xG-EVAL RevB and can be easily tailored
to any other development board
- STM322xG-EVAL Set-up
- Use LED1, LED2, LED3 and LED4 connected respectively to PG.06, PG.08, PI.09
and PC.07 pins