• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#include "../../hcs/v200zr.hcs"
2root {
3    platform {
4        gpio_config {
5            match_attr = "gpio_config";
6            pin = [0, 1];
7            // touch_ztw523: TSP_RST - GPIO12, TSP_INT-GPIO27
8            // touch_fts: TSP_RST - GPIO05, TSP_INT-GPIO27
9            realPin = [5, 27];
10            config = [5, 2];
11            pinNum = 2;
12        }
13        i2c_config {
14            i2c1 {
15                match_attr = "i2c1_config";
16                port = 1;
17                speed = 200000;
18                // TSP_SCL/SDA - I2C1 = GPIO06/GPIO07
19                sclPin = 6;
20                sdaPin = 7;
21                useDma = 0;
22                useSync = 1;
23                asMaster = 1;
24                address_width = 8;
25                mode = 0;
26            }
27        }
28    }
29    display {
30        panel_config {
31            /*rm69330_config {
32                match_attr = "rm69330_config";
33                // EVB_V3: RST - GPIO03, TE - GPIO21
34                rst_pin = 3;
35                te_pin = 21;
36            }
37            icna3311_config {
38                match_attr = "icna3311_config";
39                // EVB_V3: RST - GPIO03, TE - GPIO21, VCI_EN - GPIO02
40                rst_pin = 3;
41                te_pin = 21;
42                vci_pin = 2;
43            }*/
44            a064_config {
45                match_attr = "a064_config";
46                // EVB_V3: RST - GPIO03, TE - GPIO21, LED_EN - GPIO26
47                rst_pin = 3;
48                te_pin = 21;
49                led_pin = 26;
50            }
51        }
52    }
53    input {
54        touch_config {
55            /*touch_ztw523 {
56                match_attr = "touch_ztw523_config";
57                gpio_rst = 0;
58                gpio_int = 1;
59                i2c_id = 0;
60                i2c_addr = 0x20;
61            }*/
62            touch_fts {
63                match_attr = "touch_fts_config";
64                gpio_rst = 0;
65                gpio_int = 1;
66                i2c_id = 1;
67                i2c_addr = 0x38;
68            }
69        }
70    }
71    misc {
72        fs_config {
73            littlefs_config {
74                match_attr = "littlefs_config";
75                mount_points = ["/data"];
76                partitions = [10];
77                block_size = [4096];
78                block_count = [1024];
79            }
80        }
81        storage_config {
82            flash_config {
83                match_attr = "flash_config";
84                partitions = [10];
85                owner = [0];
86                description = ["littlefs"];
87                start_addr = [0xB60000];
88                length = [0x400000];
89                options = [3];
90            }
91        }
92    }
93}
94