From: asterix Date: Tue, 20 May 2008 08:53:17 +0000 (+0000) Subject: Move test in separated module. X-Git-Tag: 2.0.0~647 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9a754922afdbcf6aa1c3fc6ee391d2cfafb06d58;p=bertos.git Move test in separated module. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1287 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/lcd_hd44.c b/bertos/drv/lcd_hd44.c index 1c2e52f7..6b7b1568 100644 --- a/bertos/drv/lcd_hd44.c +++ b/bertos/drv/lcd_hd44.c @@ -37,9 +37,11 @@ * \author Stefano Fedrigo */ -#include "lcd_hd44.h" #include "hw_lcd.h" + #include + +#include #include #if defined(LCD_READ_H) && defined(LCD_READ_L) && defined(LCD_WRITE_H) && defined(LCD_WRITE_L) @@ -421,37 +423,4 @@ void lcd_hw_init(void) timer_delay(2); } -#if CONFIG_TEST - -void lcd_hw_test(void) -{ - lcd_regWrite(LCD_CMD_SET_DDRAMADDR | 3); - timer_delay(1); - kprintf("3 -> %02X\n", lcd_regRead()); - timer_delay(1); - - for (int i = 0; i < 10; i++) - { - lcd_dataWrite('c'); - timer_delay(1); - kprintf("addr = %02X\n", lcd_regRead()); - timer_delay(1); - } - - lcd_regWrite(LCD_CMD_SET_DDRAMADDR | 0x4a); - timer_delay(1); - kprintf("4A -> %02X\n", lcd_regRead()); - timer_delay(1); - - lcd_regWrite(LCD_CMD_SET_DDRAMADDR | 0x52); - timer_delay(1); - kprintf("52 -> %02X\n", lcd_regRead()); - timer_delay(1); - - lcd_regWrite(LCD_CMD_SET_DDRAMADDR | 0x1F); - timer_delay(1); - kprintf("1F -> %02X\n", lcd_regRead()); - timer_delay(1); -} -#endif /* CONFIG_TEST */