Hi

I wanted to use I2C1 in F28M35X, the user guid tell me two pins can used by I2C1, that is PA0,PA1 and PG0,PG1. PA can be used by SCI1.But,I find PG can not be used. code are as follow:

void CH454_creat()

{

/* I2C1 Init */

/* Enable the peripheral */

SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C1);

/* Configure the appropriate pins to be I2C instead of GPIO. */

GPIOPinConfigure(GPIO_PG0_I2C1SCL); /* GPIO00 on Concerto base board */

GPIOPinConfigure(GPIO_PG1_I2C1SDA); /* GPIO01 on Concerto base board */

GPIOPinTypeI2C(GPIO_PORTG_BASE, GPIO_PIN_0 | GPIO_PIN_1);

/* Initialize the I2C master. 100KHz */

I2CMasterInitExpClk(I2C1_MASTER_BASE, SysCtlClockGet(SYSTEM_CLOCK_SPEED), false);

// Enable the hardware I2C.

I2CMasterEnable(I2C1_MASTER_BASE);

// Specify slave address

I2CMasterSlaveAddrSet(I2C1_MASTER_BASE, CH454_I2C_ADDR, false);

}

void I2C_sent(UChar CMD)

{

// Place the character to be sent in the data register

I2CMasterDataPut(I2C1_MASTER_BASE, CMD);

// Initiate send of character from Master to Slave

I2CMasterControl(I2C1_MASTER_BASE, I2C_MASTER_CMD_SINGLE_SEND);

// Delay until transmission completes

while(I2CMasterBusBusy(I2C1_MASTER_BASE))

{

}

}

void CH454_sentCMD(UChar *CMD)

{

int i;

for(i = 0; i<2; i++)

{

I2C_sent(CMD[i]);

}

}

WHY?