Projet
Dependents: DISCO-F746NG_Scope_copy
Fork of BSP_DISCO_F746NG by
rk043fn48h.h@10:32ce84f82a72, 2018-06-05 (annotated)
- Committer:
- 1536082
- Date:
- Tue Jun 05 19:44:28 2018 +0000
- Revision:
- 10:32ce84f82a72
- Parent:
- 0:c9112f0c67e3
Projet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 0:c9112f0c67e3 | 1 | /** |
bcostm | 0:c9112f0c67e3 | 2 | ****************************************************************************** |
bcostm | 0:c9112f0c67e3 | 3 | * @file rk043fn48h.h |
bcostm | 0:c9112f0c67e3 | 4 | * @author MCD Application Team |
bcostm | 0:c9112f0c67e3 | 5 | * @version V1.0.0 |
bcostm | 0:c9112f0c67e3 | 6 | * @date 25-June-2015 |
bcostm | 0:c9112f0c67e3 | 7 | * @brief This file contains all the constants parameters for the RK043FN48H-CT672B |
bcostm | 0:c9112f0c67e3 | 8 | * LCD component. |
bcostm | 0:c9112f0c67e3 | 9 | ****************************************************************************** |
bcostm | 0:c9112f0c67e3 | 10 | * @attention |
bcostm | 0:c9112f0c67e3 | 11 | * |
bcostm | 0:c9112f0c67e3 | 12 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
bcostm | 0:c9112f0c67e3 | 13 | * |
bcostm | 0:c9112f0c67e3 | 14 | * Redistribution and use in source and binary forms, with or without modification, |
bcostm | 0:c9112f0c67e3 | 15 | * are permitted provided that the following conditions are met: |
bcostm | 0:c9112f0c67e3 | 16 | * 1. Redistributions of source code must retain the above copyright notice, |
bcostm | 0:c9112f0c67e3 | 17 | * this list of conditions and the following disclaimer. |
bcostm | 0:c9112f0c67e3 | 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bcostm | 0:c9112f0c67e3 | 19 | * this list of conditions and the following disclaimer in the documentation |
bcostm | 0:c9112f0c67e3 | 20 | * and/or other materials provided with the distribution. |
bcostm | 0:c9112f0c67e3 | 21 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bcostm | 0:c9112f0c67e3 | 22 | * may be used to endorse or promote products derived from this software |
bcostm | 0:c9112f0c67e3 | 23 | * without specific prior written permission. |
bcostm | 0:c9112f0c67e3 | 24 | * |
bcostm | 0:c9112f0c67e3 | 25 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bcostm | 0:c9112f0c67e3 | 26 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bcostm | 0:c9112f0c67e3 | 27 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bcostm | 0:c9112f0c67e3 | 28 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bcostm | 0:c9112f0c67e3 | 29 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bcostm | 0:c9112f0c67e3 | 30 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bcostm | 0:c9112f0c67e3 | 31 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bcostm | 0:c9112f0c67e3 | 32 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bcostm | 0:c9112f0c67e3 | 33 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bcostm | 0:c9112f0c67e3 | 34 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bcostm | 0:c9112f0c67e3 | 35 | * |
bcostm | 0:c9112f0c67e3 | 36 | ****************************************************************************** |
bcostm | 0:c9112f0c67e3 | 37 | */ |
bcostm | 0:c9112f0c67e3 | 38 | |
bcostm | 0:c9112f0c67e3 | 39 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 0:c9112f0c67e3 | 40 | #ifndef __RK043FN48H_H |
bcostm | 0:c9112f0c67e3 | 41 | #define __RK043FN48H_H |
bcostm | 0:c9112f0c67e3 | 42 | |
bcostm | 0:c9112f0c67e3 | 43 | #ifdef __cplusplus |
bcostm | 0:c9112f0c67e3 | 44 | extern "C" { |
bcostm | 0:c9112f0c67e3 | 45 | #endif |
bcostm | 0:c9112f0c67e3 | 46 | |
bcostm | 0:c9112f0c67e3 | 47 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 0:c9112f0c67e3 | 48 | |
bcostm | 0:c9112f0c67e3 | 49 | /** @addtogroup BSP |
bcostm | 0:c9112f0c67e3 | 50 | * @{ |
bcostm | 0:c9112f0c67e3 | 51 | */ |
bcostm | 0:c9112f0c67e3 | 52 | |
bcostm | 0:c9112f0c67e3 | 53 | /** @addtogroup Components |
bcostm | 0:c9112f0c67e3 | 54 | * @{ |
bcostm | 0:c9112f0c67e3 | 55 | */ |
bcostm | 0:c9112f0c67e3 | 56 | |
bcostm | 0:c9112f0c67e3 | 57 | /** @addtogroup rk043fn48h |
bcostm | 0:c9112f0c67e3 | 58 | * @{ |
bcostm | 0:c9112f0c67e3 | 59 | */ |
bcostm | 0:c9112f0c67e3 | 60 | |
bcostm | 0:c9112f0c67e3 | 61 | /** @defgroup RK043FN48H_Exported_Types |
bcostm | 0:c9112f0c67e3 | 62 | * @{ |
bcostm | 0:c9112f0c67e3 | 63 | */ |
bcostm | 0:c9112f0c67e3 | 64 | |
bcostm | 0:c9112f0c67e3 | 65 | /** |
bcostm | 0:c9112f0c67e3 | 66 | * @} |
bcostm | 0:c9112f0c67e3 | 67 | */ |
bcostm | 0:c9112f0c67e3 | 68 | |
bcostm | 0:c9112f0c67e3 | 69 | /** @defgroup RK043FN48H_Exported_Constants |
bcostm | 0:c9112f0c67e3 | 70 | * @{ |
bcostm | 0:c9112f0c67e3 | 71 | */ |
bcostm | 0:c9112f0c67e3 | 72 | |
bcostm | 0:c9112f0c67e3 | 73 | /** |
bcostm | 0:c9112f0c67e3 | 74 | * @brief RK043FN48H Size |
bcostm | 0:c9112f0c67e3 | 75 | */ |
bcostm | 0:c9112f0c67e3 | 76 | #define RK043FN48H_WIDTH ((uint16_t)480) /* LCD PIXEL WIDTH */ |
bcostm | 0:c9112f0c67e3 | 77 | #define RK043FN48H_HEIGHT ((uint16_t)272) /* LCD PIXEL HEIGHT */ |
bcostm | 0:c9112f0c67e3 | 78 | |
bcostm | 0:c9112f0c67e3 | 79 | /** |
bcostm | 0:c9112f0c67e3 | 80 | * @brief RK043FN48H Timing |
bcostm | 0:c9112f0c67e3 | 81 | */ |
bcostm | 0:c9112f0c67e3 | 82 | #define RK043FN48H_HSYNC ((uint16_t)41) /* Horizontal synchronization */ |
bcostm | 0:c9112f0c67e3 | 83 | #define RK043FN48H_HBP ((uint16_t)13) /* Horizontal back porch */ |
bcostm | 0:c9112f0c67e3 | 84 | #define RK043FN48H_HFP ((uint16_t)32) /* Horizontal front porch */ |
bcostm | 0:c9112f0c67e3 | 85 | #define RK043FN48H_VSYNC ((uint16_t)10) /* Vertical synchronization */ |
bcostm | 0:c9112f0c67e3 | 86 | #define RK043FN48H_VBP ((uint16_t)2) /* Vertical back porch */ |
bcostm | 0:c9112f0c67e3 | 87 | #define RK043FN48H_VFP ((uint16_t)2) /* Vertical front porch */ |
bcostm | 0:c9112f0c67e3 | 88 | |
bcostm | 0:c9112f0c67e3 | 89 | /** |
bcostm | 0:c9112f0c67e3 | 90 | * @brief RK043FN48H frequency divider |
bcostm | 0:c9112f0c67e3 | 91 | */ |
bcostm | 0:c9112f0c67e3 | 92 | #define RK043FN48H_FREQUENCY_DIVIDER 5 /* LCD Frequency divider */ |
bcostm | 0:c9112f0c67e3 | 93 | /** |
bcostm | 0:c9112f0c67e3 | 94 | * @} |
bcostm | 0:c9112f0c67e3 | 95 | */ |
bcostm | 0:c9112f0c67e3 | 96 | |
bcostm | 0:c9112f0c67e3 | 97 | /** @defgroup RK043FN48H_Exported_Functions |
bcostm | 0:c9112f0c67e3 | 98 | * @{ |
bcostm | 0:c9112f0c67e3 | 99 | */ |
bcostm | 0:c9112f0c67e3 | 100 | |
bcostm | 0:c9112f0c67e3 | 101 | /** |
bcostm | 0:c9112f0c67e3 | 102 | * @} |
bcostm | 0:c9112f0c67e3 | 103 | */ |
bcostm | 0:c9112f0c67e3 | 104 | #ifdef __cplusplus |
bcostm | 0:c9112f0c67e3 | 105 | } |
bcostm | 0:c9112f0c67e3 | 106 | #endif |
bcostm | 0:c9112f0c67e3 | 107 | |
bcostm | 0:c9112f0c67e3 | 108 | #endif /* __RK043FN48H_H */ |
bcostm | 0:c9112f0c67e3 | 109 | /** |
bcostm | 0:c9112f0c67e3 | 110 | * @} |
bcostm | 0:c9112f0c67e3 | 111 | */ |
bcostm | 0:c9112f0c67e3 | 112 | |
bcostm | 0:c9112f0c67e3 | 113 | /** |
bcostm | 0:c9112f0c67e3 | 114 | * @} |
bcostm | 0:c9112f0c67e3 | 115 | */ |
bcostm | 0:c9112f0c67e3 | 116 | |
bcostm | 0:c9112f0c67e3 | 117 | /** |
bcostm | 0:c9112f0c67e3 | 118 | * @} |
bcostm | 0:c9112f0c67e3 | 119 | */ |
bcostm | 0:c9112f0c67e3 | 120 | |
bcostm | 0:c9112f0c67e3 | 121 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |