对system_stm32f4xx的理解
上一篇博客解释了stm32的启动文件,在启动文件中,在进入__mainC库函数之前,进入了SystemInit函数,如下图所示。
那,今天我们就来探究一下这个函数的功能是什么,这个函数在这个文件system_stm32f4xx.c中,所以我们今天所要讲解的内容就是system_stm32f4xx.c文件。
首先,我们先来看下这个文件的思维导图。
This file provides two functions and one global variable to be called from user application:
- SystemInit(): Setups the system clock (System clock source, PLL Multiplierand Divider factors, AHB/APBx prescalers and Flash setting depending on the configuration made in the clock xls tool.
This function is called at startup just after reset and before branch to main program. This call is made insidethe “startup_stm32f4xx.s” file.
- SystemCo