/* MSS_GPIO_clear_irq See "mss_gpio.h" for details of how to use this function.  */
void MSS_GPIO_clear_irq(mss_gpio_id_t port_id)
/* MSS_GPIO_clear_irq See "mss_gpio.h" for details of how to use this function.  */
void MSS_GPIO_clear_irq(mss_gpio_id_t port_id)
{
    uint32_t gpio_idx = (uint32_t)port_id;
    ASSERT( gpio_idx < NB_OF_GPIO );
    if ( gpio_idx < NB_OF_GPIO )
    {
        GPIO->GPIO_IRQ = ((uint32_t)1) << gpio_idx;
        NVIC_ClearPendingIRQ( g_gpio_irqn_lut[gpio_idx] );
    }
}