用 KEIL 5 遇到一个问题,
编写STM32F103RE 程序
在KEIL 5库文件里始终找不到结构体 NVIC_TypeDef 因为我要使用中断寄存器 IPR[9] ,
兄弟们有谁用 KEIL 5 帮忙看看?
只找到下面的结构体,在文件 CORE_CM3.H 中
typedef struct
{
__IO uint32_t ISER[8]; /*!< Offset: 0x000 (R/W) Interrupt Set Enable Register */
uint32_t RESERVED0[24];
__IO uint32_t ICER[8]; /*!< Offset: 0x080 (R/W) Interrupt Clear Enable Register */
uint32_t RSERVED1[24];
__IO uint32_t ISPR[8]; /*!< Offset: 0x100 (R/W) Interrupt Set Pending Register */
uint32_t RESERVED2[24];
__IO uint32_t ICPR[8]; /*!< Offset: 0x180 (R/W) Interrupt Clear Pending Register */
uint32_t RESERVED3[24];
__IO uint32_t IABR[8]; /*!< Offset: 0x200 (R/W) Interrupt Active bit Register */
uint32_t RESERVED4[56];
__IO uint8_t IP[240]; /*!< Offset: 0x300 (R/W) Interrupt Priority Register (8Bit wide) */
uint32_t RESERVED5[644];
__O uint32_t STIR; /*!< Offset: 0xE00 ( /W) Software Trigger Interrupt Register */
} NVIC_Type;
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
typedef struct { __IO uint32_t ISER[8];
Interrupt Set Enable Register(中断通道使能)
uint32_t RESERVED0[24];
__IO uint32_t ICER[8]; Interrupt Clear Enable Register(中断通道除能)
uint32_t RSERVED1[24];
__IO uint32_t ISPR[8]; Interrupt Set Pending Register(中断通道悬挂置位)
uint32_t RESERVED2[24];
__IO uint32_t ICPR[8]; Interrupt Clear Pending Register(中断通道悬挂清除)
uint32_t RESERVED3[24];
__IO uint32_t IABR[8]; Interrupt Active bit Register (中断活动标志位,查看该位可以知道系统当前正在处理哪个中断通道)
uint32_t RESERVED4[56];
__IO uint8_t IP[240]; Interrupt Priority Register (8Bit wide) (中断优先级寄存器)
uint32_t RESERVED5[644];
__O uint32_t STIR Software Trigger Interrupt Register(软件触发中断寄存器) }
NVIC_Type; 系统控制块结构体:
一周热门 更多>