aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/dial/GADC
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-28 19:06:16 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-28 19:06:16 +1000
commit737ac5be9743e37b80133706faf02e959e803459 (patch)
treeeb0bf63c333e6d51f19ee20676d475f8eb607c98 /drivers/ginput/dial/GADC
parentb05a29f830008ab0e9a36d8384ed7cf4ea3fb18b (diff)
downloaduGFX-737ac5be9743e37b80133706faf02e959e803459.tar.gz
uGFX-737ac5be9743e37b80133706faf02e959e803459.tar.bz2
uGFX-737ac5be9743e37b80133706faf02e959e803459.zip
Create uGFX board directories which include example Makefiles.
Currently only done for the Olimex-SAM7EX256 board.
Diffstat (limited to 'drivers/ginput/dial/GADC')
-rw-r--r--drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h (renamed from drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h)9
-rw-r--r--drivers/ginput/dial/GADC/ginput_lld_dial_config.h11
2 files changed, 7 insertions, 13 deletions
diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h b/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h
index 09ca3dc0..202b5386 100644
--- a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h
+++ b/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h
@@ -6,7 +6,7 @@
*/
/**
- * @file drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h
+ * @file drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h
* @brief GINPUT Dial Driver config file.
*
* @defgroup Dial Dial
@@ -14,8 +14,8 @@
* @{
*/
-#ifndef _GINPUT_LLD_DIAL_BOARD_OLIMEXSAM7EX256_H
-#define _GINPUT_LLD_DIAL_BOARD_OLIMEXSAM7EX256_H
+#ifndef _GINPUT_LLD_DIAL_BOARD_H
+#define _GINPUT_LLD_DIAL_BOARD_H
#if GFX_USE_GINPUT && GINPUT_NEED_DIAL
@@ -23,6 +23,7 @@
/* Analogue devices on this board */
/*===========================================================================*/
+/* Example values */
#define GINPUT_DIAL_NUM_PORTS 1
#define GINPUT_DIAL_DEVICE0 GADC_PHYSDEV_DIAL
#define GINPUT_DIAL_POLL_PERIOD 200
@@ -30,6 +31,6 @@
#endif /* GFX_USE_GINPUT && GINPUT_NEED_DIAL */
-#endif /* _GINPUT_LLD_DIAL_BOARD_OLIMEXSAM7EX256_H */
+#endif /* _GINPUT_LLD_DIAL_BOARD_H */
/** @} */
diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h
index 3dc7bfca..3e54b4ca 100644
--- a/drivers/ginput/dial/GADC/ginput_lld_dial_config.h
+++ b/drivers/ginput/dial/GADC/ginput_lld_dial_config.h
@@ -21,15 +21,8 @@
#define GINPUT_DIAL_MAX_VALUE ((1<<GADC_BITS_PER_SAMPLE)-1)
-#if GINPUT_TOGGLE_USE_CUSTOM_BOARD
- /* Include the user supplied board definitions */
- #include "ginput_lld_dial_board.h"
-#elif defined(BOARD_OLIMEX_SAM7_EX256)
- #include "ginput_lld_dial_board_olimexsam7ex256.h"
-#else
- /* Include the user supplied board definitions */
- #include "ginput_lld_dial_board.h"
-#endif
+/* Include the user supplied board definitions */
+#include "ginput_lld_dial_board.h"
#endif /* GFX_USE_GDISP && GINPUT_NEED_DIAL */