tree844的个人空间 https://bbs.21ic.com/?1547050 [收藏] [复制] [RSS]

日志

STM32学习日志——第54天

已有 76 次阅读2018-10-19 22:50 |个人分类:STM32学习日志|系统分类:兴趣爱好

STM32学习日志——第54天
2018年10月19日:
        今日总结:NVIC例程基本搞懂了。关键在于NVIC_InitTypeDef。
typedef struct
{
  uint8_t NVIC_IRQChannel;                            /*!< Specifies the IRQ channel to be enabled or disabled.
                                                                          This parameter can be an enumerator of @ref IRQn_Type 
                                                                          enumeration (For the complete STM32 Devices IRQ Channels
                                                                           list, please refer to stm32f4xx.h file) */

  uint8_t NVIC_IRQChannelPreemptionPriority;  /*!< Specifies the pre-emption priority for the IRQ channel
                                                                         specified in NVIC_IRQChannel. This parameter can be a value
                                                                   between 0 and 15 as described in the table @ref MISC_NVIC_Priority_Table
                                                                           A lower priority value indicates a higher priority */

  uint8_t NVIC_IRQChannelSubPriority;  /*!< Specifies the subpriority level for the IRQ channel specified
                                                               in NVIC_IRQChannel. This parameter can be a value
                                                               between 0 and 15 as described in the table @ref MISC_NVIC_Priority_Table
                                                                A lower priority value indicates a higher priority */

  FunctionalState NVIC_IRQChannelCmd;  /*!< Specifies whether the IRQ channel defined in NVIC_IRQChannel
                                                                  will be enabled or disabled. 
                                                                  This parameter can be set either to ENABLE or DISABLE */   
} NVIC_InitTypeDef;

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)