資源簡介
STM32F030& 051青風全套教程和程序例程,有興趣的人可以下載,便于學習交流。
代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f0xx.c
??*?@author??MCD?Application?Team
??*?@version?V1.0.0
??*?@date????23-March-2012
??*?@brief???CMSIS?Cortex-M0?Device?Peripheral?Access?layer?System?Source?File.
??*??????????This?file?contains?the?system?clock?configuration?for?STM32F0xx?devices
??*??????????and?is?generated?by?the?clock?configuration?tool??
??*??????????STM32F0xx_Clock_Configuration_V1.0.0.xls
??*
??*?1.??This?file?provides?two?functions?and?one?global?variable?to?be?called?from?
??*?????user?application:
??*??????-?SystemInit():?Setups?the?system?clock?(System?clock?source?PLL?Multiplier
??*??????????????????????and?Divider?factors?AHB/APBx?prescalers?and?Flash?settings)
??*??????????????????????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?inside
??*??????????????????????the?“startup_stm32f0xx.s“?file.
??*
??*??????-?SystemCoreClock?variable:?Contains?the?core?clock?(HCLK)?it?can?be?used
??*??????????????????????????????????by?the?user?application?to?setup?the?SysTick?
??*??????????????????????????????????timer?or?configure?other?parameters.
??*
??*??????-?SystemCoreClockUpdate():?Updates?the?variable?SystemCoreClock?and?must
??*?????????????????????????????????be?called?whenever?the?core?clock?is?changed
??*?????????????????????????????????during?program?execution.
??*
??*?2.?After?each?device?reset?the?HSI?(8?MHz?Range)?is?used?as?system?clock?source.
??*????Then?SystemInit()?function?is?called?in?“startup_stm32f0xx.s“?file?to
??*????configure?the?system?clock?before?to?branch?to?main?program.
??*
??*?3.?If?the?system?clock?source?selected?by?user?fails?to?startup?the?SystemInit()
??*????function?will?do?nothing?and?HSI?still?used?as?system?clock?source.?User?can?
??*????add?some?code?to?deal?with?this?issue?inside?the?SetSysClock()?function.
??*
??*?4.?The?default?value?of?HSE?crystal?is?set?to?8MHz?refer?to?“HSE_VALUE“?define
??*????in?“stm32f0xx.h“?file.?When?HSE?is?used?as?system?clock?source?directly?or
??*????through?PLL?and?you?are?using?different?crystal?you?have?to?adapt?the?HSE
??*????value?to?your?own?configuration.
??*
??*?5.?This?file?configures?the?system?clock?as?follows:
??*=============================================================================
??*?????????????????????????System?Clock?Configuration
??*=============================================================================
??*????????System?Clock?source??????????|?PLL(HSE)
??*-----------------------------------------------------------------------------
??*????????SYSCLK???????????????????????|?48000000?Hz
??*-----------------------------------------------------------------------------
??*????????HCLK?????????????????????????|?48000000?Hz
??*-----------------
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????I.A....???2042716??2018-10-26?09:19??STM32F030&?051青風全套教程和程序例程\dog.rar
????I.A....???1320725??2018-10-26?09:19??STM32F030&?051青風全套教程和程序例程\exitkey.rar
????I.A....???1060519??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\flash.rar
????I.A....???1705095??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\gui.rar
????I.A....????412199??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\lcd.rar
????I.A....???2468286??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\led.rar
????I.A....???2364963??2018-10-26?09:19??STM32F030&?051青風全套教程和程序例程\net.rar
????I.A....????161200??2018-10-26?09:17??STM32F030&?051青風全套教程和程序例程\pwm.rar
????I.A....???1729179??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\rtc.rar
????I.A....????923661??2018-10-26?09:17??STM32F030&?051青風全套教程和程序例程\scankey.rar
????I.A....???1958574??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\sd.rar
????I.A....???1338001??2018-10-26?09:13??STM32F030&?051青風全套教程和程序例程\STM32F030串口.zip
????I.A....???1016789??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\system.rar
????I.A....?????13288??2018-10-26?09:12??STM32F030&?051青風全套教程和程序例程\system_stm32f0xx.c
????I.A....???1463732??2018-10-26?09:19??STM32F030&?051青風全套教程和程序例程\tim.rar
????I.A....????946809??2018-10-26?09:18??STM32F030&?051青風全套教程和程序例程\uart.rar
????I.A....???1350210??2018-10-26?09:19??STM32F030&?051青風全套教程和程序例程\ucos.rar
?????目錄??????????0??2018-10-26?09:24??STM32F030&?051青風全套教程和程序例程
-----------?---------??----------?-----??----
?????????????22275946????????????????????18
評論
共有 條評論