Mercurial > public > ostc4
diff Discovery/Inc/ostc.h @ 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 | f7318457df4d |
children |
line wrap: on
line diff
--- a/Discovery/Inc/ostc.h Sun Sep 01 20:31:01 2024 +0200 +++ b/Discovery/Inc/ostc.h Sun Sep 01 21:35:50 2024 +0200 @@ -57,6 +57,9 @@ #define SDRAM_MODEREG_WRITEBURST_MODE_PROGRAMMED ((uint16_t)0x0000) #define SDRAM_MODEREG_WRITEBURST_MODE_SINGLE ((uint16_t)0x0200) +#define DISPLAY_VERSION_LCD (0u) +#define DISPLAY_VERSION_NEW (1u) + /* Exported variables --------------------------------------------------------*/ extern SPI_HandleTypeDef hspiDisplay; @@ -98,6 +101,8 @@ void MX_TestPin_High(void); void MX_TestPin_Low(void); -uint8_t hardwareDisplay; //< either OSTC4 LCD (=0) or new Screen (=1) +void SetDisplayVersion(uint8_t version); +uint8_t isNewDisplay(void); + #endif // OSTC_H