|
2 | 2 | @file EVE_config.h |
3 | 3 | @brief configuration information for some TFTs |
4 | 4 | @version 5.0 |
5 | | -@date 2021-12-27 |
| 5 | +@date 2022-02-20 |
6 | 6 | @author Rudolph Riedel |
7 | 7 |
|
8 | 8 | @section LICENSE |
@@ -73,6 +73,8 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH |
73 | 73 | - converted all TABs to SPACEs |
74 | 74 | - removed EVE_TOUCH_RZTHRESH as it only applies to resistive touch screens and as EVE_init() still writes it if the define exists in can be configured thru project options |
75 | 75 | - added EVE_Display_Parameters_t to be used with an additional init function, still not sure how to procede exactly |
| 76 | +- split the settings for EVE_RiTFT70 and EVE_RiTFT50 after a report for the EVE_RiTFT70 not working properly and confirmation |
| 77 | + that the provided alternative parameters do work, the EVE_RiTFT50 however are confirmed to be working with the IOT5 |
76 | 78 |
|
77 | 79 | */ |
78 | 80 |
|
@@ -617,29 +619,45 @@ typedef struct |
617 | 619 | #endif |
618 | 620 |
|
619 | 621 |
|
620 | | -/* untested */ |
| 622 | +/* untested but confirmed to be working */ |
621 | 623 | /* RVT50xQBxxxxx 800x480 5.0" Riverdi, various options, BT815/BT816 */ |
| 624 | +/* not working properly? try the EVE_RiTFT70 profile */ |
| 625 | +#if defined (EVE_RiTFT50) |
| 626 | +#define EVE_HSIZE (800L) |
| 627 | +#define EVE_VSIZE (480L) |
| 628 | + |
| 629 | +#define EVE_VSYNC0 (0L) |
| 630 | +#define EVE_VSYNC1 (10L) |
| 631 | +#define EVE_VOFFSET (23L) |
| 632 | +#define EVE_VCYCLE (525L) |
| 633 | +#define EVE_HSYNC0 (0L) |
| 634 | +#define EVE_HSYNC1 (10L) |
| 635 | +#define EVE_HOFFSET (46L) |
| 636 | +#define EVE_HCYCLE (1056L) |
| 637 | +#define EVE_PCLK (2L) |
| 638 | +#define EVE_PCLKPOL (1L) |
| 639 | +#define EVE_SWIZZLE (0L) |
| 640 | +#define EVE_CSPREAD (1L) |
| 641 | +#define EVE_HAS_CRYSTAL |
| 642 | +#define EVE_GEN 3 |
| 643 | +#endif |
| 644 | + |
| 645 | + |
| 646 | +/* untested but confirmed to be working */ |
622 | 647 | /* RVT70xQBxxxxx 800x480 7.0" Riverdi, various options, BT815/BT816 */ |
623 | | -#if defined (EVE_RiTFT70) || defined (EVE_RiTFT50) |
624 | | -#define EVE_HSIZE (800L) /* Thd Length of visible part of line (in PCLKs) - display width */ |
625 | | -#define EVE_VSIZE (480L) /* Tvd Number of visible lines (in lines) - display height */ |
| 648 | +/* not working properly? try the EVE_RiTFT50 profile */ |
| 649 | +#if defined (EVE_RiTFT70) |
| 650 | +#define Resolution_800x480 |
626 | 651 |
|
627 | | -#define EVE_VSYNC0 (0L) /* Tvf Vertical Front Porch */ |
628 | | -#define EVE_VSYNC1 (10L) /* Tvf + Tvp Vertical Front Porch plus Vsync Pulse width */ |
629 | | -#define EVE_VOFFSET (23L) /* Tvf + Tvp + Tvb Number of non-visible lines (in lines) */ |
630 | | -#define EVE_VCYCLE (525L) /* Tv Total number of lines (visible and non-visible) (in lines) */ |
631 | | -#define EVE_HSYNC0 (0L) /* Thf Horizontal Front Porch */ |
632 | | -#define EVE_HSYNC1 (10L) /* Thf + Thp Horizontal Front Porch plus Hsync Pulse width */ |
633 | | -#define EVE_HOFFSET (46L) /* Thf + Thp + Thb Length of non-visible part of line (in PCLK cycles) */ |
634 | | -#define EVE_HCYCLE (1056L) /* Th Total length of line (visible and non-visible) (in PCLKs) */ |
635 | | -#define EVE_PCLK (2L) /* 72MHz / REG_PCLK = PCLK frequency 30 MHz */ |
636 | | -#define EVE_PCLKPOL (1L) /* PCLK polarity (0 = rising edge, 1 = falling edge) */ |
637 | | -#define EVE_SWIZZLE (0L) /* Defines the arrangement of the RGB pins of the FT800 */ |
| 652 | +#define EVE_PCLK (2L) |
| 653 | +#define EVE_PCLKPOL (1L) |
| 654 | +#define EVE_SWIZZLE (0L) |
638 | 655 | #define EVE_CSPREAD (1L) |
639 | 656 | #define EVE_HAS_CRYSTAL |
640 | 657 | #define EVE_GEN 3 |
641 | 658 | #endif |
642 | 659 |
|
| 660 | + |
643 | 661 | /* untested */ |
644 | 662 | /* RVT50HQBxxxxx 800x480 5.0" Riverdi, various options, BT817 */ |
645 | 663 | #if defined (EVE_RVT50H) |
|
0 commit comments