@@ -230,7 +230,7 @@ static void handleKeyInput()
230
230
#endif
231
231
}
232
232
233
- #define DEBUG_CM7_VIDEO
233
+ // #define DEBUG_CM7_VIDEO
234
234
235
235
static void DMA2D_CopyBuffer (uint32_t *pSrc, uint32_t *pDst)
236
236
{
@@ -242,21 +242,21 @@ static void DMA2D_CopyBuffer(uint32_t *pSrc, uint32_t *pDst)
242
242
243
243
destination = (uint32_t )pDst; // + ((yPos * stm32_getXSize()) + xPos) * 4;
244
244
245
- HAL_DMA2D_PollForTransfer (&DMA2D_Handle, 200 ); /* wait for the previous DMA2D transfer to ends */
245
+ HAL_DMA2D_PollForTransfer (&DMA2D_Handle, 100 ); /* wait for the previous DMA2D transfer to ends */
246
246
/* copy the new decoded frame to the LCD Frame buffer*/
247
247
HAL_DMA2D_Start (&DMA2D_Handle, (uint32_t )pSrc, destination, DOOMGENERIC_RESX, DOOMGENERIC_RESY);
248
248
#if defined(CORE_CM7) && !defined(DEBUG_CM7_VIDEO)
249
- HAL_DMA2D_PollForTransfer (&DMA2D_Handle, 200 ); /* wait for the previous DMA2D transfer to ends */
249
+ HAL_DMA2D_PollForTransfer (&DMA2D_Handle, 100 ); /* wait for the previous DMA2D transfer to ends */
250
250
#endif
251
251
}
252
252
253
253
void DG_DrawFrame ()
254
254
{
255
255
uint32_t fb = getNextFrameBuffer ();
256
256
#ifdef CORE_CM7
257
- SCB_CleanInvalidateDCache ();
258
- SCB_InvalidateICache ();
259
- // SCB_InvalidateDCache_by_Addr((uint32_t *)fb, DOOMGENERIC_RESX * DOOMGENERIC_RESY * 4);
257
+ // SCB_CleanInvalidateDCache();
258
+ // SCB_InvalidateICache();
259
+ SCB_InvalidateDCache_by_Addr ((uint32_t *)fb, DOOMGENERIC_RESX * DOOMGENERIC_RESY * 4 );
260
260
#endif
261
261
262
262
DMA2D_CopyBuffer ((uint32_t *)DG_ScreenBuffer, (uint32_t *)fb);
0 commit comments