diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-02-11 09:25:26 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-02-11 09:25:26 +0100 |
commit | 885b3d53b3a491c62fb0634b78cb9857723ac15d (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /drivers/tdisp/HD44780/tdisp_lld_board_example.h | |
parent | 851e5fb09bdc086d734647128fd3051c3a8528e2 (diff) | |
download | uGFX-885b3d53b3a491c62fb0634b78cb9857723ac15d.tar.gz uGFX-885b3d53b3a491c62fb0634b78cb9857723ac15d.tar.bz2 uGFX-885b3d53b3a491c62fb0634b78cb9857723ac15d.zip |
removed GDISP_LLD() macro
Diffstat (limited to 'drivers/tdisp/HD44780/tdisp_lld_board_example.h')
-rw-r--r-- | drivers/tdisp/HD44780/tdisp_lld_board_example.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/drivers/tdisp/HD44780/tdisp_lld_board_example.h b/drivers/tdisp/HD44780/tdisp_lld_board_example.h deleted file mode 100644 index 3f5c47d7..00000000 --- a/drivers/tdisp/HD44780/tdisp_lld_board_example.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - ChibiOS/GFX - Copyright (C) 2012 - 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/tdisp/HD44780/tdisp_lld_board_example.h - * @brief TDISP driver subsystem board interface for the HD44780 display - * - * @addtogroup TDISP - * @{ - */ - -#ifndef _TDISP_LLD_BOARD_H -#define _TDISP_LLD_BOARD_H - -void init_board(void) { - palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); - palSetGroupMode(GPIOG, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); -} - -void setpin_e(bool_t state) { - if(state) - palSetPad(GPIOE, 2); - else - palClearPad(GPIOE, 2); -} - -void setpin_rs(bool_t state) { - if(state) - palSetPad(GPIOE, 0); - else - palClearPad(GPIOE, 0); -} - -void setpin_rw(bool_t state) { - if(state) - palSetPad(GPIOE, 1); - else - palClearPad(GPIOE, 1); -} - -void write_bus(uint8_t data) { - palWritePort(GPIOG, data); -} - -#endif /* _TDISP_LLD_BOARD_H */ -/** @} */ - |