есть структура
typedef struct {
TYPE_MEMORY type; // must be FLASH
const int * address; // bitmap image address
} BITMAP_FLASH;
есть функция
void PutImage(SHORT left, SHORT top, void * bitmap, BYTE stretch)
{
BITMAP_FLASH * flashAddress;
flashAddress = (((BITMAP_FLASH* ) bitmap)->address);
colorDepth = *(flashAddress+1);
...
}
IAR для ARM ругается
a value of type int const * cannot be assigned to an entry ot type BITMAP_FLASH.