From: asterix Date: Mon, 26 May 2008 10:23:21 +0000 (+0000) Subject: Remove test function and move it in separate file. Reformat. X-Git-Tag: 2.0.0~568 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6c7d29116e4b6ba206f0c5e59674794c447623e8;p=bertos.git Remove test function and move it in separate file. Reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1366 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/lcd_text.c b/bertos/drv/lcd_text.c index 3ded59f3..b1f3d6f1 100644 --- a/bertos/drv/lcd_text.c +++ b/bertos/drv/lcd_text.c @@ -27,7 +27,7 @@ * the GNU General Public License. * * Copyright 2005 Develer S.r.l. (http://www.develer.com/) - * + * All Rights Reserved. * --> * * \brief Generic text LCD driver (impl.). @@ -39,11 +39,14 @@ #include "lcd_text.h" #include "lcd_hd44.h" + +#include // BV() +#include + #include // timer_delay() + #include // _formatted_write() #include // LIST_EMPTY() -#include // BV() -#include #include // strlen() @@ -448,16 +451,4 @@ void lcd_init(void) lcd_setCursor(0); } -#if CONFIG_TEST -void lcd_test(void) -{ - int i; - - for (i = 0; i < LCD_ROWS * LCD_COLS; ++i) - { - lcd_putCharUnlocked('0' + (i % 10), lcd_DefLayer); - timer_delay(100); - } -} -#endif /* CONFIG_TEST */ diff --git a/bertos/drv/lcd_text_test.c b/bertos/drv/lcd_text_test.c new file mode 100644 index 00000000..1c4c81ae --- /dev/null +++ b/bertos/drv/lcd_text_test.c @@ -0,0 +1,55 @@ +/** + * \file + * + * + * \brief Generic text LCD driver (Test). + * + * \version $Id$ + * + * \author Daniele Basile + * + */ + +#warning FIXME:This test is incomplete, you must review! + +#if 0 +void lcd_test(void) +{ + int i; + + for (i = 0; i < LCD_ROWS * LCD_COLS; ++i) + { + lcd_putCharUnlocked('0' + (i % 10), lcd_DefLayer); + timer_delay(100); + } +} +#endif +