16. G2d_m2m_pfc_it

16.1. Function description:

This demo shows how to trigger G2D CLUT transfer complete, watermark & transfer complete interrupt.

Convert the L8 to RGB888 output:

  • Enable global interrupt & register G2D interrupt.

  • Configure the G2D memory-to-memory with pixel format conversion mode.

  • Configure & load the G2D foreground CLUT, after the CLUT loading has been completed will triggger the CLUT transfer complete interrupt.

  • Enable the related interrupt, after the setted lines has been transformed and finish the transformation will trigger the watermark & transfer complete interrupt.

  • Configure the G2D foreground layer and start transfer.

  • Waiting trigger the related interrupt and enter interrupt service routine.

16.2. Test result:

If successfully trigger and enter interrupt service routine, then print pass, if not print fail.

16.3. IO connection:

None