Add framework for input devices and TSC2007 touchscreen driver

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3827 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-07-29 18:51:56 +00:00
parent 6bcf6e7f99
commit 1c492be255
5 changed files with 699 additions and 7 deletions
+33 -1
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* include/debug.h
*
* Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -224,6 +224,18 @@
# define fllvdbg(x...)
#endif
#ifdef CONFIG_DEBUG_INPUT
# define idbg(format, arg...) dbg(format, ##arg)
# define illdbg(format, arg...) lldbg(format, ##arg)
# define ivdbg(format, arg...) vdbg(format, ##arg)
# define illvdbg(format, arg...) llvdbg(format, ##arg)
#else
# define idbg(x...)
# define illdbg(x...)
# define ivdbg(x...)
# define illvdbg(x...)
#endif
#ifdef CONFIG_DEBUG_GRAPHICS
# define gdbg(format, arg...) dbg(format, ##arg)
# define glldbg(format, arg...) lldbg(format, ##arg)
@@ -369,6 +381,18 @@
# define fllvdbg (void)
#endif
#ifdef CONFIG_DEBUG_INPUT
# define idbg dbg
# define illdbg lldbg
# define ivdbg vdbg
# define illvdbg llvdbg
#else
# define idbg (void)
# define illdbg (void)
# define ivdbg (void)
# define illvdbg (void)
#endif
#ifdef CONFIG_DEBUG_GRAPHICS
# define gdbg dbg
# define glldbg lldbg
@@ -479,6 +503,14 @@
# define fvdbgdumpbuffer(m,b,n)
#endif
#ifdef CONFIG_DEBUG_INPUT
# define idbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n)
# define ivdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n)
#else
# define idbgdumpbuffer(m,b,n)
# define ivdbgdumpbuffer(m,b,n)
#endif
#ifdef CONFIG_DEBUG_GRAPHICS
# define gdbgdumpbuffer(m,b,n) dbgdumpbuffer(m,b,n)
# define gvdbgdumpbuffer(m,b,n) vdbgdumpbuffer(m,b,n)