/* EXTINT Ch.8 as BSP Key row 0 callback function.  */
static void BSP_KEY_ROW0_IrqCallback(void)
/* EXTINT Ch.8 as BSP Key row 0 callback function.  */
static void BSP_KEY_ROW0_IrqCallback(void)
{
    uint8_t u8Idx = (uint8_t)KEYSCAN_GetKeyoutIdx();
    if (SET == EXTINT_GetExtIntStatus(BSP_KEYIN_PORT_PIN[0].ch)) {
        for (;;) {
            if (PIN_RESET == GPIO_ReadInputPins(BSP_KEYIN_PORT_PIN[0].port, BSP_KEYIN_PORT_PIN[0].pin)) {
                m_u32GlobalKey |= (0x01UL) << u8Idx;
            } else {
                EXTINT_ClearExtIntStatus(BSP_KEYIN_PORT_PIN[0].ch);
                break;
            }
        }
    }
}