/* Gets the LCD instance according to the LCD base.  */
static uint32_t LCDC_GetInstance(LCD_Type *base)
/* Gets the LCD instance according to the LCD base.  */
static uint32_t LCDC_GetInstance(LCD_Type *base)
{
    uint32_t instance;
    for (instance = 0; instance < ARRAY_SIZE(s_lcdBases); instance++)
    {
        if (s_lcdBases[instance] == base)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_lcdBases));
    return instance;
}