updated wait_ms(ms) to thread_sleep_for(ms) for Mbed OS 6
Diff: Drivers/BSP/STM32469I-Discovery/stm32469i_discovery_lcd.c
- Revision:
- 3:3cdfcc4f7c9d
- Parent:
- 2:123b894b49dd
- Child:
- 4:27609b3a44ed
--- a/Drivers/BSP/STM32469I-Discovery/stm32469i_discovery_lcd.c Tue May 16 10:50:26 2017 +0200 +++ b/Drivers/BSP/STM32469I-Discovery/stm32469i_discovery_lcd.c Wed Feb 28 13:17:15 2018 +0100 @@ -2,8 +2,6 @@ ****************************************************************************** * @file stm32469i_discovery_lcd.c * @author MCD Application Team - * @version V2.0.0 - * @date 27-January-2017 * @brief This file includes the driver for Liquid Crystal Display (LCD) module * mounted on STM32469I-Discovery evaluation board. ****************************************************************************** @@ -1051,19 +1049,16 @@ uint32_t InputColorMode = 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 = hltdc_eval.LayerCfg[ActiveLayer].FBStartAdress + (((BSP_LCD_GetXSize()*Ypos) + Xpos)*(4));