1/* 2 Driver for I2C Human Interface Devices. 3 Copyright (C) 2008 Michael Lotz <mmlr@mlotz.ch> 4 Distributed under the terms of the MIT license. 5*/ 6#ifndef _I2C_HID_DRIVER_H_ 7#define _I2C_HID_DRIVER_H_ 8 9#include <Drivers.h> 10#include <KernelExport.h> 11#include <OS.h> 12#include <util/kernel_cpp.h> 13 14#include "DeviceList.h" 15 16#define DRIVER_NAME "i2c_hid" 17#define DEVICE_PATH_SUFFIX "i2c" 18#define DEVICE_NAME "I2C" 19 20extern DeviceList *gDeviceList; 21 22 23//#define TRACE_I2C_HID 24#ifdef TRACE_I2C_HID 25# define TRACE(x...) dprintf(DRIVER_NAME ": " x) 26#else 27# define TRACE(x...) 28#endif 29#define ERROR(x...) dprintf(DRIVER_NAME ": " x) 30#define TRACE_ALWAYS(x...) dprintf(DRIVER_NAME ": " x) 31#define CALLED() TRACE("CALLED %s\n", __PRETTY_FUNCTION__) 32 33#endif //_I2C_HID_DRIVER_H_ 34