《头文件常用枚举类型定义.docx》由会员分享,可在线阅读,更多相关《头文件常用枚举类型定义.docx(11页珍藏版)》请在第壹文秘上搜索。
1、1.中断号定义typedefenumIRQn(/*Cortex-M4ProcessorExceptionsNumbers*/NonMaSkabIemJIRQn=-14,*!2NonMaskableInterrupt*/MemoryManagementJRQn=-12,*!4Cortex-M4MemoryManagementInterrupt*/BusFauItJRQn=-Ilz*!5Cortex-M4BusFaultInterrupt*/UsageFauItJRQn=-IOz*!6Cortex-M4UsageFaultInterrupt*/SVCaIIJRQn=-5z*!11Cortex-M4
2、SVCallInterrupt*/DebugMonitorJRQn=-4,*!12Cortex-M4DebugMonitorInterrupt7PendSVJRQn=-2,*!14Cortex-M4PendSVInterrupt*/SysTick_IRQn=-1,*!15Cortex-M4SystemTickInterrupt*/*STM32specificInterruptNumbers*/WWDGJRQn=O,*!WindowWatchDogInterrupt*/PVDJRQn=1,*!PVDthroughEXTILinedetectionInterrupt7TAMP_S7AMP_IRQn
3、=2,*!TamperandTimeStampinterruptsthroughtheEXTIline*/RTC_WKUP_IRQn=3,*!RTCWakeupinterruptthroughtheEXTIline*/FLASHJRQn=4,*!FLASHglobalInterrupt*/RCCJRQn=5,*!RCCglobalInterrupt*/EXTIOJRQn=6,*!EXTILineOInterrupt*/EXTIlJRQn=7,*!EXTILinelInterrupt*/EXTI2JRQn=8,*!EXTILine2Interrupt*/EXTI3JRQn=9,*!EXTILin
4、e3Interrupt*/EXTI4_IRQn=10,*!EXTILine4InterruptDMAI_StreamO_lRQn=11,*!DMAlStream0globalInterrupt*/DMAl_StreamIJRQn=12,*!DMAlStream1globalInterrupt*/DMAI_Stream2_lRQn=13,*!DMAlStream2globalInterrupt*/DMAl_Stream3RQn=14,*!DMAlStream3globalInterrupt*/DMAl_Stream4_IRQn=15,*!DMAlStream4globalInterrupt*/D
5、MAl_Stream5RQn=16,*!DMAlStream5globalInterrupt*/DMAI_Stream6RQn=,*!DMAlStream6globalInterrupt*/ADC_IRQn=18,*!ADClzADC2andADC3globalInterrupts*/CANl_TX_IRQn:19,*!CANlTXInterrupt*/CANl_RXO_IRQn=20,*!CANlRXOInterrupt*/CANl_RXl_IRQn=21,*!CANlRXlInterrupt*/CANl_SCE_IRQn=22,*!CANlSCEInterrupt*/EXTI9_5_IRQ
6、n=23,*!ExternalLine9:5Interrupts*/TIMl_BRK_TIM9_IRQn=24,*!TIMlBreakinterruptandTIM9globalinterrupt7TIMl_UP_TIM10_IRQn=25,*!TIMlUpdateInterruptandTIMlOglobalinterrupt*/TIM1_TRG_COM_TIMIlJRQn=26,*!TIMlTriggerandCommutationInterruptandTIMllglobalinterrupt*/TIMl_CC_IRQn=27,*!TIMlCaptureCompareInterrupt*
7、/TIM2JRQn=28,*!TIM2globalInterrupt*/TIM3JRQn=29,*!TIM3globalInterrupt*/TIM4JRQn=30,*!TIM4globalInterrupt*/l2Cl_EV_IRQn31,*!I2C1EventInterrupt*/l2Cl_ER_IRQn32,*!I2C1ErrorInterruptl2C2_EV_IRQn=33,*!I2C2EventInterrupt* /l2C2_ER_IRQn*/SPIlJRQn* /SPI2JRQn* /USARTl_IRQn=* /USART2_IRQn=* /USART3_IRQn=* /EX
8、TI15_10_IRQn=40,* /RTC_Alarm_IRQn=41zLineInterrupt*/OTG_FS_WKUP_IRQn=42,lineinterrupt*/TIM8_BRK_TIM12_IRQn=43,globalinterrupt*/TIM8_UP_TIM13_IRQn=44,globalinterrupt*/TIM8_TRG_COM_TIM14_IRQn=45,=34,*!I2C2ErrorInterrupt=35,*!SPIlglobalInterrupt=36,*!SPI2globalInterrupt37, *!USARTlglobalInterrupt38, /!
9、USART2globalInterrupt39, *!USART3globalInterrupt*!ExternalLine15:10Interrupts*!RTCAlarm(AandB)throughEXTI/!USBOTGFSWakeupthroughEXTI*!TIM8BreakInterruptandTIM12*!TIM8UpdateInterruptandTIM13*!TIM8TriggerandCommutationInterruptandTIM14globalinterrupt*/TIM8_CC_IRQn=46,*!TIM8CaptureCompareInterrupt*/DMA
10、l_Stream7_IRQn=47,*!DMAlStream?Interrupt*/FSMCJRQn=48,*!FSMCglobalInterrupt*/SDIOJRQn=49,*!SDIOglobalInterrupt*/TIM5JRQn=50,*!TIM5globalInterrupt*/SPI3JRQn=51,*!SPI3globalInterrupt*/ART4JRQn=52,*!UART4globalInterrupt*/UART5_IRQn=53,*!UART5globalInterrupt*/TIM6_DAC_IRQn=54,*!TIM6globalandDAC1&2underr
11、unerrorinterrupts*/TIM7JRQn=55,*!TIM7globalinterrupt*/DMA2_StreamO_IRQn=56,*!DMA2StreamOglobalInterrupt*/DMA2_Streaml_IRQn=57,*!DMA2Stream1globalInterrupt*/DMA2_Stream2_IRQn=58,*!DMA2Stream2globalInterrupt*/DMA2_Stream3_lRQn=59,*!DMA2Stream3globalInterrupt*/DMA2_Strear4IRQn=60,*!DMA2Stream4globalInt
12、errupt*/ETH_IRQn=61,*!EthernetglobalInterrupt*/ETH_WKUP_IRQn=62,*!EthernetWakeupthroughEXTIlineInterrupt*/CAN2_TX_IRQn=63,*!CAN2TXInterrupt*/CAN2_RX0_IRQn=64,*!CAN2RXOInterrupt*/CAN2_RXl_IRQn=65,*!CAN2RXlInterrupt*/CAN2_SCE_IRQn=66,*!CAN2SCEInterrupt*/OTG_FS_IRQn=67,*!USBOTGFSglobalInterrupt*/DMA2_S
13、tream5_IRQn=68z*!DMA2Stream5globalinterrupt*/DMA2_Stream6_lRQn=69,*!DMA2Stream6globalinterrupt*/DMA2_Stream7_IRQn=70,*!DMA2Stream7globalinterrupt7USART6_IRQn=71z*!USART6globalinterrupt*/l2C3_EV_IRQn=72,*!I2C3eventinterrupt*/l2C3_ER_IRQn=73,*!I2C3errorinterrupt7OTG_HS_EPl_OUT_IRQn=74,*!USBOTGHSEndPoint1Outglobalinterrupt*/OTG_HS_EPl_IN_IRQn=75z