Mercurial > public > ostc4
comparison Discovery/Src/gfx_engine.c @ 885:8d3f3a635397 Evo_2_23
Replaced global hardwareDisplay with unit access:
The previous global hardwaredisplay, which indicated the display version, is stored in scope of ostc.c with interface function access.
author | Ideenmodellierer |
---|---|
date | Sun, 01 Sep 2024 21:35:50 +0200 |
parents | 940f8e132638 |
children |
comparison
equal
deleted
inserted
replaced
884:940f8e132638 | 885:8d3f3a635397 |
---|---|
3390 return result; | 3390 return result; |
3391 } | 3391 } |
3392 | 3392 |
3393 void GFX_LTDC_Init(void) | 3393 void GFX_LTDC_Init(void) |
3394 { | 3394 { |
3395 if (hardwareDisplay == 1) | 3395 if (isNewDisplay()) |
3396 { | 3396 { |
3397 GFX_LTDC_Init_display1(); | 3397 GFX_LTDC_Init_display1(); |
3398 } | 3398 } |
3399 else | 3399 else |
3400 { | 3400 { |
3401 GFX_LTDC_Init_display0(); | 3401 GFX_LTDC_Init_display0(); |
3402 } | 3402 } |
3403 } | 3403 } |
3404 | 3404 |
3405 void GFX_LTDC_Init_display0(void) | 3405 void GFX_LTDC_Init_display0(void) |
3406 { | 3406 { |
3407 /* Timing configuration */ | 3407 /* Timing configuration */ |