Skip to main content
Jack li1
Associate III
Question

How do I pause GFX when The screen is off??

I use the DSI screen and securely stop GFX when I close the screen。

This topic has been closed for replies.

6 replies

eng23
Senior

Hi,

I suspend TouchGFX task in RTOS:

osThreadSuspend(defaultTaskHandle);

I don't know if it is the best way, but it works.

Jack li1
Jack li1Author
Associate III

I tried this method but it crashed

Martin KJELDSEN
Principal III
NVIC_DisableIRQ(LTDC_IRQn);

(For LTDC setup). This stops the "tick" and TouchGFX Engine will wait on a semaphore until the interrupt is enabled again.

Jack li1
Jack li1Author
Associate III

Using this method results in programs executing only OSWrappers::signalVSync();.Semaphore is not executed, resulting in modle: tick () not being executed

Martin KJELDSEN
Principal III

​Correct :) That's "stopping" touchgfx in my mind. You want something else? Go into low power mode?