-
大小: 2.72MB文件類(lèi)型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-13
- 語(yǔ)言: 其他
- 標(biāo)簽: stm32CubeMx??HAL程序??
資源簡(jiǎn)介
使用stm32CubeMx 軟件開(kāi)發(fā)STM32 使用最新的HAL庫(kù)函數(shù)。
GPIO 輸出
串口printf 重映射
DMA ADC 轉(zhuǎn)換4路 電壓后串口輸出。

代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f1xx.c
??*?@author??MCD?Application?Team
??*?@version?V4.0.0
??*?@date????16-December-2014
??*?@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)?2014?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?WARRAN
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件???????4632??2015-07-30?14:12??STM32F103C8T6-ICKEY-GPIO\.mxproject
?????文件????????399??2014-04-16?09:34??STM32F103C8T6-ICKEY-GPIO\clearn.bat
?????文件?????292235??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f100xb.h
?????文件?????319962??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f100xe.h
?????文件?????264834??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101x6.h
?????文件?????269826??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101xb.h
?????文件?????318718??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101xe.h
?????文件?????328625??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f101xg.h
?????文件?????322604??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f102x6.h
?????文件?????327203??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f102xb.h
?????文件?????447142??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103x6.h
?????文件?????452134??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xb.h
?????文件?????506901??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xe.h
?????文件?????514140??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xg.h
?????文件?????590644??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f105xc.h
?????文件?????627246??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f107xc.h
?????文件???????8879??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h
?????文件???????3180??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h
?????文件??????15097??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f100xb.s
?????文件??????16685??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f100xe.s
?????文件??????12534??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101x6.s
?????文件??????12907??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101xb.s
?????文件??????15019??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101xe.s
?????文件??????15778??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f101xg.s
?????文件??????12856??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f102x6.s
?????文件??????13241??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f102xb.s
?????文件??????13419??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103x6.s
?????文件??????13804??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103xb.s
?????文件??????16361??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103xe.s
?????文件??????16815??2015-07-22?22:51??STM32F103C8T6-ICKEY-GPIO\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103xg.s
............此處省略464個(gè)文件信息
評(píng)論
共有 條評(píng)論