Other Parts Discussed in Thread: CC2640
Tool/software: Code Composer Studio
In the example:
ti\simplelink_cc2640r2_sdk_3_30_00_20\examples\nortos\CC2640R2_LAUNCHXL\drivers\pinInterrupt,
void *mainThread(void *arg0)
{
/* Open LED pins */
ledPinHandle = PIN_open(&ledPinState, ledPinTable);
if(!ledPinHandle) {
/* Error initializing board LED pins */
while(1);
}
buttonPinHandle = PIN_open(&buttonPinState, buttonPinTable);
if(!buttonPinHandle) {
/* Error initializing button pins */
while(1);
}
/* Setup callback for button pins */
if (PIN_registerIntCb(buttonPinHandle, &buttonCallbackFxn) != 0) {
/* Error registering button callback function */
while(1);
}
/* Loop forever */
while(1) {
sleep(1000);
}
}
When the chip enters the external interrupt,Initialize I2C,read and write.
The program will stop in the function :cc26xxI2C_config[CC2640R2_LAUNCHXL_I2C0].fxnTablePtr->transferFxn(cc2640_I2C_Handle,&transaction);
How to deal with this problem?
Or When the interrupt operation is completed, how to make the chip no longer enter the standby mode?