Patched for Audio example - Add status check when DFSDM's filter and channel de-init.
Dependents: DISCO_F413ZH-AUDIO-demo
The base repository is https://os.mbed.com/teams/ST/code/BSP_DISCO_F413ZH/. I've just added workaround patch for Audio-in demo on DISCO_F413ZH board(Microphone U16, U17)
Diff: Drivers/BSP/STM32F413H-Discovery/stm32f413h_discovery_lcd.c
- Revision:
- 3:42b354f5069c
- Parent:
- 1:a3f6b8b5a6bf
--- a/Drivers/BSP/STM32F413H-Discovery/stm32f413h_discovery_lcd.c Tue May 23 11:03:57 2017 +0200 +++ b/Drivers/BSP/STM32F413H-Discovery/stm32f413h_discovery_lcd.c Wed Feb 28 14:35:04 2018 +0100 @@ -2,8 +2,6 @@ ****************************************************************************** * @file stm32f413h_discovery_lcd.c * @author MCD Application Team - * @version V1.0.0 - * @date 27-January-2017 * @brief This file includes the driver for Liquid Crystal Display (LCD) module * mounted on STM32F413H-DISCOVERY board. ****************************************************************************** @@ -688,12 +686,10 @@ uint32_t width = 0; /* 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); SetDisplayWindow(Xpos, Ypos, width, height);