Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drv: ft8xx: new coprocessor commands #82376

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hubertmis
Copy link
Member

Implement more co-processor commands in the FT8xx display driver. The list of the new implemented commands consists of:

  • CMD_FGCOLOR
  • CMD_BGCOLOR
  • CMD_SLIDER
  • CMD_TOGGLE
  • CMD_TRACK

The ft8xx driver reported a compile-time error caused by an invalid
logging configuration of this module.

This patch intorduces FT800-specific logging configuration in Kconfig
that is used by the driver. This way the error is fixed.

Signed-off-by: Hubert Miś <[email protected]>
@hubertmis hubertmis force-pushed the pr/ft8xx-update branch 2 times, most recently from c69adb6 to 56cab5d Compare December 1, 2024 10:32
Implement more co-processor commands in the FT8xx display driver.
The list of the new implemented commands consists of:

* CMD_FGCOLOR
* CMD_BGCOLOR
* CMD_SLIDER
* CMD_TOGGLE
* CMD_TRACK

Signed-off-by: Hubert Miś <[email protected]>
@@ -73,6 +78,183 @@ void ft8xx_copro_cmd_swap(void)
ft8xx_copro_cmd(CMD_SWAP);
}

void ft8xx_copro_cmd_fgcolor(uint32_t c)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is c for color ? would use the full term :)

const uint16_t cmd_size = sizeof(CMD_FGCOLOR) +
sizeof(c);

while (ram_cmd_freespace() < cmd_size) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this function a blocking call? Probably it should be refelected in documentation as well :) same goes for other functions as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants