野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 16851|回复: 2

关于中断的一个小问题

[复制链接]
发表于 2018-3-27 17:27:46 | 显示全部楼层 |阅读模式
求助各位大神,在NVIC 结构体定义(core_cm3.h)中,是这么定义的

typedef struct
{
  __IO uint32_t ISER[8];                      /*!< Offset: 0x000  Interrupt Set Enable Register           */
       uint32_t RESERVED0[24];                                   
  __IO uint32_t ICER[8];                      /*!< Offset: 0x080  Interrupt Clear Enable Register         */
       uint32_t RSERVED1[24];                                    
  __IO uint32_t ISPR[8];                      /*!< Offset: 0x100  Interrupt Set Pending Register          */
       uint32_t RESERVED2[24];                                   
  __IO uint32_t ICPR[8];                      /*!< Offset: 0x180  Interrupt Clear Pending Register        */
       uint32_t RESERVED3[24];                                   
  __IO uint32_t IABR[8];                      /*!< Offset: 0x200  Interrupt Active bit Register           */
       uint32_t RESERVED4[56];                                   
  __IO uint8_t  IP[240];                      /*!< Offset: 0x300  Interrupt Priority Register (8Bit wide) */
       uint32_t RESERVED5[644];                                 
  __O  uint32_t STIR;                         /*!< Offset: 0xE00  Software Trigger Interrupt Register     */
}  NVIC_Type;

uint32_t RESERVED0[24];uint32_t RSERVED1[24];。。。。。分别是什么意思

回复

使用道具 举报

发表于 2018-3-27 17:47:21 | 显示全部楼层
RSERVED是保留位,设计寄存器的工程师不知道给它安排什么功能好,就预留下来了,当它不存在就行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-3-28 08:59:51 | 显示全部楼层
flyleaf 发表于 2018-3-27 17:47
RSERVED是保留位,设计寄存器的工程师不知道给它安排什么功能好,就预留下来了,当它不存在就行

谢谢火哥
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2025-12-6 15:02 , Processed in 0.046467 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表