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.

cc1310 做为i2c从设备,需要如何初始化?

Other Parts Discussed in Thread: CC1310

目前初始化采用了

void i2c_pin_init(void)
{
    PRCMPeripheralRunEnable(PRCM_PERIPH_GPIO);
    IOCPinTypeI2c(0, IOID_1, IOID_0);
}

void Board_initI2C(void)
{
    i2c_pin_init();
    PRCMPeripheralRunEnable(PRCM_PERIPH_I2C0);

    I2CSlaveInit(I2C0_BASE, 0x10);
    I2CSlaveIntEnable(I2C0_BASE, I2C_SLAVE_INT_STOP|I2C_SLAVE_INT_START|I2C_SLAVE_INT_DATA);
    I2CIntRegister(I2C0_BASE, i2c_callback);
    I2CSlaveDataGet(I2C0_BASE);
    IntEnable(INT_I2C_IRQ);
}

但是主机端还是没有扫描到cc1310,请问下,cc1310作为i2c从设备,需要哪些设置以及初始化?

谢谢!