libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the STM32F4xx LCD TFT Display Controller More...
Modules | |
LTDC Layer Number | |
Functions | |
static void | ltdc_ctrl_enable (uint32_t ctrl_flags) |
simple helper macros More... | |
static void | ltdc_ctrl_disable (uint32_t ctrl_flags) |
static void | ltdc_reload (uint32_t reload_flags) |
static void | ltdc_set_background_color (uint8_t r, uint8_t g, uint8_t b) |
static void | ltdc_get_current_position (uint16_t *x, uint16_t *y) |
static uint16_t | ltdc_get_current_position_x (void) |
static uint16_t | ltdc_get_current_position_y (void) |
static uint32_t | ltdc_get_display_status (uint32_t status_flags) |
static void | ltdc_layer_ctrl_enable (uint32_t layer, uint32_t ctrl_flags) |
static void | ltdc_layer_ctrl_disable (uint32_t layer, uint32_t ctrl_flags) |
static void | ltdc_set_color_key (uint32_t layer, uint8_t r, uint8_t g, uint8_t b) |
static void | ltdc_set_pixel_format (uint32_t layer, uint32_t format) |
static void | ltdc_set_constant_alpha (uint32_t layer, uint8_t alpha) |
static void | ltdc_set_default_colors (uint32_t layer, uint8_t a, uint8_t r, uint8_t g, uint8_t b) |
static void | ltdc_set_blending_factors (uint32_t layer, uint8_t bf1, uint8_t bf2) |
static void | ltdc_set_fbuffer_address (uint32_t layer, uint32_t address) |
static uint32_t | ltdc_get_fbuffer_address (uint32_t layer) |
static void | ltdc_set_fb_line_length (uint32_t layer, uint16_t len, uint16_t pitch) |
static void | ltdc_set_fb_line_count (uint32_t layer, uint16_t linecount) |
void | ltdc_set_tft_sync_timings (uint16_t sync_width, uint16_t sync_height, uint16_t h_back_porch, uint16_t v_back_porch, uint16_t active_width, uint16_t active_height, uint16_t h_front_porch, uint16_t v_front_porch) |
more complicated helper functions More... | |
void | ltdc_setup_windowing (uint8_t layer_number, uint16_t h_back_porch, uint16_t v_back_porch, uint16_t h_sync, uint16_t v_sync, uint16_t width, uint16_t height) |
LTDC Windowing Setup. More... | |
static bool | LTDC_SRCR_IS_RELOADING (void) |
Helper function to wait for SRCR reload to complete or so. More... | |
static uint32_t | ltdc_get_rgb888_from_rgb565 (uint16_t rgb565) |
color conversion helper function (simulate the ltdc color conversion) More... | |
Defined Constants and Types for the STM32F4xx LCD TFT Display Controller
This library supports the LCD TFT display controller (LTDC) in the STM32F4xx and STM32F7xx series of ARM Cortex Microcontrollers by ST Microelectronics.
LGPL License Terms libopencm3 License
#define LIBOPENCM3_STM32_COMMON_LTDC_COMMON_F47_H_ |
Definition at line 38 of file ltdc_common_f47.h.
Definition at line 51 of file ltdc_common_f47.h.
#define LTDC_AWCR_AAH_MASK 0x7ff |
Definition at line 150 of file ltdc_common_f47.h.
#define LTDC_AWCR_AAH_SHIFT 0 |
Definition at line 149 of file ltdc_common_f47.h.
#define LTDC_AWCR_AAW_MASK 0xfff |
Definition at line 146 of file ltdc_common_f47.h.
#define LTDC_AWCR_AAW_SHIFT 16 |
Definition at line 145 of file ltdc_common_f47.h.
Definition at line 55 of file ltdc_common_f47.h.
Definition at line 50 of file ltdc_common_f47.h.
#define LTDC_BPCR_AHBP_MASK 0xfff |
Definition at line 136 of file ltdc_common_f47.h.
#define LTDC_BPCR_AHBP_SHIFT 16 |
Definition at line 135 of file ltdc_common_f47.h.
#define LTDC_BPCR_AVBP_MASK 0x7FF |
Definition at line 140 of file ltdc_common_f47.h.
#define LTDC_BPCR_AVBP_SHIFT 0 |
Definition at line 139 of file ltdc_common_f47.h.
Definition at line 61 of file ltdc_common_f47.h.
#define LTDC_CDSR_HDES (1<<1) |
Definition at line 258 of file ltdc_common_f47.h.
#define LTDC_CDSR_HSYNCS (1<<3) |
Definition at line 260 of file ltdc_common_f47.h.
#define LTDC_CDSR_VDES (1<<0) |
Definition at line 257 of file ltdc_common_f47.h.
#define LTDC_CDSR_VSYNCS (1<<2) |
Definition at line 259 of file ltdc_common_f47.h.
Definition at line 60 of file ltdc_common_f47.h.
#define LTDC_CPSR_CXPOS_MASK 0xffff |
Definition at line 250 of file ltdc_common_f47.h.
#define LTDC_CPSR_CXPOS_SHIFT 16 |
Definition at line 249 of file ltdc_common_f47.h.
#define LTDC_CPSR_CYPOS_MASK 0xffff |
Definition at line 254 of file ltdc_common_f47.h.
#define LTDC_CPSR_CYPOS_SHIFT 0 |
Definition at line 253 of file ltdc_common_f47.h.
Definition at line 53 of file ltdc_common_f47.h.
#define LTDC_GCR_DEPOL (1 << 29) |
Definition at line 181 of file ltdc_common_f47.h.
#define LTDC_GCR_DEPOL_ACTIVE_HIGH (1<<29) |
Definition at line 170 of file ltdc_common_f47.h.
#define LTDC_GCR_DEPOL_ACTIVE_LOW (0<<29) |
Definition at line 169 of file ltdc_common_f47.h.
#define LTDC_GCR_DITHER (1 << 16) |
Definition at line 183 of file ltdc_common_f47.h.
#define LTDC_GCR_DITHER_ENABLE (1<<16) |
Definition at line 164 of file ltdc_common_f47.h.
#define LTDC_GCR_HSPOL (1 << 31) |
Definition at line 179 of file ltdc_common_f47.h.
#define LTDC_GCR_HSPOL_ACTIVE_HIGH (1<<31) |
Definition at line 176 of file ltdc_common_f47.h.
#define LTDC_GCR_HSPOL_ACTIVE_LOW (0<<31) |
Definition at line 175 of file ltdc_common_f47.h.
#define LTDC_GCR_LTDC_ENABLE (1<<0) |
Definition at line 163 of file ltdc_common_f47.h.
#define LTDC_GCR_LTDCEN (1 << 0) |
Definition at line 184 of file ltdc_common_f47.h.
#define LTDC_GCR_PCPOL (1 << 28) |
Definition at line 182 of file ltdc_common_f47.h.
#define LTDC_GCR_PCPOL_ACTIVE_HIGH (1<<28) |
Definition at line 167 of file ltdc_common_f47.h.
#define LTDC_GCR_PCPOL_ACTIVE_LOW (0<<28) |
Definition at line 166 of file ltdc_common_f47.h.
#define LTDC_GCR_VSPOL (1 << 30) |
Definition at line 180 of file ltdc_common_f47.h.
#define LTDC_GCR_VSPOL_ACTIVE_HIGH (1<<30) |
Definition at line 173 of file ltdc_common_f47.h.
#define LTDC_GCR_VSPOL_ACTIVE_LOW (0<<30) |
Definition at line 172 of file ltdc_common_f47.h.
Definition at line 58 of file ltdc_common_f47.h.
#define LTDC_ICR_CFUIF (1 << 1) |
Definition at line 235 of file ltdc_common_f47.h.
#define LTDC_ICR_CLIF (1 << 0) |
Definition at line 238 of file ltdc_common_f47.h.
#define LTDC_ICR_CRRIF (1 << 3) |
Definition at line 229 of file ltdc_common_f47.h.
#define LTDC_ICR_CTERRIF (1 << 2) |
Definition at line 232 of file ltdc_common_f47.h.
Definition at line 56 of file ltdc_common_f47.h.
#define LTDC_IER_FUIE (1 << 1) |
Definition at line 207 of file ltdc_common_f47.h.
#define LTDC_IER_LIE (1 << 0) |
Definition at line 210 of file ltdc_common_f47.h.
#define LTDC_IER_RRIE (1 << 3) |
Definition at line 201 of file ltdc_common_f47.h.
#define LTDC_IER_TERRIE (1 << 2) |
Definition at line 204 of file ltdc_common_f47.h.
Definition at line 57 of file ltdc_common_f47.h.
#define LTDC_ISR_FUIF (1 << 1) |
Definition at line 221 of file ltdc_common_f47.h.
#define LTDC_ISR_LIF (1 << 0) |
Definition at line 224 of file ltdc_common_f47.h.
#define LTDC_ISR_RRIF (1 << 3) |
Definition at line 215 of file ltdc_common_f47.h.
#define LTDC_ISR_TERRIF (1 << 2) |
Definition at line 218 of file ltdc_common_f47.h.
#define LTDC_L1BFCR LTDC_LxBFCR(LTDC_LAYER_1) |
Definition at line 93 of file ltdc_common_f47.h.
#define LTDC_L1CACR LTDC_LxCACR(LTDC_LAYER_1) |
Definition at line 85 of file ltdc_common_f47.h.
#define LTDC_L1CFBAR LTDC_LxCFBAR(LTDC_LAYER_1) |
Definition at line 97 of file ltdc_common_f47.h.
#define LTDC_L1CFBLNR LTDC_LxCFBLNR(LTDC_LAYER_1) |
Definition at line 105 of file ltdc_common_f47.h.
#define LTDC_L1CFBLR LTDC_LxCFBLR(LTDC_LAYER_1) |
Definition at line 101 of file ltdc_common_f47.h.
#define LTDC_L1CKCR LTDC_LxCKCR(LTDC_LAYER_1) |
Definition at line 77 of file ltdc_common_f47.h.
#define LTDC_L1CLUTWR LTDC_LxCLUTWR(LTDC_LAYER_1) |
Definition at line 109 of file ltdc_common_f47.h.
#define LTDC_L1CR LTDC_LxCR(LTDC_LAYER_1) |
Definition at line 65 of file ltdc_common_f47.h.
#define LTDC_L1DCCR LTDC_LxDCCR(LTDC_LAYER_1) |
Definition at line 89 of file ltdc_common_f47.h.
#define LTDC_L1PFCR LTDC_LxPFCR(LTDC_LAYER_1) |
Definition at line 81 of file ltdc_common_f47.h.
#define LTDC_L1WHPCR LTDC_LxWHPCR(LTDC_LAYER_1) |
Definition at line 69 of file ltdc_common_f47.h.
#define LTDC_L1WVPCR LTDC_LxWVPCR(LTDC_LAYER_1) |
Definition at line 73 of file ltdc_common_f47.h.
#define LTDC_L2BFCR LTDC_LxBFCR(LTDC_LAYER_2) |
Definition at line 94 of file ltdc_common_f47.h.
#define LTDC_L2CACR LTDC_LxCACR(LTDC_LAYER_2) |
Definition at line 86 of file ltdc_common_f47.h.
#define LTDC_L2CFBAR LTDC_LxCFBAR(LTDC_LAYER_2) |
Definition at line 98 of file ltdc_common_f47.h.
#define LTDC_L2CFBLNR LTDC_LxCFBLNR(LTDC_LAYER_2) |
Definition at line 106 of file ltdc_common_f47.h.
#define LTDC_L2CFBLR LTDC_LxCFBLR(LTDC_LAYER_2) |
Definition at line 102 of file ltdc_common_f47.h.
#define LTDC_L2CKCR LTDC_LxCKCR(LTDC_LAYER_2) |
Definition at line 78 of file ltdc_common_f47.h.
#define LTDC_L2CLUTWR LTDC_LxCLUTWR(LTDC_LAYER_2) |
Definition at line 110 of file ltdc_common_f47.h.
#define LTDC_L2CR LTDC_LxCR(LTDC_LAYER_2) |
Definition at line 66 of file ltdc_common_f47.h.
#define LTDC_L2DCCR LTDC_LxDCCR(LTDC_LAYER_2) |
Definition at line 90 of file ltdc_common_f47.h.
#define LTDC_L2PFCR LTDC_LxPFCR(LTDC_LAYER_2) |
Definition at line 82 of file ltdc_common_f47.h.
#define LTDC_L2WHPCR LTDC_LxWHPCR(LTDC_LAYER_2) |
Definition at line 70 of file ltdc_common_f47.h.
#define LTDC_L2WVPCR LTDC_LxWVPCR(LTDC_LAYER_2) |
Definition at line 74 of file ltdc_common_f47.h.
Definition at line 59 of file ltdc_common_f47.h.
#define LTDC_LIPCR_LIPOS_MASK 0x7ff |
Definition at line 244 of file ltdc_common_f47.h.
#define LTDC_LIPCR_LIPOS_SHIFT 0 |
Definition at line 243 of file ltdc_common_f47.h.
Definition at line 92 of file ltdc_common_f47.h.
#define LTDC_LxBFCR_BF1_CONST_ALPHA (0b100) |
Definition at line 336 of file ltdc_common_f47.h.
#define LTDC_LxBFCR_BF1_PIXEL_ALPHA_x_CONST_ALPHA (0b110) |
Definition at line 337 of file ltdc_common_f47.h.
#define LTDC_LxBFCR_BF2_CONST_ALPHA (0b101) |
Definition at line 339 of file ltdc_common_f47.h.
#define LTDC_LxBFCR_BF2_PIXEL_ALPHA_x_CONST_ALPHA (0b111) |
Definition at line 340 of file ltdc_common_f47.h.
Definition at line 84 of file ltdc_common_f47.h.
#define LTDC_LxCACR_CONSTA_MASK 0xff |
Definition at line 315 of file ltdc_common_f47.h.
#define LTDC_LxCACR_CONSTA_SHIFT 0 |
Definition at line 314 of file ltdc_common_f47.h.
Definition at line 96 of file ltdc_common_f47.h.
#define LTDC_LxCFBAR_CFBAR_MASK 0xffffffff |
Definition at line 346 of file ltdc_common_f47.h.
#define LTDC_LxCFBAR_CFBAR_SHIFT 0 |
Definition at line 345 of file ltdc_common_f47.h.
Definition at line 104 of file ltdc_common_f47.h.
#define LTDC_LxCFBLNR_CFBLNBR_MASK 0x3ff |
Definition at line 362 of file ltdc_common_f47.h.
#define LTDC_LxCFBLNR_CFBLNBR_SHIFT 0 |
Definition at line 361 of file ltdc_common_f47.h.
Definition at line 100 of file ltdc_common_f47.h.
#define LTDC_LxCFBLR_CFBLL_MASK 0x1fff |
Definition at line 356 of file ltdc_common_f47.h.
#define LTDC_LxCFBLR_CFBLL_SHIFT 0 |
Definition at line 355 of file ltdc_common_f47.h.
#define LTDC_LxCFBLR_CFBP_MASK 0x1fff |
Definition at line 352 of file ltdc_common_f47.h.
#define LTDC_LxCFBLR_CFBP_SHIFT 16 |
Definition at line 351 of file ltdc_common_f47.h.
Definition at line 76 of file ltdc_common_f47.h.
#define LTDC_LxCKCR_CKBLUE_MASK 0xff |
Definition at line 299 of file ltdc_common_f47.h.
#define LTDC_LxCKCR_CKBLUE_SHIFT 16 |
Definition at line 298 of file ltdc_common_f47.h.
#define LTDC_LxCKCR_CKGREEN_MASK 0xff |
Definition at line 295 of file ltdc_common_f47.h.
#define LTDC_LxCKCR_CKGREEN_SHIFT 16 |
Definition at line 294 of file ltdc_common_f47.h.
#define LTDC_LxCKCR_CKRED_MASK 0xff |
Definition at line 291 of file ltdc_common_f47.h.
#define LTDC_LxCKCR_CKRED_SHIFT 16 |
Definition at line 290 of file ltdc_common_f47.h.
Definition at line 108 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_BLUE_MASK 0xff |
Definition at line 380 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_BLUE_SHIFT 0 |
Definition at line 379 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_CLUTADD_MASK 0xff |
Definition at line 368 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_CLUTADD_SHIFT 24 |
Definition at line 367 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_GREEN_MASK 0xff |
Definition at line 376 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_GREEN_SHIFT 8 |
Definition at line 375 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_RED_MASK 0xff |
Definition at line 372 of file ltdc_common_f47.h.
#define LTDC_LxCLUTWR_RED_SHIFT 16 |
Definition at line 371 of file ltdc_common_f47.h.
Definition at line 64 of file ltdc_common_f47.h.
#define LTDC_LxCR_COLKEY_ENABLE (1<<1) |
Definition at line 264 of file ltdc_common_f47.h.
#define LTDC_LxCR_COLTAB_ENABLE (1<<4) |
Definition at line 265 of file ltdc_common_f47.h.
#define LTDC_LxCR_LAYER_ENABLE (1<<0) |
Definition at line 263 of file ltdc_common_f47.h.
Definition at line 88 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCALPHA_MASK 1 |
Definition at line 321 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCALPHA_SHIFT 24 |
Definition at line 320 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCBLUE_MASK 1 |
Definition at line 333 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCBLUE_SHIFT 0 |
Definition at line 332 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCGREEN_MASK 1 |
Definition at line 329 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCGREEN_SHIFT 8 |
Definition at line 328 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCRED_MASK 1 |
Definition at line 325 of file ltdc_common_f47.h.
#define LTDC_LxDCCR_DCRED_SHIFT 16 |
Definition at line 324 of file ltdc_common_f47.h.
Definition at line 80 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_AL44 (0b110) |
Definition at line 308 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_AL88 (0b111) |
Definition at line 309 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_ARGB1555 (0b011) |
Definition at line 305 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_ARGB4444 (0b100) |
Definition at line 306 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_ARGB8888 (0b000) |
Definition at line 302 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_L8 (0b101) |
Definition at line 307 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_RGB565 (0b010) |
Definition at line 304 of file ltdc_common_f47.h.
#define LTDC_LxPFCR_RGB888 (0b001) |
Definition at line 303 of file ltdc_common_f47.h.
Definition at line 68 of file ltdc_common_f47.h.
#define LTDC_LxWHPCR_WHSPPOS_MASK 0xfff |
Definition at line 271 of file ltdc_common_f47.h.
#define LTDC_LxWHPCR_WHSPPOS_SHIFT 16 |
Definition at line 270 of file ltdc_common_f47.h.
#define LTDC_LxWHPCR_WHSTPOS_MASK 0xfff |
Definition at line 275 of file ltdc_common_f47.h.
#define LTDC_LxWHPCR_WHSTPOS_SHIFT 0 |
Definition at line 274 of file ltdc_common_f47.h.
Definition at line 72 of file ltdc_common_f47.h.
#define LTDC_LxWVPCR_WVSPPOS_MASK 0x7ff |
Definition at line 281 of file ltdc_common_f47.h.
#define LTDC_LxWVPCR_WVSPPOS_SHIFT 16 |
Definition at line 280 of file ltdc_common_f47.h.
#define LTDC_LxWVPCR_WVSTPOS_MASK 0x7ff |
Definition at line 285 of file ltdc_common_f47.h.
#define LTDC_LxWVPCR_WVSTPOS_SHIFT 0 |
Definition at line 284 of file ltdc_common_f47.h.
Definition at line 54 of file ltdc_common_f47.h.
#define LTDC_SRCR_IMR (1 << 0) |
Definition at line 192 of file ltdc_common_f47.h.
#define LTDC_SRCR_RELOAD_IMR (1<<0) |
Definition at line 195 of file ltdc_common_f47.h.
#define LTDC_SRCR_RELOAD_VBR (1<<1) |
Definition at line 196 of file ltdc_common_f47.h.
#define LTDC_SRCR_VBR (1 << 1) |
Definition at line 189 of file ltdc_common_f47.h.
LTDC.
Definition at line 49 of file ltdc_common_f47.h.
#define LTDC_SSCR_HSW_MASK 0xfff |
Definition at line 126 of file ltdc_common_f47.h.
#define LTDC_SSCR_HSW_SHIFT 16 |
Definition at line 125 of file ltdc_common_f47.h.
#define LTDC_SSCR_VSH_MASK 0x7ff |
Definition at line 130 of file ltdc_common_f47.h.
#define LTDC_SSCR_VSH_SHIFT 0 |
Definition at line 129 of file ltdc_common_f47.h.
Definition at line 52 of file ltdc_common_f47.h.
#define LTDC_TWCR_TOTALH_MASK 0x7ff |
Definition at line 160 of file ltdc_common_f47.h.
#define LTDC_TWCR_TOTALH_SHIFT 0 |
Definition at line 159 of file ltdc_common_f47.h.
#define LTDC_TWCR_TOTALW_MASK 0xfff |
Definition at line 156 of file ltdc_common_f47.h.
#define LTDC_TWCR_TOTALW_SHIFT 16 |
Definition at line 155 of file ltdc_common_f47.h.
|
inlinestatic |
Definition at line 392 of file ltdc_common_f47.h.
References LTDC_GCR.
|
inlinestatic |
|
inlinestatic |
Definition at line 409 of file ltdc_common_f47.h.
References LTDC_CPSR.
|
inlinestatic |
Definition at line 416 of file ltdc_common_f47.h.
References LTDC_CPSR.
|
inlinestatic |
Definition at line 421 of file ltdc_common_f47.h.
References LTDC_CPSR.
|
inlinestatic |
Definition at line 426 of file ltdc_common_f47.h.
References LTDC_CDSR.
|
inlinestatic |
Definition at line 481 of file ltdc_common_f47.h.
References LTDC_LxCFBAR.
|
inlinestatic |
color conversion helper function (simulate the ltdc color conversion)
Definition at line 530 of file ltdc_common_f47.h.
|
inlinestatic |
Definition at line 437 of file ltdc_common_f47.h.
References LTDC_LxCR.
|
inlinestatic |
Definition at line 432 of file ltdc_common_f47.h.
References LTDC_LxCR.
|
inlinestatic |
Definition at line 397 of file ltdc_common_f47.h.
References LTDC_SRCR.
|
inlinestatic |
Definition at line 402 of file ltdc_common_f47.h.
References LTDC_BCCR.
|
inlinestatic |
Definition at line 470 of file ltdc_common_f47.h.
References LTDC_LxBFCR.
|
inlinestatic |
Definition at line 442 of file ltdc_common_f47.h.
References LTDC_LxCKCR.
|
inlinestatic |
Definition at line 455 of file ltdc_common_f47.h.
References LTDC_LxCACR.
|
inlinestatic |
Definition at line 460 of file ltdc_common_f47.h.
References LTDC_LxDCCR.
|
inlinestatic |
Definition at line 492 of file ltdc_common_f47.h.
References LTDC_LxCFBLNR.
|
inlinestatic |
Definition at line 486 of file ltdc_common_f47.h.
References LTDC_LxCFBLR.
|
inlinestatic |
Definition at line 476 of file ltdc_common_f47.h.
References LTDC_LxCFBAR.
|
inlinestatic |
Definition at line 450 of file ltdc_common_f47.h.
References LTDC_LxPFCR.
void ltdc_set_tft_sync_timings | ( | uint16_t | sync_width, |
uint16_t | sync_height, | ||
uint16_t | h_back_porch, | ||
uint16_t | v_back_porch, | ||
uint16_t | active_width, | ||
uint16_t | active_height, | ||
uint16_t | h_front_porch, | ||
uint16_t | v_front_porch | ||
) |
void ltdc_setup_windowing | ( | uint8_t | layer_number, |
uint16_t | h_back_porch, | ||
uint16_t | v_back_porch, | ||
uint16_t | h_sync, | ||
uint16_t | v_sync, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
LTDC Windowing Setup.
[in] | layer_number | unsigned int8. LTDC Layer Number |
[in] | h_back_porch | unsigned int16. Horizontal Back Porch |
[in] | v_back_porch | unsigned int16. Vertical Back Porch |
[in] | h_sync | unsigned int16. Horizontal Sync |
[in] | v_sync | unsigned int16. Vertical Sync |
[in] | width | unsigned int16. Width of the screen (e.g. LCD is 320x240, width would be 320) |
[in] | height | unsigned int16. Height of the screen (e.g. LCD is 320x240, height would be 240) |
Definition at line 82 of file ltdc_common_f47.c.
References LTDC_LxWHPCR, LTDC_LxWHPCR_WHSPPOS_SHIFT, LTDC_LxWHPCR_WHSTPOS_SHIFT, LTDC_LxWVPCR, LTDC_LxWVPCR_WVSPPOS_SHIFT, and LTDC_LxWVPCR_WVSTPOS_SHIFT.
|
inlinestatic |
Helper function to wait for SRCR reload to complete or so.
Definition at line 519 of file ltdc_common_f47.h.
References LTDC_SRCR, LTDC_SRCR_RELOAD_IMR, and LTDC_SRCR_RELOAD_VBR.