STM32746G-Discovery board drivers V1.0.0
Dependents: DISCO-F746NG_LCDTS_CC3000_NTP DISCO-F746NG_ROPE_WIFI F746_SpectralAnalysis_NoPhoto ecte433 ... more
Diff: Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_lcd.c
- Revision:
- 10:1050c589b2ad
- Parent:
- 8:56384bddaba5
--- a/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_lcd.c Thu Jul 06 16:58:50 2017 +0200 +++ b/Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_lcd.c Tue Nov 12 11:24:03 2019 +0100 @@ -2,8 +2,6 @@ ****************************************************************************** * @file stm32746g_discovery_lcd.c * @author MCD Application Team - * @version V2.0.0 - * @date 30-December-2016 * @brief This file includes the driver for Liquid Crystal Display (LCD) module * mounted on STM32746G-Discovery board. @verbatim @@ -68,6 +66,24 @@ ****************************************************************************** */ +/* Dependencies +- stm32746g_discovery.c +- stm32746g_discovery_sdram.c +- stm32f7xx_hal_ltdc.c +- stm32f7xx_hal_ltdc_ex.c +- stm32f7xx_hal_dma2d.c +- stm32f7xx_hal_rcc_ex.c +- stm32f7xx_hal_gpio.c +- stm32f7xx_hal_cortex.c +- rk043fn48h.h +- fonts.h +- font24.c +- font20.c +- font16.c +- font12.c +- font8.c" +EndDependencies */ + /* Includes ------------------------------------------------------------------*/ #include "stm32746g_discovery_lcd.h" #include "../../../Utilities/Fonts/fonts.h" @@ -1025,19 +1041,16 @@ uint32_t input_color_mode = 0; /* Get bitmap data address offset */ - index = *(__IO uint16_t *) (pbmp + 10); - index |= (*(__IO uint16_t *) (pbmp + 12)) << 16; - + index = pbmp[10] + (pbmp[11] << 8) + (pbmp[12] << 16) + (pbmp[13] << 24); + /* Read bitmap width */ - width = *(uint16_t *) (pbmp + 18); - width |= (*(uint16_t *) (pbmp + 20)) << 16; - + width = pbmp[18] + (pbmp[19] << 8) + (pbmp[20] << 16) + (pbmp[21] << 24); + /* Read bitmap height */ - height = *(uint16_t *) (pbmp + 22); - height |= (*(uint16_t *) (pbmp + 24)) << 16; - + height = pbmp[22] + (pbmp[23] << 8) + (pbmp[24] << 16) + (pbmp[25] << 24); + /* Read bit/pixel */ - bit_pixel = *(uint16_t *) (pbmp + 28); + bit_pixel = pbmp[28] + (pbmp[29] << 8); /* Set the address */ address = hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress + (((BSP_LCD_GetXSize()*Ypos) + Xpos)*(4));