Conditionalize AVR-specific code.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Sep 2004 03:29:06 +0000 (03:29 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Sep 2004 03:29:06 +0000 (03:29 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@213 38d2e660-2303-0410-9eaa-f027e97ec537

mware/gfx.h

index 0239ad1754b3616cf3c466f9978d6a9d5244e8ac..cb030b579b8fe32f7c63a3c3f86b141a1b2634ec 100755 (executable)
@@ -14,6 +14,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.7  2004/09/20 03:29:06  bernie
+ *#* Conditionalize AVR-specific code.
+ *#*
  *#* Revision 1.6  2004/09/14 21:01:08  bernie
  *#* Rename rectangle drawing functions; Unify filled/cleared implementations.
  *#*
@@ -76,7 +79,6 @@ typedef struct Bitmap
 /* Function prototypes */
 extern void gfx_InitBitmap(Bitmap *bm, uint8_t *raster, coord_t w, coord_t h);
 extern void gfx_ClearBitmap(Bitmap *bm);
-extern void gfx_blitBitmap_P(Bitmap *bm, const prog_uchar *raster);
 extern void gfx_DrawLine(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2);
 extern void gfx_RectDraw(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2);
 extern void gfx_RectFillC(Bitmap *bm, coord_t x1, coord_t y1, coord_t x2, coord_t y2, uint8_t color);
@@ -86,6 +88,11 @@ extern void gfx_MoveTo(Bitmap *bm, coord_t x, coord_t y);
 extern void gfx_LineTo(Bitmap *bm, coord_t x, coord_t y);
 extern void gfx_SetClipRect(Bitmap *bm, coord_t xmin, coord_t ymin, coord_t xmax, coord_t ymax);
 
+#if CPU_AVR
+       #include <avr/pgmspace.h>
+       extern void gfx_blitBitmap_P(Bitmap *bm, const prog_uchar *raster);
+#endif /* CPU_AVR */
+
 /* DEPRECATED names */
 #define gfx_DrawRect  gfx_RectDraw
 #define gfx_FillRect  gfx_RectFill