00001 /* 00002 * Copyright Ian Burnett 2005, 2006. 00003 * 00004 * This file is part of Ian's Interactive LCD controller (IILC). 00005 * 00006 * IILC is free software; you can redistribute it and/or modify it under 00007 * the terms of the GNU General Public License as published by the Free 00008 * Software Foundation; either version 2 of the License, or (at your 00009 * option) any later version. 00010 * 00011 * IILC is distributed in the hope that it will be useful, but WITHOUT 00012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00013 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00014 * for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along 00017 * with IILC; if not, write to the Free Software Foundation, Inc., 00018 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 00019 */ 00020 00028 #include <errno.h> 00029 #include <fcntl.h> 00030 #include <string.h> 00031 00032 #if defined(_WIN32) 00033 # include "pthread_w32.h" 00034 #else 00035 # include <dlfcn.h> 00036 # include <pthread.h> 00037 #endif 00038 00039 #include "lcd.h" 00040 #include "trace.h" 00041 #include "device.h" 00042 #include "driver.h" 00043 00044 #define IILC_MODULE MODULE_TYPE_APP 00045 00046