예제 #1
0
/*********************************************************************//**
 * @brief 		Main I2C0 interrupt handler sub-routine
 * @param[in]	None
 * @return 		None
 **********************************************************************/
void I2C0_IRQHandler(void){
	// just call std int handler
	I2C_MasterHandler(I2CDEV);
	if (I2C_MasterTransferComplete(I2CDEV)){
		complete = SET;
	}
}
예제 #2
0
void I2C_IRQHandler(void)
#endif
{
     I2C_MasterHandler((en_I2C_unitId)I2CDEV_M);
    if (I2C_MasterTransferComplete((en_I2C_unitId)I2CDEV_M)){
          complete = TRUE;
    }   
}
예제 #3
0
int _I2C_MasterHandler(uint8_t * args)
{
	uint8_t * arg_ptr;
	LPC_I2C_TypeDef* I2Cx;

	if ((arg_ptr = (uint8_t *) strtok(NULL, " ")) == NULL) return 1;
	I2Cx = (LPC_I2C_TypeDef*) strtoul((char *) arg_ptr, NULL, 16);

	I2C_MasterHandler(I2Cx);
	return 0;
}