資源簡介
修改的SHT30驅動代碼,實測可以運行,希望可以幫到大家,需要的請自行下載。

代碼片段和文件信息
/**
??******************************************************************************
??*?@file????system_stm32f0xx.c
??*?@author??MCD?Application?Team
??*?@version?V1.1.1
??*?@date????31-July-2013
??*?@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
??*------------------
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????25600??2016-11-14?18:00??SHT30評估板模塊_PDF_C85041_2017-01-03\BOM材料清單\SHT30-EV-BOM.XLS
?????文件????????325??2017-01-03?18:03??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Demo演示程序燒錄說明.txt
?????文件??????46999??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\CMSIS?END?USER?LICENCE?AGREEMENT.pdf
?????文件?????242344??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h
?????文件???????2219??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Include\system_stm32f0xx.h
?????文件??????24091??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Release_Notes.html
?????文件??????10714??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s
?????文件???????9878??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx_ld.s
?????文件???????8682??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f0xx.s
?????文件???????8037??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f0xx_ld.s
?????文件??????11351??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f0xx?-?副本.s
?????文件??????12101??2015-07-07?11:12??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f0xx.s
?????文件??????10083??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f0xx_ld.s
?????文件??????12601??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c
?????文件???????8735??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f0xx.s
?????文件???????8087??2013-08-01?19:24??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f0xx_ld.s
?????文件???????8621??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\annotated.html
?????文件????????702??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\bc_s.png
?????文件????????922??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\check.png
?????文件??????10538??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\classes.html
?????文件????????126??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\closed.png
?????文件??????14694??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\cmsis.css
?????文件??????20924??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\CMSIS_CORE_Files.png
?????文件??????10053??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\CMSIS_CORE_Files_user.png
?????文件??????12402??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\CMSIS_Logo_Final.png
?????文件??????34419??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\device_h_pg.html
?????文件???????4008??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\doxygen.png
?????文件?????????82??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\ftv2blank.png
?????文件????????766??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\ftv2doc.png
?????文件????????567??2013-01-31?17:42??SHT30評估板模塊_PDF_C85041_2017-01-03\SHT30-EV配套演示軟件_UART串口輸出溫濕度計\Libraries\CMSIS\Documentation\Core\html\ftv2folderclosed.png
............此處省略707個文件信息
- 上一篇:圖像二值化算法分析和實現
- 下一篇:應用隨機過程清華大學-林元烈
評論
共有 條評論