/*!< Uncomment the following line if you need touse external SRAM mounted
on STM3210E-EVAL board (STM32 High density andXL-density devices) or on
STM32100E-EVAL board (STM32 High-density value linedevices) as data memory */
#if defined (STM32F10X_HD) || (defined STM32F10X_XL) || (definedSTM32F10X_HD_VL)//内外部SRAM选择
/* #define DATA_IN_ExtSRAM */
#endif
/*!< Uncomment the following line if you need torelocate your vector Table in
Internal SRAM. */
/* #define VECT_TAB_SRAM */
#define VECT_TAB_OFFSET 0x0 /*!< Vector Table base offset field. //向量表的基址偏移量
This value must be a multiple of 0x100. */
/**
* @brief Setup the microcontroller system
* Initialize theEmbedded Flash Interface, the PLL and update the
* SystemCoreClockvariable.
* @note This function should be used only after reset.
* @param None
* @retval None
*/
void SystemInit (void)//系统初始化函数,设置系统的时钟及时钟中断(在startup_stm32f10x_md.s中调用)(复位RCC时钟配置为默认状态,直到设置时钟函数)
{
/* Reset the RCC clock configuration to the default reset state(fordebug purpose) */
/* Set HSION bit */
RCC->CR |= (uint32_t)0x00000001; //内部高速时钟使能,内部8MHz时钟开启