MSS_GPIO_disable_irq

Function MSS_GPIO_disable_irq 

Source
pub unsafe extern "C" fn MSS_GPIO_disable_irq(
    gpio: *mut GPIO_TypeDef,
    port_id: mss_gpio_id_t,
)
Expand description

MSS_GPIO_disable_irq() disables interrupt generation for the specified GPIO input. This function also disables the corresponding GPIO direct interrupt on the PLIC.

@param gpio The gpio parameter specifies the GPIO block that needs to be configured.

@param port_id The port_id parameter identifies the GPIO port for which you want to disable interrupt generation. An enumeration item of the form MSS_GPIO_n, where n is the number of the GPIO port, identifies the GPIO port. For example, MSS_GPIO_0 identifies the first GPIO port and MSS_GPIO_31 identifies the last GPIO port.

@return This function does not return a value.

@example In the following example, calling the MSS_GPIO_disable_irq() prevents GPIO 8 from generating interrupts: @code MSS_GPIO_disable_irq(MSS_GPIO_8); @endcode