From 737ac5be9743e37b80133706faf02e959e803459 Mon Sep 17 00:00:00 2001 From: inmarket Date: Mon, 28 Oct 2013 19:06:16 +1000 Subject: Create uGFX board directories which include example Makefiles. Currently only done for the Olimex-SAM7EX256 board. --- .../GADC/ginput_lld_dial_board_olimexsam7ex256.h | 35 --------------------- .../dial/GADC/ginput_lld_dial_board_template.h | 36 ++++++++++++++++++++++ drivers/ginput/dial/GADC/ginput_lld_dial_config.h | 11 ++----- 3 files changed, 38 insertions(+), 44 deletions(-) delete mode 100644 drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h create mode 100644 drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h (limited to 'drivers/ginput/dial/GADC') diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h b/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h deleted file mode 100644 index 09ca3dc0..00000000 --- a/drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is subject to the terms of the GFX License. If a copy of - * the license was not distributed with this file, you can obtain one at: - * - * http://ugfx.org/license.html - */ - -/** - * @file drivers/ginput/dial/GADC/ginput_lld_dial_board_olimexsam7ex256.h - * @brief GINPUT Dial Driver config file. - * - * @defgroup Dial Dial - * @ingroup GINPUT - * @{ - */ - -#ifndef _GINPUT_LLD_DIAL_BOARD_OLIMEXSAM7EX256_H -#define _GINPUT_LLD_DIAL_BOARD_OLIMEXSAM7EX256_H - -#if GFX_USE_GINPUT && GINPUT_NEED_DIAL - -/*===========================================================================*/ -/* Analogue devices on this board */ -/*===========================================================================*/ - -#define GINPUT_DIAL_NUM_PORTS 1 -#define GINPUT_DIAL_DEVICE0 GADC_PHYSDEV_DIAL -#define GINPUT_DIAL_POLL_PERIOD 200 -#define GINPUT_DIAL_CYCLE_POLL FALSE - -#endif /* GFX_USE_GINPUT && GINPUT_NEED_DIAL */ - -#endif /* _GINPUT_LLD_DIAL_BOARD_OLIMEXSAM7EX256_H */ -/** @} */ - diff --git a/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h b/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h new file mode 100644 index 00000000..202b5386 --- /dev/null +++ b/drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h @@ -0,0 +1,36 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +/** + * @file drivers/ginput/dial/GADC/ginput_lld_dial_board_template.h + * @brief GINPUT Dial Driver config file. + * + * @defgroup Dial Dial + * @ingroup GINPUT + * @{ + */ + +#ifndef _GINPUT_LLD_DIAL_BOARD_H +#define _GINPUT_LLD_DIAL_BOARD_H + +#if GFX_USE_GINPUT && GINPUT_NEED_DIAL + +/*===========================================================================*/ +/* 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 +#define GINPUT_DIAL_CYCLE_POLL FALSE + +#endif /* GFX_USE_GINPUT && GINPUT_NEED_DIAL */ + +#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<