... | ... | @@ -78,7 +78,7 @@ have no such device, the engine will fails to initialize. |
|
|
CommLCD engine implementation. In the `comm-engines` sample, it does nothing
|
|
|
and just returns zero:
|
|
|
|
|
|
```
|
|
|
```C
|
|
|
int __commlcd_drv_init (void)
|
|
|
{
|
|
|
return 0;
|
... | ... | @@ -96,7 +96,7 @@ mode according to your settings in the MiniGUI runtime configuration, e.g., |
|
|
In our sample, it creates an anonymous memory map by calling `mmap` system
|
|
|
call and returns the video information via `struct commlcd_info* li`:
|
|
|
|
|
|
```
|
|
|
```C
|
|
|
int __commlcd_drv_getinfo (struct commlcd_info *li, int width, int height, int depth)
|
|
|
{
|
|
|
sg_fb = (BYTE*) mmap (0, FB_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
|
... | ... | @@ -147,7 +147,7 @@ If the color depth of the video mode is 8 (`COMMLCD_PSEUDO_RGB332`), |
|
|
|
|
|
In our sample, this method does nothing and returns zero:
|
|
|
|
|
|
```
|
|
|
```C
|
|
|
int __commlcd_drv_setclut (int firstcolor, int ncolors, GAL_Color *colors)
|
|
|
{
|
|
|
return 0;
|
... | ... | |