This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

求助:CC3200 将例程i2c_demo中I2C的引脚换成PIN3、PIN4或者PIN16、PIN17就没法通讯了

Other Parts Discussed in Thread: CC3200

Ti 员工:
    你们好,
    我们将CC3200 DEMO板上例程i2c_demo的I2C原来的引脚(PIN1、PIN2)改成PIN3、PIN4或者PIN16、PIN17之后I2C就没法通讯了。
    不管引脚如何修改,原来的PIN1、PIN2都有正确的信号,也就是说按照下面的代码来修改,根本就不起作用。
    我们应该怎么样做才能把I2C的引脚改到指定的GPIO上来呢?另外可否将I2C的引脚改为 SCL--> PIN1  SDA --> PIN4 ?
    我们修改的代码如下:
#if 0
    #if 0
        //
        // Configure PIN_01 for I2C0 I2C_SCL
        //
        MAP_PinTypeI2C(PIN_01, PIN_MODE_1);
        //
        // Configure PIN_02 for I2C0 I2C_SDA
        //
        MAP_PinTypeI2C(PIN_02, PIN_MODE_1);
    #else
        //
        // Configure PIN_03 for I2C0 I2C_SCL
        //
        MAP_PinTypeI2C(PIN_03, PIN_MODE_5);
        //
        // Configure PIN_04 for I2C0 I2C_SDA
        //
        MAP_PinTypeI2C(PIN_04, PIN_MODE_5);
    #endif
#else
//
// Configure PIN_16 for I2C0 I2C_SCL
//
MAP_PinTypeI2C(PIN_16, PIN_MODE_9);

//
// Configure PIN_17 for I2C0 I2C_SDA
//
MAP_PinTypeI2C(PIN_17, PIN_MODE_9);
#endif

请各位高手指点一下,非常感谢。