Hello,
i am trying to setup my LPC1788 for using Multiple buffering, but so far I enable a second buffer, the screen shows nothing.
Here is my LCD_X_SHOWBUFFER case:
case LCD_X_SHOWBUFFER: {
LCD_X_SHOWBUFFER_INFO * p;
p = (LCD_X_SHOWBUFFER_INFO *)pData;
//
// Calculate address of the given buffer
//
BufferSize = (XSIZE * YSIZE * 16) / 8;
Addr = VRAM_ADDR_PHYS + BufferSize * p->Index;
//
// Make the given buffer visible
//
LPC_LCD->UPBASE = Addr;
//
// Send a confirmation that the buffer is visible now
//
GUI_MULTIBUF_Confirm(p->Index);
}
return 0;
I don´t understand, what I am doing wrong.
Can you please suggest how to do this.
Best regards,
marsal
i am trying to setup my LPC1788 for using Multiple buffering, but so far I enable a second buffer, the screen shows nothing.
Here is my LCD_X_SHOWBUFFER case:
case LCD_X_SHOWBUFFER: {
LCD_X_SHOWBUFFER_INFO * p;
p = (LCD_X_SHOWBUFFER_INFO *)pData;
//
// Calculate address of the given buffer
//
BufferSize = (XSIZE * YSIZE * 16) / 8;
Addr = VRAM_ADDR_PHYS + BufferSize * p->Index;
//
// Make the given buffer visible
//
LPC_LCD->UPBASE = Addr;
//
// Send a confirmation that the buffer is visible now
//
GUI_MULTIBUF_Confirm(p->Index);
}
return 0;
I don´t understand, what I am doing wrong.
Can you please suggest how to do this.
Best regards,
marsal