Comply to new api.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 20 May 2010 16:47:21 +0000 (16:47 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 20 May 2010 16:47:21 +0000 (16:47 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3755 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/lcd_32122a.c
bertos/drv/lcd_32122a.h

index 7c3499de8108fbdf163dce9015fb69f0dc308d3b..b46ee0b71b42b5e43927d1af3f059e49cbcd470d 100644 (file)
@@ -291,7 +291,7 @@ void lcd_32122_setPwm(int duty)
 /**
  * Update the LCD display with data from the provided bitmap.
  */
-void lcd_32122_blitBitmap(Bitmap *bm)
+void lcd_32122_blitBitmap(const Bitmap *bm)
 {
        lcd_32122_writeRaster(bm->raster);
 }
@@ -320,7 +320,8 @@ void lcd_32122_init(void)
        lcd_32122_clear();
        lcd_32122_setPwm(LCD_DEF_PWM);
 
-       gfx_bitmapInit(&lcd_bitmap, lcd_raster, LCD_WIDTH, LCD_HEIGHT); gfx_bitmapClear(&lcd_bitmap);
+       gfx_bitmapInit(&lcd_bitmap, lcd_raster, LCD_WIDTH, LCD_HEIGHT);
+       gfx_bitmapClear(&lcd_bitmap);
 
 #if CONFIG_LCD_SOFTINT_REFRESH
        /* Init IRQ driven LCD refresh */
index e6c040ad3640ef97eb8973b69818c59973393afd..ed9b1b5e1062f93ecbe4714fbb57478184f26052 100644 (file)
 #define LCD_WIDTH 122
 #define LCD_HEIGHT 32
 
+#include <gfx/gfx.h> /* Bitmap */
+
 #warning __FILTER_NEXT_WARNING__
 #warning this drive is untested..
 
-extern struct Bitmap lcd_bitmap;
-
 void lcd_32122_init(void);
 void lcd_32122_setPwm(int duty);
-void lcd_32122_blitBitmap(struct Bitmap *bm);
+void lcd_32122_blitBitmap(const Bitmap *bm);
 
 #endif /* DRV_LCD_32122A_H */