基于STM32钢厂安全工作区域监控管理系统设计_第1页
基于STM32钢厂安全工作区域监控管理系统设计_第2页
基于STM32钢厂安全工作区域监控管理系统设计_第3页
基于STM32钢厂安全工作区域监控管理系统设计_第4页
基于STM32钢厂安全工作区域监控管理系统设计_第5页
已阅读5页,还剩90页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

如图5-3,开启服务器后上位机将获得各个传感器器的参数,随后将移动距离、距离物体的距离、接受声音信号、温湿度信息上下限设置完毕,当温湿度过高或PM值过高,噪音过高时自动打开通风模块,决定是否移动。图5-4数据库记录数据连通数据库创建上图所示的表可以达到实时记录数据,谨防数据丢失。第6章总结与展望6.1总结系统调试过程并不如意,碰到了许多错误难题,甚至一度陷入迷茫。而经过老师指导与帮助,使我成功找出了问题,同时纠正了异常不合理之处,让设计质量获得足够保证。设计阶段各种问题与处理方案如下:(1)功率模块仿真阶段,调试输出值始终无法实现设计要求。通过查验分析,发现电路板焊接时出现了一些技术问题,于是重新焊接。(2)运行仿真软件,找出异常代码。再进行优化调整,确认在启动程序后,MCU并未有效复位,因此加入复位程序,最终可以达到满意效果。(3)实际仿真过程中,提示P0口出现逻辑错误。虽然不影响输出,但在印刷制版阶段将影响电源电路。经调研可知,数据接口传输代码期间,无法识别忙状态。后续加入忙状态识别后,系统运行无异常,数据接口并未出现错误提示。6.2展望设计以区域监控管理系统制造连动为研究对象,在具体分析CO2、SO2、声音信号和周围环境影响后,设计一种基于MCU的自动控制系统,主要完成了以下任务。(1)按照有关资料与国家行业规范,明确外界环境对检测设备影响,同时以此为前提,确立以声音高低、声音指令控制为宗旨安全工作区域监控管理系统制造连动自动控制系统;(2)针对上述问题,制定了详细设计方案,即以声音传感器采集数据,通过单片机开发控制全部体系。即便仿真分析结果显示所有设计全部达到设计要求,但受时间、个人能力等因素掣肘,还有大量问题没有得到妥善处理,导致系统本身仍有不足之处,需要进行更深入研究与探讨,促使功能更加完善,以解决实践应用需求。本系统功能相对较少,设计方面有所欠缺,后续研究阶段应围绕如下几点进行优化:(3)本系统缺少控制误差切实有效算法,后续要增加优化算法来控制,譬如PID、模糊、神经网络等算法。通过这些算法优化控制,可大幅增强实用价值。(4)后续工作、学习阶段,需要考虑工控屏开发设计。譬如引入计算机接口传输各节点语音数据,或开发一款无线数传手机APP,不管身处何地均可以监控实时状况全方位的智能机器人,此设备维护简单,能够满足用户的基本需求,拥有较高的性价比,采用物美价廉的元器件,非常符合当今市场对该设计的需求的机器人,此设备维护简单,能够满足用户的需求,拥有较高的性价比,采用物美价廉的器件,符合当今市场对该设计的需求,能更好的推动产业,有广阔的市场前景。由此看来,本文采用静态数据法、动态性法进行研究,通过利用STM32为主控制单位,利用噪音传感器、温湿度传感器、PM传感器、SO2传感器、CO2传感器、蜂鸣器、通风模块等其他设备来进行过程监测实现了对钢厂的烟气、传感器诊断使整个系统质量平衡解决了我国钢铁企业以往的落后安全管理模式可提高我国钢铁企业生产运作的效率和水平,保障我国在钢铁企业工作的员工安全问题,充分利用全新的信息化手段可构建本文中的基于STM32钢厂安全工作区域监控管理系统设计。

