/* Change Logs: Date Author Notes  勤为本 first version   */
volatile unsigned int* gpio_get_cfg_reg(unsigned int gpio)
/* Change Logs: Date Author Notes  勤为本 first version   */
volatile unsigned int* gpio_get_cfg_reg(unsigned int gpio)
{
    volatile unsigned int *gpio_cfgx = NULL;
    unsigned int port = GPIO_GET_PORT(gpio);
    switch (port)
    {
        case 0:
            gpio_cfgx = (volatile unsigned int *)LS1B_GPIO_CFG0;
            break;
        case 1:
            gpio_cfgx = (volatile unsigned int *)LS1B_GPIO_CFG1;
            break;
        default:
            gpio_cfgx = NULL;
            break;
    }
    return gpio_cfgx;
}