/* Enable the Analog mode for each pin (default is as Digital pins)  */
void PINSEL_SetAnalogPinMode(uint8_t portnum, uint8_t pinnum, uint8_t enable)
/* Enable the Analog mode for each pin (default is as Digital pins)  */
void PINSEL_SetAnalogPinMode(uint8_t portnum, uint8_t pinnum, uint8_t enable)
{
    uint32_t *pPIN = NULL;
    uint8_t condition = 0;
    condition = ((portnum == 0) && (pinnum == 12)) || ((portnum == 0) && (pinnum == 13))
                    | ((portnum == 0) && (pinnum <= 26) && (pinnum >= 23))
                    | ((portnum == 1) && (pinnum == 30)) || ((portnum == 1) && (pinnum == 31));
    if(!condition)
    {
        return;
    }
    pPIN = PIN_GetPointer(portnum, pinnum);
    *(uint32_t *)pPIN &= ~(PINSEL_ADMODE_BITMASK << PINSEL_ADMODE_POS);
    if(enable)
    {
    }
    else
    {
        *(uint32_t *)pPIN |= (1 << PINSEL_ADMODE_POS);
    }
    return;
}