mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_ltdc.c
- Revision:
- 106:ced8cbb51063
- Parent:
- 87:085cde657901
- Child:
- 226:b062af740e40
--- a/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_ltdc.c Mon Feb 24 10:30:08 2014 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_ltdc.c Wed Feb 26 09:45:12 2014 +0000 @@ -2,8 +2,8 @@ ****************************************************************************** * @file stm32f4xx_hal_ltdc.c * @author MCD Application Team - * @version V1.0.0RC2 - * @date 04-February-2014 + * @version V1.0.0 + * @date 18-February-2014 * @brief LTDC HAL module driver. * This file provides firmware functions to manage the following * functionalities of the LTDC peripheral: @@ -60,7 +60,7 @@ (+) __HAL_LTDC_CLEAR_FLAG: Clears the LTDC pending flags. (+) __HAL_LTDC_ENABLE_IT: Enables the specified LTDC interrupts. (+) __HAL_LTDC_DISABLE_IT: Disables the specified LTDC interrupts. - (+) __HAL_LTDC_IT_STATUS: Checks whether the specified LTDC interrupt has occurred or not. + (+) __HAL_LTDC_GET_IT_SOURCE: Checks whether the specified LTDC interrupt has occurred or not. [..] (@) You can refer to the LTDC HAL driver header file for more useful macros @@ -247,6 +247,9 @@ /* Initialize the LTDC state*/ hltdc->State = HAL_LTDC_STATE_RESET; + /* Release Lock */ + __HAL_UNLOCK(hltdc); + return HAL_OK; } @@ -304,7 +307,7 @@ /* Transfer Error Interrupt management ***************************************/ if(__HAL_LTDC_GET_FLAG(hltdc, LTDC_FLAG_TE) != RESET) { - if(__HAL_LTDC_IT_STATUS(hltdc, LTDC_IT_TE) != RESET) + if(__HAL_LTDC_GET_IT_SOURCE(hltdc, LTDC_IT_TE) != RESET) { /* Disable the transfer Error interrupt */ __HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_TE); @@ -328,7 +331,7 @@ /* FIFO underrun Interrupt management ***************************************/ if(__HAL_LTDC_GET_FLAG(hltdc, LTDC_FLAG_FU) != RESET) { - if(__HAL_LTDC_IT_STATUS(hltdc, LTDC_IT_FU) != RESET) + if(__HAL_LTDC_GET_IT_SOURCE(hltdc, LTDC_IT_FU) != RESET) { /* Disable the FIFO underrun interrupt */ __HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_FU); @@ -352,7 +355,7 @@ /* Line Interrupt management ************************************************/ if(__HAL_LTDC_GET_FLAG(hltdc, LTDC_FLAG_LI) != RESET) { - if(__HAL_LTDC_IT_STATUS(hltdc, LTDC_IT_LI) != RESET) + if(__HAL_LTDC_GET_IT_SOURCE(hltdc, LTDC_IT_LI) != RESET) { /* Disable the Line interrupt */ __HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_LI);