資源簡介
用 STM32CubeMX生成的一個工程用來采集AD8307輸出的數(shù)據(jù),循環(huán)ADC, 已經(jīng)把虛擬串口收發(fā)的接口寫好了 ,是基于FreeRTOS的VitrualCom,很方便
代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f1xx.c
??*?@author??MCD?Application?Team
??*?@version?V4.2.0
??*?@date????31-March-2017
??*?@brief???CMSIS?Cortex-M3?Device?Peripheral?Access?layer?System?Source?File.
??*?
??*?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
??*??????????????????????factors?AHB/APBx?prescalers?and?Flash?settings).?
??*??????????????????????This?function?is?called?at?startup?just?after?reset?and?
??*??????????????????????before?branch?to?main?program.?This?call?is?made?inside
??*??????????????????????the?“startup_stm32f1xx_xx.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)?is?used?as?system?clock?source.
??*????Then?SystemInit()?function?is?called?in?“startup_stm32f1xx_xx.s“?file?to
??*????configure?the?system?clock?before?to?branch?to?main?program.
??*
??*?4.?The?default?value?of?HSE?crystal?is?set?to?8?MHz?(or?25?MHz?depending?on
??*????the?product?used)?refer?to?“HSE_VALUE“.?
??*????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.
??*????????
??******************************************************************************
??*?@attention
??*
??*?©?COPYRIGHT(c)?2017?STMicroelectronics
??*
??*?Redistribution?and?use?in?source?and?binary?forms?with?or?without?modification
??*?are?permitted?provided?that?the?following?conditions?are?met:
??*???1.?Redistributions?of?source?code?must?retain?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer.
??*???2.?Redistributions?in?binary?form?must?reproduce?the?above?copyright?notice
??*??????this?list?of?conditions?and?the?following?disclaimer?in?the?documentation
??*??????and/or?other?materials?provided?with?the?distribution.
??*???3.?Neither?the?name?of?STMicroelectronics?nor?the?names?of?its?contributors
??*??????may?be?used?to?endorse?or?promote?products?derived?from?this?software
??*??????without?specific?prior?written?permission.
??*
??*?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?WARRANTIE
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-16?11:03??AD8307Meter\
?????目錄???????????0??2019-02-15?10:15??AD8307Meter\.git\
?????文件??????????21??2018-11-01?18:32??AD8307Meter\.gitignore
?????文件??????????55??2019-02-15?10:15??AD8307Meter\.git\COMMIT_EDITMSG
?????文件?????????209??2019-02-15?09:49??AD8307Meter\.git\config
?????文件??????????73??2018-10-31?13:29??AD8307Meter\.git\desc
?????文件?????????299??2018-11-01?18:37??AD8307Meter\.git\gitk.cache
?????文件??????????23??2018-10-31?13:29??AD8307Meter\.git\HEAD
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\hooks\
?????文件?????????478??2018-10-31?13:29??AD8307Meter\.git\hooks\applypatch-msg.sample
?????文件?????????896??2018-10-31?13:29??AD8307Meter\.git\hooks\commit-msg.sample
?????文件?????????189??2018-10-31?13:29??AD8307Meter\.git\hooks\post-update.sample
?????文件?????????424??2018-10-31?13:29??AD8307Meter\.git\hooks\pre-applypatch.sample
?????文件????????1642??2018-10-31?13:29??AD8307Meter\.git\hooks\pre-commit.sample
?????文件????????1348??2018-10-31?13:29??AD8307Meter\.git\hooks\pre-push.sample
?????文件????????4951??2018-10-31?13:29??AD8307Meter\.git\hooks\pre-reba
?????文件????????1239??2018-10-31?13:29??AD8307Meter\.git\hooks\prepare-commit-msg.sample
?????文件????????3611??2018-10-31?13:29??AD8307Meter\.git\hooks\update.sample
?????文件???????76482??2019-02-15?10:15??AD8307Meter\.git\index
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\info\
?????文件?????????240??2018-10-31?13:29??AD8307Meter\.git\info\exclude
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\logs\
?????文件?????????852??2019-02-15?10:15??AD8307Meter\.git\logs\HEAD
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\logs\refs\
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\logs\refs\heads\
?????文件?????????852??2019-02-15?10:15??AD8307Meter\.git\logs\refs\heads\master
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\ob
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\ob
?????文件?????????310??2019-02-15?10:15??AD8307Meter\.git\ob
?????目錄???????????0??2018-12-17?18:20??AD8307Meter\.git\ob
?????文件????????1733??2019-02-15?10:12??AD8307Meter\.git\ob
............此處省略1684個文件信息
評論
共有 條評論