91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 755KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-08
  • 語言: 其他
  • 標簽:

資源簡介

例題:使用STM32的GPIOB口控制8個LED燈的亮滅。STM32有7個GPIO口,每個GPIO口有16個引腳,使用其中的8-15引腳對8個LED燈進行控制,可以實現閃亮、跑馬燈、流水燈等效果。開發工具為Keil MDK5(最新版本),兼容低版本(本例題程序使用庫函數:GPIO_SetBits和GPIO_ResetBits實現對LED亮滅的控制)

資源截圖

代碼片段和文件信息

/**
??******************************************************************************
??*?@file????system_stm32f10x.c
??*?@author??MCD?Application?Team
??*?@version?V3.5.0
??*?@date????11-March-2011
??*?@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_stm32f10x_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_stm32f10x_xx.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?8?MHz?(or?25?MHz?depedning?on
??*????the?product?used)?refer?to?“HSE_VALUE“?define?in?“stm32f10x.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.
??*????????
??******************************************************************************
??*?@attention
??*
??*?THE?PRESENT?FIRMWARE?WHICH?IS?FOR?GUIDANCE?ONLY?AIMS?AT?PROVIDING?CUSTOMERS
??*?WITH?CODING?INFORMATION?REGARDING?THEIR?PRODUCTS?IN?ORDER?FOR?THEM?TO?SAVE
??*?TIME.?AS?A?RESULT?STMICROELECTRONICS?SHALL?NOT?BE?HELD?LIABLE?FOR?ANY
??*?DIRECT?INDIRECT?OR?CONSEQUENTIAL?DAMAGES?WITH?RESPECT?TO?ANY?CLAIMS?ARISING
??*?FROM?THE?CONTENT?OF?SUCH?FIRMWARE?AND/OR?THE?USE?MADE?BY?CUSTOMERS?OF?THE
??*?CODING?INFORMATION?CONTAINED?HEREIN?IN?CONNECTION?WITH?THEIR?PRODUCTS.
??*
??*?

©?COPYRIGHT?2011?STMicroelectronics


??******************************************************************************
??*/

/**?@addtogroup?CMSIS
??*?@{
??*/

/**?@addtogroup?stm32f10x_system
??*?@{
??*

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????62913??2018-05-08?09:37??excise1\Listings\pro.map

?????文件??????45012??2018-05-06?09:37??excise1\Listings\startup_stm32f10x_md.lst

?????文件?????253043??2018-05-08?09:16??excise1\objects\led.crf

?????文件???????1222??2018-05-08?09:16??excise1\objects\led.d

?????文件?????278208??2018-05-08?09:16??excise1\objects\led.o

?????文件?????252187??2018-05-08?09:37??excise1\objects\main.crf

?????文件???????1238??2018-05-08?09:37??excise1\objects\main.d

?????文件?????274052??2018-05-08?09:37??excise1\objects\main.o

?????文件?????252594??2018-05-06?09:37??excise1\objects\misc.crf

?????文件???????1375??2018-05-06?09:37??excise1\objects\misc.d

?????文件?????278024??2018-05-06?09:37??excise1\objects\misc.o

?????文件?????244516??2018-05-08?09:37??excise1\objects\pro.axf

?????文件???????3403??2018-05-08?09:37??excise1\objects\pro.build_log.htm

?????文件???????4596??2018-05-08?09:37??excise1\objects\pro.hex

?????文件??????37533??2018-05-08?09:37??excise1\objects\pro.htm

?????文件????????421??2018-05-08?09:37??excise1\objects\pro.lnp

?????文件????????479??2018-05-06?09:37??excise1\objects\pro.sct

?????文件??????10768??2018-05-08?09:37??excise1\objects\pro_Target?1.dep

?????文件?????????81??2018-05-06?09:37??excise1\objects\startup_stm32f10x_md.d

?????文件???????6044??2018-05-06?09:37??excise1\objects\startup_stm32f10x_md.o

?????文件?????256082??2018-05-06?09:37??excise1\objects\stm32f10x_gpio.crf

?????文件???????1545??2018-05-06?09:37??excise1\objects\stm32f10x_gpio.d

?????文件?????299388??2018-05-06?09:37??excise1\objects\stm32f10x_gpio.o

?????文件?????251926??2018-05-06?09:44??excise1\objects\stm32f10x_it.crf

?????文件???????1375??2018-05-06?09:44??excise1\objects\stm32f10x_it.d

?????文件?????281800??2018-05-06?09:44??excise1\objects\stm32f10x_it.o

?????文件?????259657??2018-05-06?09:37??excise1\objects\stm32f10x_rcc.crf

?????文件???????1528??2018-05-06?09:37??excise1\objects\stm32f10x_rcc.d

?????文件?????320124??2018-05-06?09:37??excise1\objects\stm32f10x_rcc.o

?????文件?????253661??2018-05-06?09:37??excise1\objects\system_stm32f10x.crf

............此處省略24個文件信息

評論

共有 條評論