資源簡介
一、智能安防系統
1.要求如下:
.運行UCOS3實時操作系統[可選]
.火焰傳感器、溫濕度傳感器、可燃氣體傳感器正常工作
.RFID讀寫卡正常工作
.藍牙4.0正常工作
.紅外接收頭正常工作
2.實現過程
手機藍牙操作
.能夠修改開發板的RTC時間
.發送特定的命令,能夠查詢當前安防狀態(是否有火焰、可燃氣體是否超標、溫濕度狀態)
.發送特定的命令,能夠修改安防系統默認card id,并將card id信息保存到flash當中
當RFID進行識別的時候
.安防系統默認有card id,如果當前識別的卡為陌生卡,則進行蜂鳴器長鳴報警,并熄滅所有Led;識別成功,則響一聲,并點亮LED。
.能夠將當前的RFID的卡號與識別時間保存到FLASH當中,保存記錄為100條,格式(年月日 時分秒 卡ID 合法/非法)如下:
2017-9-21 15:52:50 AABBCCDD 1 //合法
2017-9-21 15:52:50 AFBFCFDF 0 //非法
當紅外接收頭接收到有效數據的時候,能夠實現對家里燈光的操作,也就是對LED進行亮與滅
代碼片段和文件信息
/**
??******************************************************************************
??*?@file????misc.c
??*?@author??MCD?Application?Team
??*?@version?V1.4.0
??*?@date????04-August-2014
??*?@brief???This?file?provides?all?the?miscellaneous?firmware?functions?(add-on
??*??????????to?CMSIS?functions).
??*??????????
??*??@verbatim???
??*???????????????????????????????
??*??????????===================================================================??????
??*????????????????????????How?to?configure?Interrupts?using?driver?
??*??????????===================================================================??????
??*?
??*????????????This?section?provide?functions?allowing?to?configure?the?NVIC?interrupts?(IRQ).
??*????????????The?Cortex-M4?exceptions?are?managed?by?CMSIS?functions.
??*
??*????????????1.?Configure?the?NVIC?Priority?Grouping?using?NVIC_PriorityGroupConfig()
??*????????????????function?according?to?the?following?table.
?
??*??The?table?below?gives?the?allowed?values?of?the?pre-emption?priority?and?subpriority?according
??*??to?the?Priority?Grouping?configuration?performed?by?NVIC_PriorityGroupConfig?function
??*????==========================================================================================================================
??*??????NVIC_PriorityGroup???|?NVIC_IRQChannelPreemptionPriority?|?NVIC_IRQChannelSubPriority??|???????Description
??*????==========================================================================================================================
??*?????NVIC_PriorityGroup_0??|????????????????0??????????????????|????????????0-15?????????????|?0?bits?for?pre-emption?priority
??*???????????????????????????|???????????????????????????????????|?????????????????????????????|?4?bits?for?subpriority
??*????--------------------------------------------------------------------------------------------------------------------------
??*?????NVIC_PriorityGroup_1??|????????????????0-1????????????????|????????????0-7??????????????|?1?bits?for?pre-emption?priority
??*???????????????????????????|???????????????????????????????????|?????????????????????????????|?3?bits?for?subpriority
??*????--------------------------------------------------------------------------------------------------------------------------????
??*?????NVIC_PriorityGroup_2??|????????????????0-3????????????????|????????????0-3??????????????|?2?bits?for?pre-emption?priority
??*???????????????????????????|???????????????????????????????????|?????????????????????????????|?2?bits?for?subpriority
??*????--------------------------------------------------------------------------------------------------------------------------????
??*?????NVIC_PriorityGroup_3??|????????????????0-7????????????????|????????????0-1??????????????|?3?bits?for?pre-emption?priority
??*???????????????????????????|???????????????????????????????????|?????????????????????????????|?1?bits?for?subpriority
??*????-----------------------------------------------
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-06?14:28??基于STM32F407智能安防\
?????目錄???????????0??2017-12-06?14:28??基于STM32F407智能安防\CORE\
?????文件??????109142??2013-11-07?18:54??基于STM32F407智能安防\CORE\core_cm4.h
?????文件???????22735??2013-11-07?18:54??基于STM32F407智能安防\CORE\core_cm4_simd.h
?????文件???????17146??2014-07-17?21:52??基于STM32F407智能安防\CORE\core_cmFunc.h
?????文件???????20513??2014-07-17?21:52??基于STM32F407智能安防\CORE\core_cmInstr.h
?????文件???????29607??2017-09-25?15:42??基于STM32F407智能安防\CORE\startup_stm32f40_41xxx.s
?????目錄???????????0??2017-12-06?14:28??基于STM32F407智能安防\FWLIB\
?????目錄???????????0??2017-12-06?14:28??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\
?????目錄???????????0??2017-12-06?14:28??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\
?????文件????????6924??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\misc.h
?????文件???????32880??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_adc.h
?????文件???????27318??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_can.h
?????文件????????2416??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_crc.h
?????文件???????14481??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_cryp.h
?????文件???????14946??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dac.h
?????文件????????4296??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dbgmcu.h
?????文件???????12977??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dcmi.h
?????文件???????28882??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dma.h
?????文件???????19692??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dma2d.h
?????文件????????8012??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_exti.h
?????文件???????24467??2014-08-04?22:05??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_flash.h
?????文件????????3275??2014-08-04?22:05??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_flash_ramfunc.h
?????文件???????44924??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_fmc.h
?????文件???????27181??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_fsmc.h
?????文件???????23548??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_gpio.h
?????文件???????10084??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_hash.h
?????文件???????31939??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_i2c.h
?????文件????????4323??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_iwdg.h
?????文件???????21191??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_ltdc.h
?????文件????????7728??2014-08-01?23:18??基于STM32F407智能安防\FWLIB\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_pwr.h
............此處省略398個文件信息
- 上一篇:計算機密碼學—第3版盧開澄著
- 下一篇:《R-modeling》.薛毅
評論
共有 條評論