forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: display: elcdif: Modify interrupt enablement
The elcdif interrupt is enabled in the write function and disabled in the IRQ handler for each new frame update. Disabling the interrupt when no new frame needs to be sent gives the CPU the possibility to enter low-power mode. However, when the application's frame rate matches the LCD refresh rate, this adds additional latency. This commit provides a config to choose between following options: - Toggle the CUR_FRAME_DONE_IRQ_EN in the write function and in IRQ handler for each new frame when the power mangement is a concern. - Activate the CUR_FRAME_DONE_IRQ_EN once at the init function when low latency is required. Signed-off-by: Trung Hieu Le <[email protected]>
- Loading branch information
1 parent
024bd41
commit 2068976
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters