diff options
author | Andrew Hannam <andrewh@inmarket.com.au> | 2013-02-18 17:33:35 +1000 |
---|---|---|
committer | Andrew Hannam <andrewh@inmarket.com.au> | 2013-02-18 17:33:35 +1000 |
commit | 9bec5967b293d6c23c9d7e9338d8ece4873f6eac (patch) | |
tree | 2af82d8674eb0c69c8a2d8b9055f3a5e57833cfe /drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h | |
parent | 2ed57aea77103e864c25f2478ef7fc43352163f0 (diff) | |
download | uGFX-9bec5967b293d6c23c9d7e9338d8ece4873f6eac.tar.gz uGFX-9bec5967b293d6c23c9d7e9338d8ece4873f6eac.tar.bz2 uGFX-9bec5967b293d6c23c9d7e9338d8ece4873f6eac.zip |
GADC implementation with demo program
Also includes driver for AT91SAM7 cpu
Diffstat (limited to 'drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h')
-rw-r--r-- | drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h new file mode 100644 index 00000000..6f23db17 --- /dev/null +++ b/drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h @@ -0,0 +1,46 @@ +/* + ChibiOS/GFX - Copyright (C) 2012, 2013 + Joel Bodenmann aka Tectu <joel@unormal.org> + + This file is part of ChibiOS/GFX. + + ChibiOS/GFX is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + ChibiOS/GFX is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +/** + * @file drivers/gadc/AT91SAM7/gadc_lld_board_olimexsam7ex256.h + * @brief GADC Driver config file. + * + * @addtogroup GADC + * @{ + */ + +#ifndef _GADC_LLD_BOARD_OLIMEXSAM7EX256_H +#define _GADC_LLD_BOARD_OLIMEXSAM7EX256_H + +#if GFX_USE_GADC + +/*===========================================================================*/ +/* Analogue devices on this board */ +/*===========================================================================*/ + +#define GADC_PHYSDEV_MICROPHONE 0x00000080 +#define GADC_PHYSDEV_DIAL 0x00000040 +#define GADC_PHYSDEV_TEMPERATURE 0x00000020 + +#endif /* GFX_USE_GADC */ + +#endif /* _GADC_LLD_BOARD_OLIMEXSAM7EX256_H */ +/** @} */ + |