diff options
Diffstat (limited to 'board/mcc200/lcd.c')
| -rw-r--r-- | board/mcc200/lcd.c | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/board/mcc200/lcd.c b/board/mcc200/lcd.c index d8f754c4a..893f4b7cb 100644 --- a/board/mcc200/lcd.c +++ b/board/mcc200/lcd.c @@ -21,6 +21,7 @@  #include <common.h>  #include <lcd.h>  #include <mpc5xxx.h> +#include <malloc.h>  #ifdef CONFIG_LCD @@ -210,4 +211,23 @@ void show_progress (int size, int tot)  }  #endif + +int bmp_display(ulong addr, int x, int y) +{ +	int ret; +	bmp_image_t *bmp = (bmp_image_t *)addr; + +	if (!bmp) { +		printf("There is no valid bmp file at the given address\n"); +		return 1; +	} + +	ret = lcd_display_bitmap((ulong)bmp, x, y); + +	if ((unsigned long)bmp != addr) +		free(bmp); + +	return ret; +} +  #endif /* CONFIG_LCD */ |