diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-07-11 16:13:05 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-07-11 16:13:05 +1000 |
commit | 38b0cdd5e8d0783489fae0f23e2b748d787c7b4c (patch) | |
tree | 21de9280dd6133f18899a297f747ef9614bb033c /drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h | |
parent | daab60de98bcb5b97d7ae75e0da5d2646cadbba0 (diff) | |
download | uGFX-38b0cdd5e8d0783489fae0f23e2b748d787c7b4c.tar.gz uGFX-38b0cdd5e8d0783489fae0f23e2b748d787c7b4c.tar.bz2 uGFX-38b0cdd5e8d0783489fae0f23e2b748d787c7b4c.zip |
Working STM32F746G-Discovery board + example for raw32
Working STM32LTDC video driver
Diffstat (limited to 'drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h')
-rw-r--r-- | drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h b/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h index 7f785e18..4ea3e03d 100644 --- a/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h +++ b/drivers/gdisp/STM32LTDC/board_STM32LTDC_template.h @@ -9,7 +9,7 @@ #define _GDISP_LLD_BOARD_H static const ltdcConfig driverCfg = { - 480, 270, // Width, Height (pixels) + 480, 272, // Width, Height (pixels) 41, 10, // Horizontal, Vertical sync (pixels) 13, 2, // Horizontal, Vertical back porch (pixels) 32, 2, // Horizontal, Vertical front porch (pixels) @@ -17,12 +17,12 @@ static const ltdcConfig driverCfg = { 0x000000, // Clear color (RGB888) { // Background layer config - (LLDCOLOR_TYPE *)SDRAM_BANK_ADDR, // Frame buffer address - 480, 270, // Width, Height (pixels) + (LLDCOLOR_TYPE *)SDRAM_DEVICE_ADDR, // Frame buffer address + 480, 272, // Width, Height (pixels) 480 * LTDC_PIXELBYTES, // Line pitch (bytes) LTDC_PIXELFORMAT, // Pixel format 0, 0, // Start pixel position (x, y) - 480, 270, // Size of virtual layer (cx, cy) + 480, 272, // Size of virtual layer (cx, cy) LTDC_COLOR_FUCHSIA, // Default color (ARGB8888) 0x980088, // Color key (RGB888) LTDC_BLEND_FIX1_FIX2, // Blending factors |