stm32f4xx_ltdc.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_ltdc.h
  4. * @author MCD Application Team
  5. * @version V1.8.1
  6. * @date 27-January-2022
  7. * @brief This file contains all the functions prototypes for the LTDC firmware
  8. * library.
  9. ******************************************************************************
  10. * @attention
  11. *
  12. * Copyright (c) 2016 STMicroelectronics.
  13. * All rights reserved.
  14. *
  15. * This software is licensed under terms that can be found in the LICENSE file
  16. * in the root directory of this software component.
  17. * If no LICENSE file comes with this software, it is provided AS-IS.
  18. *
  19. ******************************************************************************
  20. */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __STM32F4xx_LTDC_H
  23. #define __STM32F4xx_LTDC_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32f4xx.h"
  29. /** @addtogroup STM32F4xx_StdPeriph_Driver
  30. * @{
  31. */
  32. /** @addtogroup LTDC
  33. * @{
  34. */
  35. /* Exported types ------------------------------------------------------------*/
  36. /**
  37. * @brief LTDC Init structure definition
  38. */
  39. typedef struct
  40. {
  41. uint32_t LTDC_HSPolarity; /*!< configures the horizontal synchronization polarity.
  42. This parameter can be one value of @ref LTDC_HSPolarity */
  43. uint32_t LTDC_VSPolarity; /*!< configures the vertical synchronization polarity.
  44. This parameter can be one value of @ref LTDC_VSPolarity */
  45. uint32_t LTDC_DEPolarity; /*!< configures the data enable polarity. This parameter can
  46. be one of value of @ref LTDC_DEPolarity */
  47. uint32_t LTDC_PCPolarity; /*!< configures the pixel clock polarity. This parameter can
  48. be one of value of @ref LTDC_PCPolarity */
  49. uint32_t LTDC_HorizontalSync; /*!< configures the number of Horizontal synchronization
  50. width. This parameter must range from 0x000 to 0xFFF. */
  51. uint32_t LTDC_VerticalSync; /*!< configures the number of Vertical synchronization
  52. height. This parameter must range from 0x000 to 0x7FF. */
  53. uint32_t LTDC_AccumulatedHBP; /*!< configures the accumulated horizontal back porch width.
  54. This parameter must range from LTDC_HorizontalSync to 0xFFF. */
  55. uint32_t LTDC_AccumulatedVBP; /*!< configures the accumulated vertical back porch height.
  56. This parameter must range from LTDC_VerticalSync to 0x7FF. */
  57. uint32_t LTDC_AccumulatedActiveW; /*!< configures the accumulated active width. This parameter
  58. must range from LTDC_AccumulatedHBP to 0xFFF. */
  59. uint32_t LTDC_AccumulatedActiveH; /*!< configures the accumulated active height. This parameter
  60. must range from LTDC_AccumulatedVBP to 0x7FF. */
  61. uint32_t LTDC_TotalWidth; /*!< configures the total width. This parameter
  62. must range from LTDC_AccumulatedActiveW to 0xFFF. */
  63. uint32_t LTDC_TotalHeigh; /*!< configures the total height. This parameter
  64. must range from LTDC_AccumulatedActiveH to 0x7FF. */
  65. uint32_t LTDC_BackgroundRedValue; /*!< configures the background red value.
  66. This parameter must range from 0x00 to 0xFF. */
  67. uint32_t LTDC_BackgroundGreenValue; /*!< configures the background green value.
  68. This parameter must range from 0x00 to 0xFF. */
  69. uint32_t LTDC_BackgroundBlueValue; /*!< configures the background blue value.
  70. This parameter must range from 0x00 to 0xFF. */
  71. } LTDC_InitTypeDef;
  72. /**
  73. * @brief LTDC Layer structure definition
  74. */
  75. typedef struct
  76. {
  77. uint32_t LTDC_HorizontalStart; /*!< Configures the Window Horizontal Start Position.
  78. This parameter must range from 0x000 to 0xFFF. */
  79. uint32_t LTDC_HorizontalStop; /*!< Configures the Window Horizontal Stop Position.
  80. This parameter must range from 0x0000 to 0xFFFF. */
  81. uint32_t LTDC_VerticalStart; /*!< Configures the Window vertical Start Position.
  82. This parameter must range from 0x000 to 0xFFF. */
  83. uint32_t LTDC_VerticalStop; /*!< Configures the Window vaertical Stop Position.
  84. This parameter must range from 0x0000 to 0xFFFF. */
  85. uint32_t LTDC_PixelFormat; /*!< Specifies the pixel format. This parameter can be
  86. one of value of @ref LTDC_Pixelformat */
  87. uint32_t LTDC_ConstantAlpha; /*!< Specifies the constant alpha used for blending.
  88. This parameter must range from 0x00 to 0xFF. */
  89. uint32_t LTDC_DefaultColorBlue; /*!< Configures the default blue value.
  90. This parameter must range from 0x00 to 0xFF. */
  91. uint32_t LTDC_DefaultColorGreen; /*!< Configures the default green value.
  92. This parameter must range from 0x00 to 0xFF. */
  93. uint32_t LTDC_DefaultColorRed; /*!< Configures the default red value.
  94. This parameter must range from 0x00 to 0xFF. */
  95. uint32_t LTDC_DefaultColorAlpha; /*!< Configures the default alpha value.
  96. This parameter must range from 0x00 to 0xFF. */
  97. uint32_t LTDC_BlendingFactor_1; /*!< Select the blending factor 1. This parameter
  98. can be one of value of @ref LTDC_BlendingFactor1 */
  99. uint32_t LTDC_BlendingFactor_2; /*!< Select the blending factor 2. This parameter
  100. can be one of value of @ref LTDC_BlendingFactor2 */
  101. uint32_t LTDC_CFBStartAdress; /*!< Configures the color frame buffer address */
  102. uint32_t LTDC_CFBLineLength; /*!< Configures the color frame buffer line length.
  103. This parameter must range from 0x0000 to 0x1FFF. */
  104. uint32_t LTDC_CFBPitch; /*!< Configures the color frame buffer pitch in bytes.
  105. This parameter must range from 0x0000 to 0x1FFF. */
  106. uint32_t LTDC_CFBLineNumber; /*!< Specifies the number of line in frame buffer.
  107. This parameter must range from 0x000 to 0x7FF. */
  108. } LTDC_Layer_InitTypeDef;
  109. /**
  110. * @brief LTDC Position structure definition
  111. */
  112. typedef struct
  113. {
  114. uint32_t LTDC_POSX; /*!< Current X Position */
  115. uint32_t LTDC_POSY; /*!< Current Y Position */
  116. } LTDC_PosTypeDef;
  117. /**
  118. * @brief LTDC RGB structure definition
  119. */
  120. typedef struct
  121. {
  122. uint32_t LTDC_BlueWidth; /*!< Blue width */
  123. uint32_t LTDC_GreenWidth; /*!< Green width */
  124. uint32_t LTDC_RedWidth; /*!< Red width */
  125. } LTDC_RGBTypeDef;
  126. /**
  127. * @brief LTDC Color Keying structure definition
  128. */
  129. typedef struct
  130. {
  131. uint32_t LTDC_ColorKeyBlue; /*!< Configures the color key blue value.
  132. This parameter must range from 0x00 to 0xFF. */
  133. uint32_t LTDC_ColorKeyGreen; /*!< Configures the color key green value.
  134. This parameter must range from 0x00 to 0xFF. */
  135. uint32_t LTDC_ColorKeyRed; /*!< Configures the color key red value.
  136. This parameter must range from 0x00 to 0xFF. */
  137. } LTDC_ColorKeying_InitTypeDef;
  138. /**
  139. * @brief LTDC CLUT structure definition
  140. */
  141. typedef struct
  142. {
  143. uint32_t LTDC_CLUTAdress; /*!< Configures the CLUT address.
  144. This parameter must range from 0x00 to 0xFF. */
  145. uint32_t LTDC_BlueValue; /*!< Configures the blue value.
  146. This parameter must range from 0x00 to 0xFF. */
  147. uint32_t LTDC_GreenValue; /*!< Configures the green value.
  148. This parameter must range from 0x00 to 0xFF. */
  149. uint32_t LTDC_RedValue; /*!< Configures the red value.
  150. This parameter must range from 0x00 to 0xFF. */
  151. } LTDC_CLUT_InitTypeDef;
  152. /* Exported constants --------------------------------------------------------*/
  153. /** @defgroup LTDC_Exported_Constants
  154. * @{
  155. */
  156. /** @defgroup LTDC_SYNC
  157. * @{
  158. */
  159. #define LTDC_HorizontalSYNC ((uint32_t)0x00000FFF)
  160. #define LTDC_VerticalSYNC ((uint32_t)0x000007FF)
  161. #define IS_LTDC_HSYNC(HSYNC) ((HSYNC) <= LTDC_HorizontalSYNC)
  162. #define IS_LTDC_VSYNC(VSYNC) ((VSYNC) <= LTDC_VerticalSYNC)
  163. #define IS_LTDC_AHBP(AHBP) ((AHBP) <= LTDC_HorizontalSYNC)
  164. #define IS_LTDC_AVBP(AVBP) ((AVBP) <= LTDC_VerticalSYNC)
  165. #define IS_LTDC_AAW(AAW) ((AAW) <= LTDC_HorizontalSYNC)
  166. #define IS_LTDC_AAH(AAH) ((AAH) <= LTDC_VerticalSYNC)
  167. #define IS_LTDC_TOTALW(TOTALW) ((TOTALW) <= LTDC_HorizontalSYNC)
  168. #define IS_LTDC_TOTALH(TOTALH) ((TOTALH) <= LTDC_VerticalSYNC)
  169. /**
  170. * @}
  171. */
  172. /** @defgroup LTDC_HSPolarity
  173. * @{
  174. */
  175. #define LTDC_HSPolarity_AL ((uint32_t)0x00000000) /*!< Horizontal Synchronization is active low. */
  176. #define LTDC_HSPolarity_AH LTDC_GCR_HSPOL /*!< Horizontal Synchronization is active high. */
  177. #define IS_LTDC_HSPOL(HSPOL) (((HSPOL) == LTDC_HSPolarity_AL) || \
  178. ((HSPOL) == LTDC_HSPolarity_AH))
  179. /**
  180. * @}
  181. */
  182. /** @defgroup LTDC_VSPolarity
  183. * @{
  184. */
  185. #define LTDC_VSPolarity_AL ((uint32_t)0x00000000) /*!< Vertical Synchronization is active low. */
  186. #define LTDC_VSPolarity_AH LTDC_GCR_VSPOL /*!< Vertical Synchronization is active high. */
  187. #define IS_LTDC_VSPOL(VSPOL) (((VSPOL) == LTDC_VSPolarity_AL) || \
  188. ((VSPOL) == LTDC_VSPolarity_AH))
  189. /**
  190. * @}
  191. */
  192. /** @defgroup LTDC_DEPolarity
  193. * @{
  194. */
  195. #define LTDC_DEPolarity_AL ((uint32_t)0x00000000) /*!< Data Enable, is active low. */
  196. #define LTDC_DEPolarity_AH LTDC_GCR_DEPOL /*!< Data Enable, is active high. */
  197. #define IS_LTDC_DEPOL(DEPOL) (((DEPOL) == LTDC_VSPolarity_AL) || \
  198. ((DEPOL) == LTDC_DEPolarity_AH))
  199. /**
  200. * @}
  201. */
  202. /** @defgroup LTDC_PCPolarity
  203. * @{
  204. */
  205. #define LTDC_PCPolarity_IPC ((uint32_t)0x00000000) /*!< input pixel clock. */
  206. #define LTDC_PCPolarity_IIPC LTDC_GCR_PCPOL /*!< inverted input pixel clock. */
  207. #define IS_LTDC_PCPOL(PCPOL) (((PCPOL) == LTDC_PCPolarity_IPC) || \
  208. ((PCPOL) == LTDC_PCPolarity_IIPC))
  209. /**
  210. * @}
  211. */
  212. /** @defgroup LTDC_Reload
  213. * @{
  214. */
  215. #define LTDC_IMReload LTDC_SRCR_IMR /*!< Immediately Reload. */
  216. #define LTDC_VBReload LTDC_SRCR_VBR /*!< Vertical Blanking Reload. */
  217. #define IS_LTDC_RELOAD(RELOAD) (((RELOAD) == LTDC_IMReload) || \
  218. ((RELOAD) == LTDC_VBReload))
  219. /**
  220. * @}
  221. */
  222. /** @defgroup LTDC_Back_Color
  223. * @{
  224. */
  225. #define LTDC_Back_Color ((uint32_t)0x000000FF)
  226. #define IS_LTDC_BackBlueValue(BBLUE) ((BBLUE) <= LTDC_Back_Color)
  227. #define IS_LTDC_BackGreenValue(BGREEN) ((BGREEN) <= LTDC_Back_Color)
  228. #define IS_LTDC_BackRedValue(BRED) ((BRED) <= LTDC_Back_Color)
  229. /**
  230. * @}
  231. */
  232. /** @defgroup LTDC_Position
  233. * @{
  234. */
  235. #define LTDC_POS_CY LTDC_CPSR_CYPOS
  236. #define LTDC_POS_CX LTDC_CPSR_CXPOS
  237. #define IS_LTDC_GET_POS(POS) (((POS) <= LTDC_POS_CY))
  238. /**
  239. * @}
  240. */
  241. /** @defgroup LTDC_LIPosition
  242. * @{
  243. */
  244. #define IS_LTDC_LIPOS(LIPOS) ((LIPOS) <= 0x7FF)
  245. /**
  246. * @}
  247. */
  248. /** @defgroup LTDC_CurrentStatus
  249. * @{
  250. */
  251. #define LTDC_CD_VDES LTDC_CDSR_VDES
  252. #define LTDC_CD_HDES LTDC_CDSR_HDES
  253. #define LTDC_CD_VSYNC LTDC_CDSR_VSYNCS
  254. #define LTDC_CD_HSYNC LTDC_CDSR_HSYNCS
  255. #define IS_LTDC_GET_CD(CD) (((CD) == LTDC_CD_VDES) || ((CD) == LTDC_CD_HDES) || \
  256. ((CD) == LTDC_CD_VSYNC) || ((CD) == LTDC_CD_HSYNC))
  257. /**
  258. * @}
  259. */
  260. /** @defgroup LTDC_Interrupts
  261. * @{
  262. */
  263. #define LTDC_IT_LI LTDC_IER_LIE
  264. #define LTDC_IT_FU LTDC_IER_FUIE
  265. #define LTDC_IT_TERR LTDC_IER_TERRIE
  266. #define LTDC_IT_RR LTDC_IER_RRIE
  267. #define IS_LTDC_IT(IT) ((((IT) & (uint32_t)0xFFFFFFF0) == 0x00) && ((IT) != 0x00))
  268. /**
  269. * @}
  270. */
  271. /** @defgroup LTDC_Flag
  272. * @{
  273. */
  274. #define LTDC_FLAG_LI LTDC_ISR_LIF
  275. #define LTDC_FLAG_FU LTDC_ISR_FUIF
  276. #define LTDC_FLAG_TERR LTDC_ISR_TERRIF
  277. #define LTDC_FLAG_RR LTDC_ISR_RRIF
  278. #define IS_LTDC_FLAG(FLAG) (((FLAG) == LTDC_FLAG_LI) || ((FLAG) == LTDC_FLAG_FU) || \
  279. ((FLAG) == LTDC_FLAG_TERR) || ((FLAG) == LTDC_FLAG_RR))
  280. /**
  281. * @}
  282. */
  283. /** @defgroup LTDC_Pixelformat
  284. * @{
  285. */
  286. #define LTDC_Pixelformat_ARGB8888 ((uint32_t)0x00000000)
  287. #define LTDC_Pixelformat_RGB888 ((uint32_t)0x00000001)
  288. #define LTDC_Pixelformat_RGB565 ((uint32_t)0x00000002)
  289. #define LTDC_Pixelformat_ARGB1555 ((uint32_t)0x00000003)
  290. #define LTDC_Pixelformat_ARGB4444 ((uint32_t)0x00000004)
  291. #define LTDC_Pixelformat_L8 ((uint32_t)0x00000005)
  292. #define LTDC_Pixelformat_AL44 ((uint32_t)0x00000006)
  293. #define LTDC_Pixelformat_AL88 ((uint32_t)0x00000007)
  294. #define IS_LTDC_Pixelformat(Pixelformat) (((Pixelformat) == LTDC_Pixelformat_ARGB8888) || ((Pixelformat) == LTDC_Pixelformat_RGB888) || \
  295. ((Pixelformat) == LTDC_Pixelformat_RGB565) || ((Pixelformat) == LTDC_Pixelformat_ARGB1555) || \
  296. ((Pixelformat) == LTDC_Pixelformat_ARGB4444) || ((Pixelformat) == LTDC_Pixelformat_L8) || \
  297. ((Pixelformat) == LTDC_Pixelformat_AL44) || ((Pixelformat) == LTDC_Pixelformat_AL88))
  298. /**
  299. * @}
  300. */
  301. /** @defgroup LTDC_BlendingFactor1
  302. * @{
  303. */
  304. #define LTDC_BlendingFactor1_CA ((uint32_t)0x00000400)
  305. #define LTDC_BlendingFactor1_PAxCA ((uint32_t)0x00000600)
  306. #define IS_LTDC_BlendingFactor1(BlendingFactor1) (((BlendingFactor1) == LTDC_BlendingFactor1_CA) || ((BlendingFactor1) == LTDC_BlendingFactor1_PAxCA))
  307. /**
  308. * @}
  309. */
  310. /** @defgroup LTDC_BlendingFactor2
  311. * @{
  312. */
  313. #define LTDC_BlendingFactor2_CA ((uint32_t)0x00000005)
  314. #define LTDC_BlendingFactor2_PAxCA ((uint32_t)0x00000007)
  315. #define IS_LTDC_BlendingFactor2(BlendingFactor2) (((BlendingFactor2) == LTDC_BlendingFactor2_CA) || ((BlendingFactor2) == LTDC_BlendingFactor2_PAxCA))
  316. /**
  317. * @}
  318. */
  319. /** @defgroup LTDC_LAYER_Config
  320. * @{
  321. */
  322. #define LTDC_STOPPosition ((uint32_t)0x0000FFFF)
  323. #define LTDC_STARTPosition ((uint32_t)0x00000FFF)
  324. #define LTDC_DefaultColorConfig ((uint32_t)0x000000FF)
  325. #define LTDC_ColorFrameBuffer ((uint32_t)0x00001FFF)
  326. #define LTDC_LineNumber ((uint32_t)0x000007FF)
  327. #define IS_LTDC_HCONFIGST(HCONFIGST) ((HCONFIGST) <= LTDC_STARTPosition)
  328. #define IS_LTDC_HCONFIGSP(HCONFIGSP) ((HCONFIGSP) <= LTDC_STOPPosition)
  329. #define IS_LTDC_VCONFIGST(VCONFIGST) ((VCONFIGST) <= LTDC_STARTPosition)
  330. #define IS_LTDC_VCONFIGSP(VCONFIGSP) ((VCONFIGSP) <= LTDC_STOPPosition)
  331. #define IS_LTDC_DEFAULTCOLOR(DEFAULTCOLOR) ((DEFAULTCOLOR) <= LTDC_DefaultColorConfig)
  332. #define IS_LTDC_CFBP(CFBP) ((CFBP) <= LTDC_ColorFrameBuffer)
  333. #define IS_LTDC_CFBLL(CFBLL) ((CFBLL) <= LTDC_ColorFrameBuffer)
  334. #define IS_LTDC_CFBLNBR(CFBLNBR) ((CFBLNBR) <= LTDC_LineNumber)
  335. /**
  336. * @}
  337. */
  338. /** @defgroup LTDC_colorkeying_Config
  339. * @{
  340. */
  341. #define LTDC_colorkeyingConfig ((uint32_t)0x000000FF)
  342. #define IS_LTDC_CKEYING(CKEYING) ((CKEYING) <= LTDC_colorkeyingConfig)
  343. /**
  344. * @}
  345. */
  346. /** @defgroup LTDC_CLUT_Config
  347. * @{
  348. */
  349. #define LTDC_CLUTWR ((uint32_t)0x000000FF)
  350. #define IS_LTDC_CLUTWR(CLUTWR) ((CLUTWR) <= LTDC_CLUTWR)
  351. /* Exported macro ------------------------------------------------------------*/
  352. /* Exported functions ------------------------------------------------------- */
  353. /* Function used to set the LTDC configuration to the default reset state *****/
  354. void LTDC_DeInit(void);
  355. /* Initialization and Configuration functions *********************************/
  356. void LTDC_Init(LTDC_InitTypeDef* LTDC_InitStruct);
  357. void LTDC_StructInit(LTDC_InitTypeDef* LTDC_InitStruct);
  358. void LTDC_Cmd(FunctionalState NewState);
  359. void LTDC_DitherCmd(FunctionalState NewState);
  360. LTDC_RGBTypeDef LTDC_GetRGBWidth(void);
  361. void LTDC_RGBStructInit(LTDC_RGBTypeDef* LTDC_RGB_InitStruct);
  362. void LTDC_LIPConfig(uint32_t LTDC_LIPositionConfig);
  363. void LTDC_ReloadConfig(uint32_t LTDC_Reload);
  364. void LTDC_LayerInit(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_Layer_InitTypeDef* LTDC_Layer_InitStruct);
  365. void LTDC_LayerStructInit(LTDC_Layer_InitTypeDef * LTDC_Layer_InitStruct);
  366. void LTDC_LayerCmd(LTDC_Layer_TypeDef* LTDC_Layerx, FunctionalState NewState);
  367. LTDC_PosTypeDef LTDC_GetPosStatus(void);
  368. void LTDC_PosStructInit(LTDC_PosTypeDef* LTDC_Pos_InitStruct);
  369. FlagStatus LTDC_GetCDStatus(uint32_t LTDC_CD);
  370. void LTDC_ColorKeyingConfig(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_ColorKeying_InitTypeDef* LTDC_colorkeying_InitStruct, FunctionalState NewState);
  371. void LTDC_ColorKeyingStructInit(LTDC_ColorKeying_InitTypeDef* LTDC_colorkeying_InitStruct);
  372. void LTDC_CLUTCmd(LTDC_Layer_TypeDef* LTDC_Layerx, FunctionalState NewState);
  373. void LTDC_CLUTInit(LTDC_Layer_TypeDef* LTDC_Layerx, LTDC_CLUT_InitTypeDef* LTDC_CLUT_InitStruct);
  374. void LTDC_CLUTStructInit(LTDC_CLUT_InitTypeDef* LTDC_CLUT_InitStruct);
  375. void LTDC_LayerPosition(LTDC_Layer_TypeDef* LTDC_Layerx, uint16_t OffsetX, uint16_t OffsetY);
  376. void LTDC_LayerAlpha(LTDC_Layer_TypeDef* LTDC_Layerx, uint8_t ConstantAlpha);
  377. void LTDC_LayerAddress(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t Address);
  378. void LTDC_LayerSize(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t Width, uint32_t Height);
  379. void LTDC_LayerPixelFormat(LTDC_Layer_TypeDef* LTDC_Layerx, uint32_t PixelFormat);
  380. /* Interrupts and flags management functions **********************************/
  381. void LTDC_ITConfig(uint32_t LTDC_IT, FunctionalState NewState);
  382. FlagStatus LTDC_GetFlagStatus(uint32_t LTDC_FLAG);
  383. void LTDC_ClearFlag(uint32_t LTDC_FLAG);
  384. ITStatus LTDC_GetITStatus(uint32_t LTDC_IT);
  385. void LTDC_ClearITPendingBit(uint32_t LTDC_IT);
  386. #ifdef __cplusplus
  387. }
  388. #endif
  389. #endif /* __STM32F4xx_LTDC_H */
  390. /**
  391. * @}
  392. */
  393. /**
  394. * @}
  395. */