fix: adjust layer1 dma2d config#397
Conversation
WalkthroughLCD display initialization modifications in the Trezor UI module. Framebuffer memory is zeroed after LTDC layer setup, and DMA2D idle detection logic is inverted from READY to BUSY state checking. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
core/embed/extmod/modtrezorui/mipi_lcd.c (1)
727-728: Uselcd_params.bbpinstead of hardcoded2.Hardcoded value breaks if pixel format changes.
- memset((void*)DISPLAY_MEMORY_BASE, 0, - lcd_params.hres * lcd_params.vres * 2); + memset((void*)DISPLAY_MEMORY_BASE, 0, + lcd_params.hres * lcd_params.vres * lcd_params.bbp);
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
core/embed/extmod/modtrezorui/mipi_lcd.c(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Gen check
- GitHub Check: Style check
- GitHub Check: Defs check
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.