Esempio n. 1
0
int main(int argc, char *argv[])
{
	pthread_t main_thread;

	/* init device list */
	dev_list_init();
	/* set all devices to 'not_in_use', which is 0 */
	dev_usage_init();
	/* start testing thread */
// 	pthread_create(&main_thread, NULL, single_modem_testing, NULL);

	while(1) 
	{
		dm_log(NULL, "start to check device ...");
		device_check();
		sleep(1);
	}

	return 0;
}
Esempio n. 2
0
/** 初始化设备处理模块 */
LCUI_API int LCUIModule_Device_Init(void)
{
	dev_list_init( &dev_list );
	return _LCUIThread_Create(	&LCUI_Sys.dev_thread,
					proc_dev_list, &dev_list );
}