Interrupt中断配置
1、static inline void Interrupt_register(uint32_t interruptNumber, void (*handler)(void))
- function description: Write the interrupt service function address of the specified interrupt to the appropriate location in the PIE vector table.
- parameter description:
- input parameters: interruptNumber: select the interrupt to be written, and the INTERRUPT _ Type enumeration type in the interrupt. H contains valid parameter values; handler: the corresponding interrupt function address.
- return parameter: None.
2、void Interrupt_initModule(void)
- function description: Initialize the enable and flag registers corresponding to each interrupt group.
- parameter description:
- input parameter: None.
- return parameter: None.
3、void Interrupt_initVectorTable(void)
- function description: Initialize the interrupt vector table.
- parameter description:
- input parameter: None.
- return parameter: None.
4、void Interrupt_enable(INTERRUPT_Type interruptNumber)
- function description: Enables the specified interrupt.
- parameter description:
- input parameters: interruptNumber: Select the interrupt to be enabled.
- return parameter: None.
5、void Interrupt_disable(INTERRUPT_Type interruptNumber)
- function description: Disables the specified interrupt.
- parameter description:
- input parameter: interruptNumber: Select the interrupt to be disabled.
- return parameter: None.