PHiLIP
|
CMSIS Cortex-M3 Device Peripheral Access Layer System Source File. More...
#include "stm32f1xx.h"
Macros | |
#define | HSE_VALUE 8000000U |
#define | HSI_VALUE 8000000U |
#define | VECT_TAB_OFFSET 0x00000000U |
Functions | |
void | SystemInit (void) |
Setup the microcontroller system Initialize the Embedded Flash Interface, the PLL and update the SystemCoreClock variable. More... | |
void | SystemCoreClockUpdate (void) |
Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable contains the core clock (HCLK), it can be used by the user application to setup the SysTick timer or configure other parameters. More... | |
Variables | |
uint32_t | SystemCoreClock = 72000000U |
const uint8_t | AHBPrescTable [16U] |
GENERATED BY STMCUBE. More... | |
const uint8_t | APBPrescTable [8U] = { 0, 0, 0, 0, 1, 2, 3, 4 } |
GENERATED BY STMCUBE. | |
CMSIS Cortex-M3 Device Peripheral Access Layer System Source File.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define HSE_VALUE 8000000U |
Default value of the External oscillator in Hz. This value can be provided and adapted by the user application.
#define HSI_VALUE 8000000U |
Default value of the Internal oscillator in Hz. This value can be provided and adapted by the user application.
#define VECT_TAB_OFFSET 0x00000000U |
< Uncomment the following line if you need to use external SRAM
< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. Vector Table base offset field.
void SystemCoreClockUpdate | ( | void | ) |
Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable contains the core clock (HCLK), it can be used by the user application to setup the SysTick timer or configure other parameters.
(*) HSI_VALUE is a constant defined in stm32f1xx.h file (default value 8 MHz) but the real value may vary depending on the variations in voltage and temperature.
(**) HSE_VALUE is a constant defined in stm32f1xx.h file (default value 8 MHz or 25 MHz, depending on the product used), user has to ensure that HSE_VALUE is same as the real frequency of the crystal used. Otherwise, this function may have wrong result.
void SystemInit | ( | void | ) |
Setup the microcontroller system Initialize the Embedded Flash Interface, the PLL and update the SystemCoreClock variable.
const uint8_t AHBPrescTable[16U] |
GENERATED BY STMCUBE.
uint32_t SystemCoreClock = 72000000U |
< HSI Selected as System Clock source System Clock Frequency (Core Clock)