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