2、如下结构体是配置外部中断的,里面有几个参数不明。
1)GPIO中断有上升沿或者下降沿触发,在配置软件中断时候,或者说配置外部中断时候,也有这个沿的设置,就是下面结构体里trigger的设置。但在软件中断里这个沿怎么理解,要不要配,如果不配会怎么样呢?
2)外部中断配置时候还有个关联GPIO的功能,如下面结构体GPIOSel,这个是怎么个意思?
typedef struct
{
uint32_t Line; /*!< The Exti line to be configured. This parameter can be a value of @ref EXTI_Line */
uint32_t Mode; /*!< The Exit Mode to be configured for a core. This parameter can be a combination of @ref EXTI_Mode */
uint32_t Trigger; /*!< The Exti Trigger to be configured. This parameter can be a value of @ref EXTI_Trigger */
uint32_t GPIOSel; /*!< The Exti GPIO multiplexer selection to be configured. This parameter is only possible for line 0 to 15. It can be a value of @ref EXTI_GPIOSel */
uint32_t PendClearSource; /*!< Specifies the event pending clear source for D3/SRD domain. This parameter can be a value of @ref EXTI_PendClear_Source */