参考文献[1]徐嘉.化工厂安全生产检测分析的作用和预防[J].安全生产.2020.[2]韩勇.煤矿矿井通风与安全监控存在的问题与思考[J]矿业装备2022.[3]孙利剑.起重机械安全监控管理系统检验误区及处理对策研究[J],研究与探索·智能检测与诊断2022.[4]刘冬兰,张昊,卢思翰,张方哲,孙莉莉.电力物联网设备安全检测系统设计与应用[J],山东电力技术,2022.[5]段宇航,董绍华,宋顶,张耀元.集成DEMATEL/ISM的钢厂复杂系统安全影响因素研究[A]武汉理工大学学报:2095-3852(2020)03-0215-06.[6]刘华锋.钢厂机电设备常见安全事故及预防措施[A]机械加工与应用,11-5004(2021)21-0065-2.[7]王亮,曹媛.天然气液化工厂安全仪表系统的分析与研究[J]流程工业,2021.[8]姚月华.化工企业安全风险的分级管控与隐患排查[J].化工管理,2020(25):121-122.[9]贾晓君.化工企业双重预防机制的探讨[J].化工管理,2020(07):8-10.[10]熊友强.化工厂危险化学品安全管理探讨[J].化工管理,2020(09):103-104.[11]牛传星.化工工艺安全设计危险因素辨识与管控措施[J].化工设计通讯,2021,47(8):68-69.[12]吉立明.化工生产安全中的危险能量辨识与隔离方法应用研究[J].化工设计通讯,2021,47(8):143-144.[13]单锡均.基于化工生产高处作业的风险辨识与安全对策探讨[J].广州化工,2021,49(12):241-244.[14]薛生莲.科学与技术[J].2021,29(6).[15]胡云.钢厂铁路运输无人化道口安全监控[J].冶金自动化,2022,46(S1):286-289.[16]宋洪光.钢厂热电锅炉安全监控系统使用中遇到的问题及措施[J].电世界,2020,61(06):40-44.[17]罗新发.集中监控系统在钢厂废水管控中的应用研究[J].中国金属通报,2020(02):37-38.[18]高国忠.数字化煤矿安全监测监控系统的应用与实践[J].产业创新研究,2022(20):94-96.[19]LiMeng.StudyonClassificationManagementandControlofChemicalPlantSafetyRisksandInvestigationofHiddenDangersandGovernance[A].ModernChemicalResearch,2021.[20]LIF,WANGW,DUBLJEVICS,etal.Analysisonaccident-causingfactorsofurbanburiedgaspipelinenetworkbycombiningDEMATEL,ISMandBNmethods[J].JournalofLossPreventionintheProcessIndustries,2019(61):49-57.[21]BiroTurkKhalidGuma,AlghannamAbdulrahmanO.,ZeineldinFaisalIbrahim.Monitoringofhourlycarbondioxideconcentrationunderdifferentlandusetypesinaridecosystem[J].OpenLifeSciences,2022,18(1).附录电路图源代码/**************************************************************************//***@filecore_cm3.c*@briefCMSISCortex-M3CorePeripheralAccessLayerSourceFile*@versionV1.30*@date30.October2009**@note*Copyright(C)2009ARMLimited.Allrightsreserved.**@par*ARMLimited(ARM)issupplyingthissoftwareforusewithCortex-M*processorbasedmicrocontrollers.Thisfilecanbefreelydistributed*withindevelopmenttoolsthataresupportingsuchARMbasedprocessors.**@par*THISSOFTWAREISPROVIDED"ASIS".NOWARRANTIES,WHETHEREXPRESS,IMPLIED*ORSTATUTORY,INCLUDING,BUTNOTLIMITEDTO,IMPLIEDWARRANTIESOF*MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAPPLYTOTHISSOFTWARE.*ARMSHALLNOT,INANYCIRCUMSTANCES,BELIABLEFORSPECIAL,INCIDENTAL,OR*CONSEQUENTIALDAMAGES,FORANYREASONWHATSOEVER.*******************************************************************************/#include<stdint.h>/*definecompilerspecificsymbols*/#ifdefined(__CC_ARM)#define__ASM__asm/*!<asmkeywordforARMCompiler*/#define__INLINE__inline/*!<inlinekeywordforARMCompiler*/#elifdefined(__ICCARM__)#define__ASM__asm/*!<asmkeywordforIARCompiler*/#define__INLINEinline/*!<inlinekeywordforIARCompiler.OnlyavaiableinHighoptimizationmode!*/#elifdefined(__GNUC__)#define__ASM__asm/*!<asmkeywordforGNUCompiler*/#define__INLINEinline/*!<inlinekeywordforGNUCompiler*/#elifdefined(__TASKING__)#define__ASM__asm/*!<asmkeywordforTASKINGCompiler*/#define__INLINEinline/*!<inlinekeywordforTASKINGCompiler*/#endif/*###################CompilerspecificIntrinsics###########################*/#ifdefined(__CC_ARM)/*RealViewCompiler*//*ARMarmccspecificfunctions*//***@briefReturntheProcessStackPointer**@returnProcessStackPointer**Returntheactualprocessstackpointer*/__ASMuint32_t__get_PSP(void){mrsr0,pspbxlr}/***@briefSettheProcessStackPointer**@paramtopOfProcStackProcessStackPointer**AssignthevalueProcessStackPointertotheMSP*(processstackpointer)Cortexprocessorregister*/__ASMvoid__set_PSP(uint32_ttopOfProcStack){msrpsp,r0bxlr}/***@briefReturntheMainStackPointer**@returnMainStackPointer**ReturnthecurrentvalueoftheMSP(mainstackpointer)*Cortexprocessorregister*/__ASMuint32_t__get_MSP(void){mrsr0,mspbxlr}/***@briefSettheMainStackPointer**@paramtopOfMainStackMainStackPointer**AssignthevaluemainStackPointertotheMSP*(mainstackpointer)Cortexprocessorregister*/__ASMvoid__set_MSP(uint32_tmainStackPointer){msrmsp,r0bxlr}/***@briefReversebyteorderinunsignedshortvalue**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebyteorderinunsignedshortvalue*/__ASMuint32_t__REV16(uint16_tvalue){rev16r0,r0bxlr}/***@briefReversebyteorderinsignedshortvaluewithsignextensiontointeger**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebyteorderinsignedshortvaluewithsignextensiontointeger*/__ASMint32_t__REVSH(int16_tvalue){revshr0,r0bxlr}#if(__ARMCC_VERSION<400000)/***@briefRemovetheexclusivelockcreatedbyldrex**Removestheexclusivelockwhichiscreatedbyldrex.*/__ASMvoid__CLREX(void){clrex}/***@briefReturntheBasePriorityvalue**@returnBasePriority**Returnthecontentofthebasepriorityregister*/__ASMuint32_t__get_BASEPRI(void){mrsr0,basepribxlr}/***@briefSettheBasePriorityvalue**@parambasePriBasePriority**Setthebasepriorityregister*/__ASMvoid__set_BASEPRI(uint32_tbasePri){msrbasepri,r0bxlr}/***@briefReturnthePriorityMaskvalue**@returnPriMask**Returnstateoftheprioritymaskbitfromtheprioritymaskregister*/__ASMuint32_t__get_PRIMASK(void){mrsr0,primaskbxlr}/***@briefSetthePriorityMaskvalue**@parampriMaskPriMask**Settheprioritymaskbitintheprioritymaskregister*/__ASMvoid__set_PRIMASK(uint32_tpriMask){msrprimask,r0bxlr}/***@briefReturntheFaultMaskvalue**@returnFaultMask**Returnthecontentofthefaultmaskregister*/__ASMuint32_t__get_FAULTMASK(void){mrsr0,faultmaskbxlr}/***@briefSettheFaultMaskvalue**@paramfaultMaskfaultMaskvalue**Setthefaultmaskregister*/__ASMvoid__set_FAULTMASK(uint32_tfaultMask){msrfaultmask,r0bxlr}/***@briefReturntheControlRegistervalue**@returnControlvalue**Returnthecontentofthecontrolregister*/__ASMuint32_t__get_CONTROL(void){mrsr0,controlbxlr}/***@briefSettheControlRegistervalue**@paramcontrolControlvalue**Setthecontrolregister*/__ASMvoid__set_CONTROL(uint32_tcontrol){msrcontrol,r0bxlr}#endif/*__ARMCC_VERSION*/#elif(defined(__ICCARM__))/*ICCCompiler*//*IARiccarmspecificfunctions*/#pragmadiag_suppress=Pe940/***@briefReturntheProcessStackPointer**@returnProcessStackPointer**Returntheactualprocessstackpointer*/uint32_t__get_PSP(void){__ASM("mrsr0,psp");__ASM("bxlr");}/***@briefSettheProcessStackPointer**@paramtopOfProcStackProcessStackPointer**AssignthevalueProcessStackPointertotheMSP*(processstackpointer)Cortexprocessorregister*/void__set_PSP(uint32_ttopOfProcStack){__ASM("msrpsp,r0");__ASM("bxlr");}/***@briefReturntheMainStackPointer**@returnMainStackPointer**ReturnthecurrentvalueoftheMSP(mainstackpointer)*Cortexprocessorregister*/uint32_t__get_MSP(void){__ASM("mrsr0,msp");__ASM("bxlr");}/***@briefSettheMainStackPointer**@paramtopOfMainStackMainStackPointer**AssignthevaluemainStackPointertotheMSP*(mainstackpointer)Cortexprocessorregister*/void__set_MSP(uint32_ttopOfMainStack){__ASM("msrmsp,r0");__ASM("bxlr");}/***@briefReversebyteorderinunsignedshortvalue**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebyteorderinunsignedshortvalue*/uint32_t__REV16(uint16_tvalue){__ASM("rev16r0,r0");__ASM("bxlr");}/***@briefReversebitorderofvalue**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebitorderofvalue*/uint32_t__RBIT(uint32_tvalue){__ASM("rbitr0,r0");__ASM("bxlr");}/***@briefLDRExclusive(8bit)**@param*addraddresspointer*@returnvalueof(*address)**ExclusiveLDRcommandfor8bitvalues)*/uint8_t__LDREXB(uint8_t*addr){__ASM("ldrexbr0,[r0]");__ASM("bxlr");}/***@briefLDRExclusive(16bit)**@param*addraddresspointer*@returnvalueof(*address)**ExclusiveLDRcommandfor16bitvalues*/uint16_t__LDREXH(uint16_t*addr){__ASM("ldrexhr0,[r0]");__ASM("bxlr");}/***@briefLDRExclusive(32bit)**@param*addraddresspointer*@returnvalueof(*address)**ExclusiveLDRcommandfor32bitvalues*/uint32_t__LDREXW(uint32_t*addr){__ASM("ldrexr0,[r0]");__ASM("bxlr");}/***@briefSTRExclusive(8bit)**@paramvaluevaluetostore*@param*addraddresspointer*@returnsuccessful/failed**ExclusiveSTRcommandfor8bitvalues*/uint32_t__STREXB(uint8_tvalue,uint8_t*addr){__ASM("strexbr0,r0,[r1]");__ASM("bxlr");}/***@briefSTRExclusive(16bit)**@paramvaluevaluetostore*@param*addraddresspointer*@returnsuccessful/failed**ExclusiveSTRcommandfor16bitvalues*/uint32_t__STREXH(uint16_tvalue,uint16_t*addr){__ASM("strexhr0,r0,[r1]");__ASM("bxlr");}/***@briefSTRExclusive(32bit)**@paramvaluevaluetostore*@param*addraddresspointer*@returnsuccessful/failed**ExclusiveSTRcommandfor32bitvalues*/uint32_t__STREXW(uint32_tvalue,uint32_t*addr){__ASM("strexr0,r0,[r1]");__ASM("bxlr");}#pragmadiag_default=Pe940#elif(defined(__GNUC__))/*GNUCompiler*//*GNUgccspecificfunctions*//***@briefReturntheProcessStackPointer**@returnProcessStackPointer**Returntheactualprocessstackpointer*/uint32_t__get_PSP(void)__attribute__((naked));uint32_t__get_PSP(void){uint32_tresult=0;__ASMvolatile("MRS%0,psp\n\t""MOVr0,%0\n\t""BXlr\n\t":"=r"(result));return(result);}/***@briefSettheProcessStackPointer**@paramtopOfProcStackProcessStackPointer**AssignthevalueProcessStackPointertotheMSP*(processstackpointer)Cortexprocessorregister*/void__set_PSP(uint32_ttopOfProcStack)__attribute__((naked));void__set_PSP(uint32_ttopOfProcStack){__ASMvolatile("MSRpsp,%0\n\t""BXlr\n\t"::"r"(topOfProcStack));}/***@briefReturntheMainStackPointer**@returnMainStackPointer**ReturnthecurrentvalueoftheMSP(mainstackpointer)*Cortexprocessorregister*/uint32_t__get_MSP(void)__attribute__((naked));uint32_t__get_MSP(void){uint32_tresult=0;__ASMvolatile("MRS%0,msp\n\t""MOVr0,%0\n\t""BXlr\n\t":"=r"(result));return(result);}/***@briefSettheMainStackPointer**@paramtopOfMainStackMainStackPointer**AssignthevaluemainStackPointertotheMSP*(mainstackpointer)Cortexprocessorregister*/void__set_MSP(uint32_ttopOfMainStack)__attribute__((naked));void__set_MSP(uint32_ttopOfMainStack){__ASMvolatile("MSRmsp,%0\n\t""BXlr\n\t"::"r"(topOfMainStack));}/***@briefReturntheBasePriorityvalue**@returnBasePriority**Returnthecontentofthebasepriorityregister*/uint32_t__get_BASEPRI(void){uint32_tresult=0;__ASMvolatile("MRS%0,basepri_max":"=r"(result));return(result);}/***@briefSettheBasePriorityvalue**@parambasePriBasePriority**Setthebasepriorityregister*/void__set_BASEPRI(uint32_tvalue){__ASMvolatile("MSRbasepri,%0"::"r"(value));}/***@briefReturnthePriorityMaskvalue**@returnPriMask**Returnstateoftheprioritymaskbitfromtheprioritymaskregister*/uint32_t__get_PRIMASK(void){uint32_tresult=0;__ASMvolatile("MRS%0,primask":"=r"(result));return(result);}/***@briefSetthePriorityMaskvalue**@parampriMaskPriMask**Settheprioritymaskbitintheprioritymaskregister*/void__set_PRIMASK(uint32_tpriMask){__ASMvolatile("MSRprimask,%0"::"r"(priMask));}/***@briefReturntheFaultMaskvalue**@returnFaultMask**Returnthecontentofthefaultmaskregister*/uint32_t__get_FAULTMASK(void){uint32_tresult=0;__ASMvolatile("MRS%0,faultmask":"=r"(result));return(result);}/***@briefSettheFaultMaskvalue**@paramfaultMaskfaultMaskvalue**Setthefaultmaskregister*/void__set_FAULTMASK(uint32_tfaultMask){__ASMvolatile("MSRfaultmask,%0"::"r"(faultMask));}/***@briefReturntheControlRegistervalue**@returnControlvalue**Returnthecontentofthecontrolregister*/uint32_t__get_CONTROL(void){uint32_tresult=0;__ASMvolatile("MRS%0,control":"=r"(result));return(result);}/***@briefSettheControlRegistervalue**@paramcontrolControlvalue**Setthecontrolregister*/void__set_CONTROL(uint32_tcontrol){__ASMvolatile("MSRcontrol,%0"::"r"(control));}/***@briefReversebyteorderinintegervalue**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebyteorderinintegervalue*/uint32_t__REV(uint32_tvalue){uint32_tresult=0;__ASMvolatile("rev%0,%1":"=r"(result):"r"(value));return(result);}/***@briefReversebyteorderinunsignedshortvalue**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebyteorderinunsignedshortvalue*/uint32_t__REV16(uint16_tvalue){uint32_tresult=0;__ASMvolatile("rev16%0,%1":"=r"(result):"r"(value));return(result);}/***@briefReversebyteorderinsignedshortvaluewithsignextensiontointeger**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebyteorderinsignedshortvaluewithsignextensiontointeger*/int32_t__REVSH(int16_tvalue){uint32_tresult=0;__ASMvolatile("revsh%0,%1":"=r"(result):"r"(value));return(result);}/***@briefReversebitorderofvalue**@paramvaluevaluetoreverse*@returnreversedvalue**Reversebitorderofvalue*/uint32_t__RBIT(uint32_tvalue){uint32_tresult=0;__ASMvolatile("rbit%0,%1":"=r"(result):"r"(value));return(result);}/***@briefLDRExclusive(8bit)**@param*addraddresspointer*@returnvalueof(*address)**ExclusiveLDRcommandfor8bitvalue*/uint8_t__LDREXB(uint8_t*addr){uint8_tresult=0;__ASMvolatile("ldrexb%0,[%1]":"=r"(result):"r"(addr));return(result);}/***@briefLDRExclusive(16bit)**@param*addraddresspointer*@returnvalueof(*address)**ExclusiveLDRcommandfor16bitvalues*/uint16_t__LDREXH(uint16_t*addr){uint16_tresult=0;__ASMvolatile("ldrexh%0,[%1]":"=r"(result):"r"(addr));return(result);}/***@briefLDRExclusive(32bit)**@param*addraddresspointer*@returnvalueof(*address)**ExclusiveLDRcommandfor32bitvalues*/uint32_t__LDREXW(uint32_t*addr){uint32_tresult=0;__ASMvolatile("ldrex%0,[%1]":"=r"(result):"r"(addr));return(result);}/***@briefSTRExclusive(8bit)**@paramvaluevaluetostore*@param*addraddresspointer*@returnsuccessful/failed**ExclusiveSTRcommandfor8bitvalues*/uint32_t__STREXB(uint8_tvalue,uint8_t*addr){uint32_tresult=0;__ASMvolatile("strexb%0,%2,[%1]":"=r"(result):"r"(addr),"r"(value));return(result);}/***@briefSTRExclusive(16bit)**@paramvaluevaluetostore*@param*addraddresspointer*@returnsuccessful/failed**ExclusiveSTRcommandfor16bitvalues*/uint32_t__STREXH(uint16_tvalue,uint16_t*addr){uint32_tresult=0;__ASMvolatile("strexh%0,%2,[%1]":"=r"(result):"r"(addr),"r"(value));return(result);}/***@briefSTRExclusive(32bit)**@paramvaluevaluetostore*@param*addraddresspointer*@returnsuccessful/failed**ExclusiveSTRcommandfor32bitvalues*/uint32_t__STREXW(uint32_tvalue,uint32_t*addr){uint32_tresult=0;__ASMvolatile("strex%0,%2,[%1]":"=r"(result):"r"(addr),"r"(value));return(result);}#elif(defined(__TASKING__))/*TASKINGCompiler*//*TASKINGcarmspecificfunctions*//**TheCMSISfunctionshavebeenimplementedasintrinsicsinthecompiler.*Pleaseuse"carm-?i"togetanuptodatelistofallinstrinsics,*IncludingtheCMSISones.*/#endif/**************************************************************************//***@filecore_cm3.h*@briefCMSISCortex-M3CorePeripheralAccessLayerHeaderFile*@versionV1.30*@date30.October2009**@note*Copyright(C)2009ARMLimited.Allrightsreserved.**@par*ARMLimited(ARM)issupplyingthissoftwareforusewithCortex-M*processorbasedmicrocontrollers.Thisfilecanbefreelydistributed*withindevelopmenttoolsthataresupportingsuchARMbasedprocessors.**@par*THISSOFTWAREISPROVIDED"ASIS".NOWARRANTIES,WHETHEREXPRESS,IMPLIED*ORSTATUTORY,INCLUDING,BUTNOTLIMITEDTO,IMPLIEDWARRANTIESOF*MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAPPLYTOTHISSOFTWARE.*ARMSHALLNOT,INANYCIRCUMSTANCES,BELIABLEFORSPECIAL,INCIDENTAL,OR*CONSEQUENTIALDAMAGES,FORANYREASONWHATSOEVER.*******************************************************************************/#ifndef__CM3_CORE_H__#define__CM3_CORE_H__/**@addtogroupCMSIS_CM3_core_LintCinfigurationCMSISCM3CoreLintConfiguration**ListofLintmessageswhichwillbesuppressedandnotshown:*-Error10:\n*registeruint32_t__regBasePri__asm("basepri");\n*Error10:Expecting';'*.*-Error530:\n*return(__regBasePri);\n*Warning530:Symbol'__regBasePri'(line264)notinitialized*.*-Error550:\n*__regBasePri=(basePri&0x1ff);\n*Warning550:Symbol'__regBasePri'(line271)notaccessed*.*-Error754:\n*uint32_tRESERVED0[24];\n*Info754:localstructuremember'<some,notusedintheHAL>'(line109,file./cm3_core.h)notreferenced*.*-Error750:\n*#define__CM3_CORE_H__\n*Info750:localmacro'__CM3_CORE_H__'(line43,file./cm3_core.h)notreferenced*.*-Error528:\n*static__INLINEvoidNVIC_DisableIRQ(uint32_tIRQn)\n*Warning528:Symbol'NVIC_DisableIRQ(unsignedint)'(line419,file./cm3_core.h)notreferenced*.*-Error751:\n*}InterruptType_Type;\n*Info751:localtypedef'InterruptType_Type'(line170,file./cm3_core.h)notreferenced*.*Note:Tore-enableaMessage,insertaspacebefore'lint'***//*lint-save*//*lint-e10*//*lint-e530*//*lint-e550*//*lint-e754*//*lint-e750*//*lint-e528*//*lint-e751*//**@addtogroupCMSIS_CM3_core_definitionsCM3CoreDefinitionsThisfiledefinesallstructuresandsymbolsforCMSIScore:-CMSISversionnumber-Cortex-Mcoreregistersandbitfields-Cortex-Mcoreperipheralbaseaddress@{*/#ifdef__cplusplusextern"C"{#endif#define__CM3_CMSIS_VERSION_MAIN(0x01)/*!<[31:16]CMSISHALmainversion*/#define__CM3_CMSIS_VERSION_SUB(0x30)/*!<[15:0]CMSISHALsubversion*/#define__CM3_CMSIS_VERSION((__CM3_CMSIS_VERSION_MAIN<<16)|__CM3_CMSIS_VERSION_SUB)/*!<CMSISHALversionnumber*/#define__CORTEX_M(0x03)/*!<Cortexcore*/#include<stdint.h>/*Includestandardtypes*/#ifdefined(__ICCARM__)#include<intrinsics.h>/*IARIntrinsics*/#endif#ifndef__NVIC_PRIO_BITS#define__NVIC_PRIO_BITS4/*!<standarddefinitionforNVICPriorityBits*/#endif/***IOdefinitions**defineaccessrestrictionstoperipheralregisters*/#ifdef__cplusplus#define__Ivolatile/*!<defines'readonly'permissions*/#else#define__Ivolatileconst/*!<defines'readonly'permissions*/#endif#define__Ovolatile/*!<defines'writeonly'permissions*/#define__IOvolatile/*!<defines'read/write'permissions*//********************************************************************************RegisterAbstraction******************************************************************************//**@addtogroupCMSIS_CM3_core_registerCMSISCM3CoreRegister@{*//**@addtogroupCMSIS_CM3_NVICCMSISCM3NVICmemorymappedstructureforNestedVectoredInterruptController(NVIC)@{*/typedefstruct{__IOuint32_tISER[8];/*!<Offset:0x000InterruptSetEnableRegister*/uint32_tRESERVED0[24];__IOuint32_tICER[8];/*!<Offset:0x080InterruptClearEnableRegister*/uint32_tRSERVED1[24];__IOuint32_tISPR[8];/*!<Offset:0x100InterruptSetPendingRegister*/uint32_tRESERVED2[24];__IOuint32_tICPR[8];/*!<Offset:0x180InterruptClearPendingRegister*/uint32_tRESERVED3[24];__IOuint32_tIABR[8];/*!<Offset:0x200InterruptActivebitRegister*/uint32_tRESERVED4[56];__IOuint8_tIP[240];/*!<Offset:0x300InterruptPriorityRegister(8Bitwide)*/uint32_tRESERVED5[644];__Ouint32_tSTIR;/*!<Offset:0xE00SoftwareTriggerInterruptRegister*/}NVIC_Type;/*@}*//*endofgroupCMSIS_CM3_NVIC*//**@addtogroupCMSIS_CM3_SCBCMSISCM3SCBmemorymappedstructureforSystemControlBlock(SCB)@{*/typedefstruct{__Iuint32_tCPUID;/*!<Offset:0x00CPUIDBaseRegister*/__IOuint32_tICSR;/*!<Offset:0x04InterruptControlStateRegister*/__IOuint32_tVTOR;/*!<Offset:0x08VectorTableOffsetRegister*/__IOuint32_tAIRCR;/*!<Offset:0x0CApplicationInterrupt/ResetControlRegister*/__IOuint32_tSCR;/*!<Offset:0x10SystemControlRegister*/__IOuint32_tCCR;/*!<Offset:0x14ConfigurationControlRegister*/__IOuint8_tSHP[12];/*!<Offset:0x18SystemHandlersPriorityRegisters(4-7,8-11,12-15)*/__IOuint32_tSHCSR;/*!<Offset:0x24SystemHandlerControlandStateRegister*/__IOuint32_tCFSR;/*!<Offset:0x28ConfigurableFaultStatusRegister*/__IOuint32_tHFSR;/*!<Offset:0x2CHardFaultStatusRegister*/__IOuint32_tDFSR;/*!<Offset:0x30DebugFaultStatusRegister*/__IOuint32_tMMFAR;/*!<Offset:0x34MemManageAddressRegister*/__IOuint32_tBFAR;/*!<Offset:0x38BusFaultAddressRegister*/__IOuint32_tAFSR;/*!<Offset:0x3CAuxiliaryFaultStatusRegister*/__Iuint32_tPFR[2];/*!<Offset:0x40ProcessorFeatureRegister*/__Iuint32_tDFR;/*!<Offset:0x48DebugFeatureRegister*/__Iuint32_tADR;/*!<Offset:0x4CAuxiliaryFeatureRegister*/__Iuint32_tMMFR[4];/*!<Offset:0x50MemoryModelFeatureRegister*/__Iuint32_tISAR[5];/*!<Offset:0x60ISAFeatureRegister*/}SCB_Type;/*SCBCPUIDRegisterDefinitions*/#defineSCB_CPUID_IMPLEMENTER_Pos24/*!<SCBCPUID:IMPLEMENTERPosition*/#defineSCB_CPUID_IMPLEMENTER_Msk(0xFFul<<SCB_CPUID_IMPLEMENTER_Pos)/*!<SCBCPUID:IMPLEMENTERMask*/#defineSCB_CPUID_VARIANT_Pos20/*!<SCBCPUID:VARIANTPosition*/#defineSCB_CPUID_VARIANT_Msk(0xFul<<SCB_CPUID_VARIANT_Pos)

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论