資源簡介
固件庫寫的 STM32F207串口通訊程序

代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f2xx.c
??*?@author??MCD?Application?Team
??*?@version?V1.1.3
??*?@date????05-March-2012
??*?@brief???CMSIS?Cortex-M3?Device?Peripheral?Access?layer?System?Source?File.
??*??????????This?file?contains?the?system?clock?configuration?for?STM32F2xx?devices
??*??????????and?is?generated?by?the?clock?configuration?tool
??*??????????“STM32f2xx_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_stm32f2xx.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?(16?MHz)?is?used?as?system?clock?source.
??*????Then?SystemInit()?function?is?called?in?“startup_stm32f2xx.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?25MHz?refer?to?“HSE_VALUE“?define
??*????in?“stm32f2xx.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:
??*=============================================================================
??*=============================================================================
??*????????Supported?STM32F2xx?device?revision????|?Rev?B?and?Y
??*-----------------------------------------------------------------------------
??*????????System?Clock?source????????????????????|?PLL?(HSE)
??*-----------------------------------------------------------------------------
??*????????SYSCLK(Hz)?????????????????????????????|?120000000
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????126460??2013-08-15?11:51??iarusart\Debug\Exe\c.out
?????文件???????2823??2013-08-05?14:03??iarusart\Debug\Exe\c.sim
?????文件??????12365??2013-08-15?11:51??iarusart\Debug\Exe\usart.hex
?????文件??????29064??2013-08-15?11:51??iarusart\Debug\Obj\main.o
?????文件??????13492??2013-08-15?11:48??iarusart\Debug\Obj\misc.o
?????文件??????60700??2013-08-15?11:48??iarusart\Debug\Obj\startup_stm32f2xx.o
?????文件??????70484??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_adc.o
?????文件??????57964??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_can.o
?????文件??????13540??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_crc.o
?????文件??????34184??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_cryp.o
?????文件??????19920??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_cryp_aes.o
?????文件??????12796??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_cryp_des.o
?????文件??????13012??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_cryp_tdes.o
?????文件??????33576??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_dac.o
?????文件??????12700??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_dbgmcu.o
?????文件??????29632??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_dcmi.o
?????文件??????41240??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_dma.o
?????文件??????18072??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_exti.o
?????文件??????55628??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_flash.o
?????文件??????41016??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_fsmc.o
?????文件??????29816??2013-08-15?11:48??iarusart\Debug\Obj\stm32f2xx_gpio.o
?????文件??????32244??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_hash.o
?????文件??????13372??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_hash_md5.o
?????文件??????13456??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_hash_sha1.o
?????文件??????61676??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_i2c.o
?????文件??????36228??2013-08-15?11:51??iarusart\Debug\Obj\stm32f2xx_it.o
?????文件??????13680??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_iwdg.o
?????文件??????21860??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_pwr.o
?????文件??????80160??2013-08-15?11:48??iarusart\Debug\Obj\stm32f2xx_rcc.o
?????文件??????17128??2013-08-01?09:35??iarusart\Debug\Obj\stm32f2xx_rng.o
............此處省略143個文件信息
評論
共有 條評論