头文件常用枚举类型定义.docx
《头文件常用枚举类型定义.docx》由会员分享,可在线阅读,更多相关《头文件常用枚举类型定义.docx(12页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1.中断号定义typedef enum IRQn/* * * * * *Cortex-M4ProcessorExceptionsNumbers*/NonMaskablelntJRQn*/MemoryManagementJRQnManagement InterruptBusFault IRQn-14,-12,*/UsageFault_IRQn=-10,*/SVCall IRQn*/DebugMonitor_IRQnInterruptPendSV_IRQn*/=4*/ =2SysTick_IRQn=-1,/*! 2 Non Maskable/*! 4 Cortex-M4*/*! 5 Cortex-
2、M4 Bus FaultInterruptMemoryInterrupt/*! 6 Cortex-M4 Usage Fault Interrupt/*! 11 Cortex-M4 SV Call Interrupt/*! 12 Cortex-M4 Debug Monitor/*! 14 Cortex-M4 Pend SV Interrupt/*! 15 Cortex-M4 System Tick Interrupt*/* * * * * *STM32specificInterruptNumbers*/WWDGJRQn*/PVD_IRQnInterruptTAMP_STAMP_IRQn inte
3、rrupts through the EXTI lineRTC_WKUPRQnthe EXTI line=0,=1,*/=2,*/=3,*/FLASH IRQn/*! Window WatchDog Interrupt/*! PVD through EXTI Line detection/*! Tamper and TimeStamp/*!RTC Wakeup interrupt through/*! FLASH globalInterrupt*/RCC IRQn5,RCC globalInterrupt*/EXTIO IRQn6,/*!EXTILineOInterrupt*/EXTI1 IR
4、Qn7,/*!EXTILinelInterrupt*/EXTI2 IRQn8,EXTILine2Interrupt*/EXTI3 IRQn9,EXTILine3Interrupt*/EXTI4 IRQn10,/*!EXTILine4Interrupt_10 uint32_t CSR;Address offset: 0x74 */uint32_t*/10 uint32 t SSCGR;Address offset: 0x80 */_IO uint32_t PLLI2SCFGR;Address offset: 0x84 */ RCC_TypeDef;8. #define_lvolatile*/#e
5、lse#define_lvolatile*/#endif#define_0volatile*/#define_IOvolatile*/*! RCC clock control & status register,RESERVED62;/* !Reserved,0x78-0x7C/*! RCC spread spectrum clock generation register,/*!RCCPLLI2Sconfiguration register,/*!Definesread onlypermissionsconst/*! Defines read only permissions/*!Defin
6、eswrite onlypermissions/*! Defines read / write permissions*/DMAl_StreamO_IRQn*/DMA l_Streaml_IRQn*/DMA l_Stream2_IRQn*/DMA l_St ream3_IRQn*/DMAl_Stream4_IRQn*/DMA l_Stream5_IRQn*/DMA l_St rea m 6_l RQn*/ADC J RQnInterruptsCANl_TX_IRQn*/CANl_RXO_IRQn*/CANl_RXl_IRQn*/CANl_SCE_IRQn*/EXTI9_5_IRQn*/TIMl
7、_BRK_TIM9_IRQn global interrupt/*! TIM1 Update Interrupt and TIM10/*! TIM1 Trigger and Commutation/*! TIM1 Capture Compare Interrupt=11,/*! DMA1 Stream 0 global Interrupt=12,/*!DMA1Stream1globalInterrupt=13,/*!DMA1Stream2globalInterrupt=14,/*!DMA1Stream3globalInterrupt=15,/*!DMA1Stream4globalInterru
8、pt=16,/*!DMA1Stream5globalInterrupt=17,/*!DMA1Stream6globalInterrupt=18,/*! ADC1, ADC2 and ADC3 global=19,/*! CAN1 TX Interrupt=20,/*!CAN1RXOInterrupt=21,/*!CAN1RX1Interrupt=22,/*!CAN1SCEInterrupt=23,/*! External Line9:5 Interrupts=24,/*! TIM1 Break interrupt and TIM9*/TIMl_UP_TIM10_IRQn= 25,global
9、interrupt*/Tl M 1_TRG_COM_TI Mil J RQn= 26,Interrupt and TIM11 global interrupt */TIMl_CCJRQn= 27,*/TIM2 IRQn=28,TIM2globalInterrupt*/TIM3 IRQn=29,TIM3globalInterrupt*/TIM4 IRQn=30,/*!TIM4globalInterrupt*/I2C1 EV IRQn/*! I2C1 EventInterrupt*/I2C1 ER IRQn32,/*! I2C1 ErrorInterrupt*/I2C2 EV IRQn33,/*!
10、 I2C2 EventInterrupt*/I2C2 ER IRQn34,/*! I2C2 ErrorInterruptSPI1 IRQn35,/*! SPI1globalInterrupt*/SPI2 IRQn36,/*! SPI2globalInterrupt*/USART1 IRQn=37,/*!USART1globalInterrupt*/USART2 IRQn=38,/*!USART2globalInterrupt*/USART3 IRQn=39,/*!USART3globalInterrupt*/EXTI15 10 IRQn=40,/*!External Line15:10 Int
11、errupts*/RTC_Alarm_IRQnLine InterruptOTG_FS_WKUP_IRQn line interruptTIM8_BRK_TIM12_IRQn global interruptTIM8_UP_TIM13JRQn global interruptTIM8 TRG COM TIMM= 41,*/= 42,*/=43,*/*/IRQnInterrupt and TIMM global interrupt */ TIM8 CC IRQn*/DMA1 Stream? IRQn*/FSMC IRQn*/SDIO IRQn*/TIM5 IRQn= 44,=45,=46,=47
12、,/*! RTC Alarm (A and B) through EXTI/*! USB OTG FS Wakeup through EXTI/*! TIM8 Break Interrupt and TIM12/*! TIM8 Update Interrupt and TIM13/*! TIM8 Trigger and Commutation/*! TIM8 Capture Compare Interrupt/*! DMA1 Stream7Interrupt=48,=49,=50,/*! FSMC/*! SDIO/*! TIM5globalglobalglobalInterruptInterr
13、uptInterrupt*/SPI3 IRQn/*! SPI3globalInterrupt*/UART4 IRQn=52,/*! UART4globalInterrupt*/UART5 IRQn=53,/*! UART5globalInterrupt*/TIM6 DAC IRQn=54,/*! TIM6 global and DAC1&2underrun error interruptsTIM7 IRQn*/DMA2 StreamO IRQn*/DMA2 Streaml IRQn=55,/*! TIM7 global interrupt=56,/*! DMA2 Stream 0 global
14、 Interrupt=57,/*! DMA2 Stream 1 global Interrupt*/DMA2 Stream? IRQn*/DMA2 Stream3 IRQn*/DMA2 Stream4 IRQn=58,/*!DMA2Stream2globalInterrupt=59,/*!DMA2Stream3globalInterrupt=60,/*!DMA2Stream4globalInterrupt*/ETH IRQn=61,/*! Ethernet global Interrupt*/ETH WKUP IRQn=62,/*! Ethernet Wakeup through EXTIli
15、ne Interrupt*/CAN2_TX_IRQn*/CAN2_RX0_IRQn*/CAN2_RXlJRQn*/CAN2_SCE_IRQn*/OTG_FS_IRQn*/DMA2_Stream5_IRQn*/DMA2_Stream6_IRQn*/DMA2_Stream7_IRQn*/USART6_IRQn*/l2C3_EV_IRQn*/l2C3_ER_IRQn*/OTG_HS_E Pl_OUTJRQn global interruptOTG_HS_EPl_IN_IRQn interruptOTG_HS_WKUP_IRQn=63,/*! CAN2 TX Interrupt=64,=65,=66,
16、=67,/*! CAN2 RXO Interrupt/*! CAN2 RX1 Interrupt/*! CAN2 SCE Interrupt/*! USB OTG FS global Interrupt=68,/*!DMA2Stream5globalinterrupt=69,/*!DMA2Stream6globalinterrupt=70,/*!DMA2Stream7globalinterrupt=71,/*! USART6 global interrupt=72,/*! I2C3 event interrupt=73,/*! I2C3 error interrupt=74,/*! USB O
17、TG HS End Point 1 Out*/=75,/*! USB OTG HS End Point 1 In global=76,/*! USB OTG HS Wakeup through=77,/*! USB OTG HS global=78,/*! DCMI global=79,/*! CRYP crypto global=80,/*! Hash and Rng global=81/*! FPU globalinterrupt interrupt interrupt interrupt interruptEXTI interrupt OTG_HS_IRQn*/DCMIJRQn*/CRY
18、P_IRQn*/HASH_RNGJRQn*/FPUJRQn*/ IRQn_Type;2 ,数据类型定义 typedef int32_t s32; typedef intl6_t sl6;typedef int8_t s8;typedef const int32_t sc32; /* ! Read Only */ typedef const intl6_t scl6; /* ! Read Only */typedef const int8_t sc8; /* ! Read Only */ typedef _IO int32_t vs32;typedef _IO intl6_t vsl6;type
19、def _IO int8_t vs8;typedef _I int32_t vsc32; /*! Read Only */ typedef _I intl6_t vscl6; /*! Read Only */ typedef _I int8_t vsc8; /*! Read Only */typedef uint32_t u32;typedef uintl6_t ul6;typedef uint8_t u8;typedef const uint32_t uc32; /* ! Read Only */ typedef const uintl6_t ucl6; /*! Read Only */ t
20、ypedef const uint8_t uc8; /* ! Read Only */ typedef _IO uint32_t vu32;typedef _IO uintl6_t vul6;typedef _IO uint8_t vu8;typedef _I uint32_t vuc32; /*! Read Only */typedef _I uintl6_t vucl6; /*! Read Only */typedef _I uint8_t vuc8;/*! Read Only */参考一下的定义typedeftypedeftypedeftypedeftypedeftypedeftyped
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 文件 常用 枚举 类型 定义
限制150内