Move test in separated module.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 May 2008 08:53:17 +0000 (08:53 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 May 2008 08:53:17 +0000 (08:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1287 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/lcd_hd44.c

index 1c2e52f7261b2651e8121734fe7cc152fb131fa7..6b7b1568c570ba3a34a70423ea856bb955b23401 100644 (file)
  * \author Stefano Fedrigo <aleph@develer.com>
  */
 
-#include "lcd_hd44.h"
 #include "hw_lcd.h"
+
 #include <cfg/arch_config.h>
+
+#include <drv/lcd_hd44.h>
 #include <drv/timer.h>
 
 #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 */