1.工程中主要根据两个接口来判断Sensor是否插入
BOOL DrvSensor_Det2ndSensor(void)
{
return gpio_getPin(GPIO_914Q_LOCK);
//return TRUE;
}
//--------------------------------------------------
BOOL Sensor_CheckExtSensor(void)
{
__FUNC_TRACK__;
static BOOL bFirstTime = TRUE;
BOOL bDetExtSensor = DrvSensor_Det2ndSensor() ? TRUE : FALSE;
if (bFirstTime)
{
bFirstTime = FALSE;
g_bDetExtSensor = bDetExtSensor;
}
DBG_DUMP("^YSensor_CheckExtSensor: %d\r\n", bDetExtSensor);
UI_SetData(FL_MOVIE_DUAL_REC, bDetExtSensor);
return bDetExtSensor;
}
2.使用BOOL DrvSensor_Det2ndSensor(void)的部分: