//#NT#2009/10/08#Bowen Li -begin //#NT#add IPL sleep & wake up command void Sen_EnterSleepMode(IPL_SLEEP_LEVEL Level) { StopPreviewDramData(); pre_close(); sie_close(); if (SensorInfor.bSieMClkEn == ENABLE) { pll_disableClock(SIE_MCLK); } ipe_close(); ime_close(); }
static bool pre_syscall(void *drcontext, int sysnum) { switch (sysnum) { case SYS_open: pre_open(drcontext); break; case SYS_close: pre_close(drcontext); break; case SYS_read: pre_read(drcontext); break; case SYS_write: pre_write(drcontext); break; case SYS_pwrite64: pre_pwrite(drcontext); break; default: break; } return true; }