Demo entry 6394501

abc

   

Submitted by anonymous on May 24, 2017 at 10:31
Language: Perl. Code size: 345 Bytes.

void GYRO_Init(void)
{
	while(1){
		LSM6DS3_ACC_GYRO_R_WHO_AM_I(&hi2c2, &i2c2_gyro.pData[0]);
		if(i2c2_gyro.pData[0] == 0x69) break;
	}
	if (Init_All_Sensors() == COMPONENT_ERROR)		sci_msg(DEBUG_PORT, "Init_All_Sensors Failed\r\n");
	if (Enable_All_Sensors() == COMPONENT_ERROR)	sci_msg(DEBUG_PORT, "Enable_All_Sensors Failed\r\n");
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).