mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-20 20:35:08 +00:00
Compare commits
No commits in common. "7c508bbaa015a4d631ebcfda8036018c54b0870f" and "79d3dd4fdb3ad746e4c8a2904700e39541af70d7" have entirely different histories.
7c508bbaa0
...
79d3dd4fdb
@ -7,4 +7,4 @@ The kernel uses a Linux-inspired device model:
|
|||||||
- **Device** (`struct Device`): represents hardware. Lifecycle: `device_construct` → `device_add` → `device_start`. Has a parent-child tree, driver binding, and locking.
|
- **Device** (`struct Device`): represents hardware. Lifecycle: `device_construct` → `device_add` → `device_start`. Has a parent-child tree, driver binding, and locking.
|
||||||
- **DeviceType** (`struct DeviceType`): enables discovering devices by category (e.g. `DISPLAY_TYPE`, `TOUCH_TYPE`, `UART_CONTROLLER_TYPE`).
|
- **DeviceType** (`struct DeviceType`): enables discovering devices by category (e.g. `DISPLAY_TYPE`, `TOUCH_TYPE`, `UART_CONTROLLER_TYPE`).
|
||||||
|
|
||||||
Devices are defined via **devicetree** `.dts` files in each `Devices/<id>/` folder. A custom devicetree compiler (`Buildscripts/DevicetreeCompiler/compile.py`) generates C code from these files. Each device folder also has a `module.yaml` specifying dependencies and the `.dts` file.
|
Devices are defined via **devicetree** `.dts` files in each `Devices/<id>/` folder. A custom devicetree compiler (`Buildscripts/DevicetreeCompiler/compile.py`) generates C code from these files. Each device folder also has a `devicetree.yaml` specifying dependencies and the `.dts` file.
|
||||||
|
|||||||
@ -30,7 +30,7 @@ Kernel module names are lower case and postfixed with `-module`.
|
|||||||
Projects that are kernel modules:
|
Projects that are kernel modules:
|
||||||
|
|
||||||
1. Declare a `struct Module`
|
1. Declare a `struct Module`
|
||||||
2. Contain a `module.yaml` file that declares a list of dependencies (for parsing the devicetree) and specifies the bindings folder that contains the drivers' YAML definitions. For example:
|
2. Contain a `devicetree.yaml` file that declares a list of dependencies (for parsing the devicetree) and specifies the bindings folder that contains the drivers' YAML definitions. For example:
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
- TactilityKernel
|
- TactilityKernel
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from source.main import main
|
|||||||
|
|
||||||
def print_help():
|
def print_help():
|
||||||
print("Usage: python compile.py [in_file] [out_path] [arguments]\n")
|
print("Usage: python compile.py [in_file] [out_path] [arguments]\n")
|
||||||
print(f"\t[in_path] the path where the root module.yaml file is")
|
print(f"\t[in_path] the path where the root devicetree.yaml file is")
|
||||||
print(f"\t[out_path] output folder for C file output")
|
print(f"\t[out_path] output folder for C file output")
|
||||||
print("")
|
print("")
|
||||||
print("Optional arguments:\n")
|
print("Optional arguments:\n")
|
||||||
|
|||||||
@ -6,7 +6,7 @@ from source.config import parse_config
|
|||||||
|
|
||||||
def print_help():
|
def print_help():
|
||||||
print("Usage: python dependencies.py [path]\n")
|
print("Usage: python dependencies.py [path]\n")
|
||||||
print("\t[in_file] the path where the root module.yaml file is")
|
print("\t[in_file] the path where the root devicetree.yaml file is")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if "--help" in sys.argv:
|
if "--help" in sys.argv:
|
||||||
@ -28,10 +28,8 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# Device module is added first because it's started first:
|
# Device module is added first because it's started first:
|
||||||
# It creates the root device, so it must exist before its children.
|
# It creates the root device, so it must exist before its children.
|
||||||
# Skipped for dts-only devices: they have no CMakeLists.txt, so there's no component to require.
|
device_dependency = os.path.basename(os.path.normpath(yaml_directory))
|
||||||
if not config.dts_only:
|
print(device_dependency)
|
||||||
device_dependency = os.path.basename(os.path.normpath(yaml_directory))
|
|
||||||
print(device_dependency)
|
|
||||||
for dependency in config.dependencies:
|
for dependency in config.dependencies:
|
||||||
dependency_name = os.path.basename(os.path.normpath(dependency))
|
dependency_name = os.path.basename(os.path.normpath(dependency))
|
||||||
print(dependency_name)
|
print(dependency_name)
|
||||||
|
|||||||
@ -2,18 +2,15 @@ from dataclasses import dataclass, field
|
|||||||
import yaml
|
import yaml
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from .exception import DevicetreeException
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class DeviceTreeConfig:
|
class DeviceTreeConfig:
|
||||||
dependencies: list[str] = field(default_factory=list)
|
dependencies: list[str] = field(default_factory=list)
|
||||||
bindings: list[str] = field(default_factory=list)
|
bindings: list[str] = field(default_factory=list)
|
||||||
dts: str = ""
|
dts: str = ""
|
||||||
dts_only: bool = False
|
|
||||||
|
|
||||||
def parse_config(file_path: str, project_root: str) -> DeviceTreeConfig:
|
def parse_config(file_path: str, project_root: str) -> DeviceTreeConfig:
|
||||||
"""
|
"""
|
||||||
Parses module.yaml and recursively finds dependencies.
|
Parses devicetree.yaml and recursively finds dependencies.
|
||||||
Returns a list of DeviceTreeConfig objects in post-order (dependencies first).
|
Returns a list of DeviceTreeConfig objects in post-order (dependencies first).
|
||||||
"""
|
"""
|
||||||
config = DeviceTreeConfig([], [], "")
|
config = DeviceTreeConfig([], [], "")
|
||||||
@ -25,9 +22,9 @@ def parse_config(file_path: str, project_root: str) -> DeviceTreeConfig:
|
|||||||
return
|
return
|
||||||
visited.add(abs_path)
|
visited.add(abs_path)
|
||||||
|
|
||||||
# Try to see if it's a directory and contains module.yaml
|
# Try to see if it's a directory and contains devicetree.yaml
|
||||||
if os.path.isdir(abs_path):
|
if os.path.isdir(abs_path):
|
||||||
abs_path = os.path.join(abs_path, "module.yaml")
|
abs_path = os.path.join(abs_path, "devicetree.yaml")
|
||||||
|
|
||||||
with open(abs_path, 'r') as f:
|
with open(abs_path, 'r') as f:
|
||||||
data = yaml.safe_load(f) or {}
|
data = yaml.safe_load(f) or {}
|
||||||
@ -43,10 +40,6 @@ def parse_config(file_path: str, project_root: str) -> DeviceTreeConfig:
|
|||||||
config.dependencies += deps
|
config.dependencies += deps
|
||||||
dts_path = data.get("dts", "")
|
dts_path = data.get("dts", "")
|
||||||
config.dts = os.path.join(current_path, dts_path)
|
config.dts = os.path.join(current_path, dts_path)
|
||||||
dts_only = data.get("dts-only", False)
|
|
||||||
if not isinstance(dts_only, bool):
|
|
||||||
raise DevicetreeException(f"'dts-only' must be a boolean, got {dts_only!r}")
|
|
||||||
config.dts_only = dts_only
|
|
||||||
|
|
||||||
bindings = data.get("bindings", "")
|
bindings = data.get("bindings", "")
|
||||||
if bindings:
|
if bindings:
|
||||||
|
|||||||
@ -359,7 +359,7 @@ def generate_devicetree_c(filename: str, items: list[object], bindings: list[Bin
|
|||||||
# Gather module symbols
|
# Gather module symbols
|
||||||
module_symbol_names = []
|
module_symbol_names = []
|
||||||
# Device's own module goes first (started before its dependency modules)
|
# Device's own module goes first (started before its dependency modules)
|
||||||
if config.dts and not config.dts_only:
|
if config.dts:
|
||||||
device_dir = os.path.dirname(os.path.normpath(config.dts))
|
device_dir = os.path.dirname(os.path.normpath(config.dts))
|
||||||
device_name = os.path.basename(device_dir)
|
device_name = os.path.basename(device_dir)
|
||||||
if device_name:
|
if device_name:
|
||||||
|
|||||||
@ -59,7 +59,7 @@ def test_compile_invalid_dts():
|
|||||||
output_dir = os.path.join(tmp_dir, "output")
|
output_dir = os.path.join(tmp_dir, "output")
|
||||||
os.makedirs(output_dir)
|
os.makedirs(output_dir)
|
||||||
|
|
||||||
with open(os.path.join(bad_data_dir, "module.yaml"), "w") as f:
|
with open(os.path.join(bad_data_dir, "devicetree.yaml"), "w") as f:
|
||||||
f.write("dts: bad.dts\nbindings: bindings")
|
f.write("dts: bad.dts\nbindings: bindings")
|
||||||
|
|
||||||
with open(os.path.join(bad_data_dir, "bad.dts"), "w") as f:
|
with open(os.path.join(bad_data_dir, "bad.dts"), "w") as f:
|
||||||
@ -81,7 +81,7 @@ def write_minmax_config(tmp_dir, device_property_line, binding_min=0, binding_ma
|
|||||||
bindings_dir = os.path.join(config_dir, "bindings")
|
bindings_dir = os.path.join(config_dir, "bindings")
|
||||||
os.makedirs(bindings_dir)
|
os.makedirs(bindings_dir)
|
||||||
|
|
||||||
with open(os.path.join(config_dir, "module.yaml"), "w") as f:
|
with open(os.path.join(config_dir, "devicetree.yaml"), "w") as f:
|
||||||
f.write("dts: test.dts\nbindings: bindings")
|
f.write("dts: test.dts\nbindings: bindings")
|
||||||
|
|
||||||
with open(os.path.join(config_dir, "test.dts"), "w") as f:
|
with open(os.path.join(config_dir, "test.dts"), "w") as f:
|
||||||
@ -214,7 +214,7 @@ def write_array_config(tmp_dir, device_property_line):
|
|||||||
bindings_dir = os.path.join(config_dir, "bindings")
|
bindings_dir = os.path.join(config_dir, "bindings")
|
||||||
os.makedirs(bindings_dir)
|
os.makedirs(bindings_dir)
|
||||||
|
|
||||||
with open(os.path.join(config_dir, "module.yaml"), "w") as f:
|
with open(os.path.join(config_dir, "devicetree.yaml"), "w") as f:
|
||||||
f.write("dts: test.dts\nbindings: bindings")
|
f.write("dts: test.dts\nbindings: bindings")
|
||||||
|
|
||||||
with open(os.path.join(config_dir, "test.dts"), "w") as f:
|
with open(os.path.join(config_dir, "test.dts"), "w") as f:
|
||||||
|
|||||||
7
Devices/btt-panda-touch/CMakeLists.txt
Normal file
7
Devices/btt-panda-touch/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
INCLUDE_DIRS "source"
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/rgb-display-module
|
- Drivers/rgb-display-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: bigtreetech,panda-touch.dts
|
dts: bigtreetech,panda-touch.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/btt-panda-touch/source/module.cpp
Normal file
14
Devices/btt-panda-touch/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module btt_panda_touch_module = {
|
||||||
|
.name = "btt-panda-touch",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,195 +0,0 @@
|
|||||||
Apache License
|
|
||||||
==============
|
|
||||||
|
|
||||||
_Version 2.0, January 2004_
|
|
||||||
_<<http://www.apache.org/licenses/>>_
|
|
||||||
|
|
||||||
### Terms and Conditions for use, reproduction, and distribution
|
|
||||||
|
|
||||||
#### 1. Definitions
|
|
||||||
|
|
||||||
“License” shall mean the terms and conditions for use, reproduction, and
|
|
||||||
distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
“Licensor” shall mean the copyright owner or entity authorized by the copyright
|
|
||||||
owner that is granting the License.
|
|
||||||
|
|
||||||
“Legal Entity” shall mean the union of the acting entity and all other entities
|
|
||||||
that control, are controlled by, or are under common control with that entity.
|
|
||||||
For the purposes of this definition, “control” means **(i)** the power, direct or
|
|
||||||
indirect, to cause the direction or management of such entity, whether by
|
|
||||||
contract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or **(iii)** beneficial ownership of such entity.
|
|
||||||
|
|
||||||
“You” (or “Your”) shall mean an individual or Legal Entity exercising
|
|
||||||
permissions granted by this License.
|
|
||||||
|
|
||||||
“Source” form shall mean the preferred form for making modifications, including
|
|
||||||
but not limited to software source code, documentation source, and configuration
|
|
||||||
files.
|
|
||||||
|
|
||||||
“Object” form shall mean any form resulting from mechanical transformation or
|
|
||||||
translation of a Source form, including but not limited to compiled object code,
|
|
||||||
generated documentation, and conversions to other media types.
|
|
||||||
|
|
||||||
“Work” shall mean the work of authorship, whether in Source or Object form, made
|
|
||||||
available under the License, as indicated by a copyright notice that is included
|
|
||||||
in or attached to the work (an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
“Derivative Works” shall mean any work, whether in Source or Object form, that
|
|
||||||
is based on (or derived from) the Work and for which the editorial revisions,
|
|
||||||
annotations, elaborations, or other modifications represent, as a whole, an
|
|
||||||
original work of authorship. For the purposes of this License, Derivative Works
|
|
||||||
shall not include works that remain separable from, or merely link (or bind by
|
|
||||||
name) to the interfaces of, the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
“Contribution” shall mean any work of authorship, including the original version
|
|
||||||
of the Work and any modifications or additions to that Work or Derivative Works
|
|
||||||
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
|
||||||
by the copyright owner or by an individual or Legal Entity authorized to submit
|
|
||||||
on behalf of the copyright owner. For the purposes of this definition,
|
|
||||||
“submitted” means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems, and
|
|
||||||
issue tracking systems that are managed by, or on behalf of, the Licensor for
|
|
||||||
the purpose of discussing and improving the Work, but excluding communication
|
|
||||||
that is conspicuously marked or otherwise designated in writing by the copyright
|
|
||||||
owner as “Not a Contribution.”
|
|
||||||
|
|
||||||
“Contributor” shall mean Licensor and any individual or Legal Entity on behalf
|
|
||||||
of whom a Contribution has been received by Licensor and subsequently
|
|
||||||
incorporated within the Work.
|
|
||||||
|
|
||||||
#### 2. Grant of Copyright License
|
|
||||||
|
|
||||||
Subject to the terms and conditions of this License, each Contributor hereby
|
|
||||||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
||||||
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
||||||
Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
#### 3. Grant of Patent License
|
|
||||||
|
|
||||||
Subject to the terms and conditions of this License, each Contributor hereby
|
|
||||||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
||||||
irrevocable (except as stated in this section) patent license to make, have
|
|
||||||
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
|
|
||||||
such license applies only to those patent claims licensable by such Contributor
|
|
||||||
that are necessarily infringed by their Contribution(s) alone or by combination
|
|
||||||
of their Contribution(s) with the Work to which such Contribution(s) was
|
|
||||||
submitted. If You institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
|
|
||||||
Contribution incorporated within the Work constitutes direct or contributory
|
|
||||||
patent infringement, then any patent licenses granted to You under this License
|
|
||||||
for that Work shall terminate as of the date such litigation is filed.
|
|
||||||
|
|
||||||
#### 4. Redistribution
|
|
||||||
|
|
||||||
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
|
||||||
in any medium, with or without modifications, and in Source or Object form,
|
|
||||||
provided that You meet the following conditions:
|
|
||||||
|
|
||||||
* **(a)** You must give any other recipients of the Work or Derivative Works a copy of
|
|
||||||
this License; and
|
|
||||||
* **(b)** You must cause any modified files to carry prominent notices stating that You
|
|
||||||
changed the files; and
|
|
||||||
* **(c)** You must retain, in the Source form of any Derivative Works that You distribute,
|
|
||||||
all copyright, patent, trademark, and attribution notices from the Source form
|
|
||||||
of the Work, excluding those notices that do not pertain to any part of the
|
|
||||||
Derivative Works; and
|
|
||||||
* **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any
|
|
||||||
Derivative Works that You distribute must include a readable copy of the
|
|
||||||
attribution notices contained within such NOTICE file, excluding those notices
|
|
||||||
that do not pertain to any part of the Derivative Works, in at least one of the
|
|
||||||
following places: within a NOTICE text file distributed as part of the
|
|
||||||
Derivative Works; within the Source form or documentation, if provided along
|
|
||||||
with the Derivative Works; or, within a display generated by the Derivative
|
|
||||||
Works, if and wherever such third-party notices normally appear. The contents of
|
|
||||||
the NOTICE file are for informational purposes only and do not modify the
|
|
||||||
License. You may add Your own attribution notices within Derivative Works that
|
|
||||||
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
|
||||||
provided that such additional attribution notices cannot be construed as
|
|
||||||
modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and may provide
|
|
||||||
additional or different license terms and conditions for use, reproduction, or
|
|
||||||
distribution of Your modifications, or for any such Derivative Works as a whole,
|
|
||||||
provided Your use, reproduction, and distribution of the Work otherwise complies
|
|
||||||
with the conditions stated in this License.
|
|
||||||
|
|
||||||
#### 5. Submission of Contributions
|
|
||||||
|
|
||||||
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
|
||||||
for inclusion in the Work by You to the Licensor shall be under the terms and
|
|
||||||
conditions of this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify the terms of
|
|
||||||
any separate license agreement you may have executed with Licensor regarding
|
|
||||||
such Contributions.
|
|
||||||
|
|
||||||
#### 6. Trademarks
|
|
||||||
|
|
||||||
This License does not grant permission to use the trade names, trademarks,
|
|
||||||
service marks, or product names of the Licensor, except as required for
|
|
||||||
reasonable and customary use in describing the origin of the Work and
|
|
||||||
reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
#### 7. Disclaimer of Warranty
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, Licensor provides the
|
|
||||||
Work (and each Contributor provides its Contributions) on an “AS IS” BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
|
||||||
including, without limitation, any warranties or conditions of TITLE,
|
|
||||||
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
|
||||||
solely responsible for determining the appropriateness of using or
|
|
||||||
redistributing the Work and assume any risks associated with Your exercise of
|
|
||||||
permissions under this License.
|
|
||||||
|
|
||||||
#### 8. Limitation of Liability
|
|
||||||
|
|
||||||
In no event and under no legal theory, whether in tort (including negligence),
|
|
||||||
contract, or otherwise, unless required by applicable law (such as deliberate
|
|
||||||
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special, incidental,
|
|
||||||
or consequential damages of any character arising as a result of this License or
|
|
||||||
out of the use or inability to use the Work (including but not limited to
|
|
||||||
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
|
||||||
any and all other commercial damages or losses), even if such Contributor has
|
|
||||||
been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
#### 9. Accepting Warranty or Additional Liability
|
|
||||||
|
|
||||||
While redistributing the Work or Derivative Works thereof, You may choose to
|
|
||||||
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
|
||||||
other liability obligations and/or rights consistent with this License. However,
|
|
||||||
in accepting such obligations, You may act only on Your own behalf and on Your
|
|
||||||
sole responsibility, not on behalf of any other Contributor, and only if You
|
|
||||||
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason of your
|
|
||||||
accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
_END OF TERMS AND CONDITIONS_
|
|
||||||
|
|
||||||
### APPENDIX: How to apply the Apache License to your work
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following boilerplate
|
|
||||||
notice, with the fields enclosed by brackets `[]` replaced with your own
|
|
||||||
identifying information. (Don't include the brackets!) The text should be
|
|
||||||
enclosed in the appropriate comment syntax for the file format. We also
|
|
||||||
recommend that a file or class name and description of purpose be included on
|
|
||||||
the same “printed page” as the copyright notice for easier identification within
|
|
||||||
third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
|
||||||
@ -1,99 +0,0 @@
|
|||||||
/dts-v1/;
|
|
||||||
|
|
||||||
#include <tactility/bindings/root.h>
|
|
||||||
#include <tactility/bindings/esp32_wifi_pinned.h>
|
|
||||||
#include <tactility/bindings/esp32_gpio.h>
|
|
||||||
#include <tactility/bindings/esp32_i2c_master.h>
|
|
||||||
#include <tactility/bindings/esp32_spi.h>
|
|
||||||
#include <tactility/bindings/esp32_sdspi.h>
|
|
||||||
#include <tactility/bindings/esp32_pwm_ledc.h>
|
|
||||||
#include <tactility/bindings/pwm_backlight.h>
|
|
||||||
#include <tactility/bindings/esp32_usbdevice.h>
|
|
||||||
#include <bindings/st7789_soft_i8080.h>
|
|
||||||
#include <bindings/cst816s.h>
|
|
||||||
#include <bindings/esp32_dac_speaker.h>
|
|
||||||
|
|
||||||
/ {
|
|
||||||
compatible = "root";
|
|
||||||
model = "CYD 2432S022C";
|
|
||||||
|
|
||||||
wifi0 {
|
|
||||||
compatible = "espressif,esp32-wifi-pinned";
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio0 {
|
|
||||||
compatible = "espressif,esp32-gpio";
|
|
||||||
gpio-count = <40>;
|
|
||||||
};
|
|
||||||
|
|
||||||
i2c0 {
|
|
||||||
compatible = "espressif,esp32-i2c-master";
|
|
||||||
port = <I2C_NUM_0>;
|
|
||||||
clock-frequency = <400000>;
|
|
||||||
pin-sda = <&gpio0 21 GPIO_FLAG_NONE>;
|
|
||||||
pin-scl = <&gpio0 22 GPIO_FLAG_NONE>;
|
|
||||||
|
|
||||||
touch {
|
|
||||||
compatible = "hynitron,cst816s";
|
|
||||||
reg = <0x15>;
|
|
||||||
x-max = <240>;
|
|
||||||
y-max = <320>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
display_backlight_pwm {
|
|
||||||
compatible = "espressif,esp32-pwm-ledc";
|
|
||||||
pin = <&gpio0 0 GPIO_FLAG_NONE>;
|
|
||||||
period-ns = <33333>;
|
|
||||||
ledc-timer = <0>;
|
|
||||||
ledc-channel = <0>;
|
|
||||||
};
|
|
||||||
|
|
||||||
display_backlight {
|
|
||||||
compatible = "pwm-backlight";
|
|
||||||
// Off by default so display power-on won't show the screen from before the last power loss.
|
|
||||||
// The display backlight is turned on during the boot process.
|
|
||||||
status = "disabled";
|
|
||||||
pwm = <&display_backlight_pwm>;
|
|
||||||
};
|
|
||||||
|
|
||||||
display {
|
|
||||||
compatible = "sitronix,st7789-soft-i8080";
|
|
||||||
horizontal-resolution = <240>;
|
|
||||||
vertical-resolution = <320>;
|
|
||||||
pin-d0 = <&gpio0 15 GPIO_FLAG_NONE>;
|
|
||||||
pin-d1 = <&gpio0 13 GPIO_FLAG_NONE>;
|
|
||||||
pin-d2 = <&gpio0 12 GPIO_FLAG_NONE>;
|
|
||||||
pin-d3 = <&gpio0 14 GPIO_FLAG_NONE>;
|
|
||||||
pin-d4 = <&gpio0 27 GPIO_FLAG_NONE>;
|
|
||||||
pin-d5 = <&gpio0 25 GPIO_FLAG_NONE>;
|
|
||||||
pin-d6 = <&gpio0 33 GPIO_FLAG_NONE>;
|
|
||||||
pin-d7 = <&gpio0 32 GPIO_FLAG_NONE>;
|
|
||||||
pin-cs = <&gpio0 17 GPIO_FLAG_NONE>;
|
|
||||||
pin-dc = <&gpio0 16 GPIO_FLAG_NONE>;
|
|
||||||
pin-wr = <&gpio0 4 GPIO_FLAG_NONE>;
|
|
||||||
pin-rd = <&gpio0 2 GPIO_FLAG_NONE>;
|
|
||||||
backlight = <&display_backlight>;
|
|
||||||
};
|
|
||||||
|
|
||||||
spi1 {
|
|
||||||
compatible = "espressif,esp32-spi";
|
|
||||||
host = <SPI3_HOST>;
|
|
||||||
cs-gpios = <&gpio0 5 GPIO_FLAG_NONE>;
|
|
||||||
pin-mosi = <&gpio0 23 GPIO_FLAG_NONE>;
|
|
||||||
pin-miso = <&gpio0 19 GPIO_FLAG_NONE>;
|
|
||||||
pin-sclk = <&gpio0 18 GPIO_FLAG_NONE>;
|
|
||||||
miso-pull-up;
|
|
||||||
|
|
||||||
sdcard@0 {
|
|
||||||
compatible = "espressif,esp32-sdspi";
|
|
||||||
frequency-khz = <20000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
speaker {
|
|
||||||
compatible = "espressif,esp32-dac-speaker";
|
|
||||||
pin = <&gpio0 26 GPIO_FLAG_NONE>;
|
|
||||||
sample-rate = <16000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
general.vendor=CYD
|
|
||||||
general.name=2432S022C
|
|
||||||
|
|
||||||
apps.launcherAppId=tactility.launcher
|
|
||||||
|
|
||||||
hardware.target=ESP32
|
|
||||||
hardware.flashSize=4MB
|
|
||||||
hardware.spiRam=false
|
|
||||||
|
|
||||||
storage.userDataLocation=SD
|
|
||||||
|
|
||||||
display.size=2.2"
|
|
||||||
display.shape=rectangle
|
|
||||||
display.dpi=182
|
|
||||||
|
|
||||||
lvgl.colorDepth=16
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
dependencies:
|
|
||||||
- Platforms/platform-esp32
|
|
||||||
- Drivers/st7789-soft-i8080-module
|
|
||||||
- Drivers/cst816s-module
|
|
||||||
- Drivers/esp32-dac-speaker-module
|
|
||||||
- Drivers/audio-stream-module
|
|
||||||
dts: cyd,2432s022c.dts
|
|
||||||
dts-only: true
|
|
||||||
6
Devices/cyd-2432s024c/CMakeLists.txt
Normal file
6
Devices/cyd-2432s024c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9341-module
|
- Drivers/ili9341-module
|
||||||
- Drivers/cst816s-module
|
- Drivers/cst816s-module
|
||||||
dts: cyd,2432s024c.dts
|
dts: cyd,2432s024c.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-2432s024c/source/module.cpp
Normal file
14
Devices/cyd-2432s024c/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_2432s024c_module = {
|
||||||
|
.name = "cyd-2432s024c",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-2432s024r/CMakeLists.txt
Normal file
6
Devices/cyd-2432s024r/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9341-module
|
- Drivers/ili9341-module
|
||||||
- Drivers/xpt2046-module
|
- Drivers/xpt2046-module
|
||||||
dts: cyd,2432s024r.dts
|
dts: cyd,2432s024r.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-2432s024r/source/module.cpp
Normal file
14
Devices/cyd-2432s024r/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_2432s024r_module = {
|
||||||
|
.name = "cyd-2432s024r",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-2432s028r/CMakeLists.txt
Normal file
6
Devices/cyd-2432s028r/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9341-module
|
- Drivers/ili9341-module
|
||||||
- Drivers/xpt2046-softspi-module
|
- Drivers/xpt2046-softspi-module
|
||||||
dts: cyd,2432s028r.dts
|
dts: cyd,2432s028r.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-2432s028r/source/module.cpp
Normal file
14
Devices/cyd-2432s028r/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_2432s028r_module = {
|
||||||
|
.name = "cyd-2432s028r",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-2432s028rv3/CMakeLists.txt
Normal file
6
Devices/cyd-2432s028rv3/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/st7789-module
|
- Drivers/st7789-module
|
||||||
- Drivers/xpt2046-softspi-module
|
- Drivers/xpt2046-softspi-module
|
||||||
dts: cyd,2432s028rv3.dts
|
dts: cyd,2432s028rv3.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-2432s028rv3/source/module.cpp
Normal file
14
Devices/cyd-2432s028rv3/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_2432s028rv3_module = {
|
||||||
|
.name = "cyd-2432s028rv3",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-2432s032c/CMakeLists.txt
Normal file
6
Devices/cyd-2432s032c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9341-module
|
- Drivers/ili9341-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: cyd,2432s032c.dts
|
dts: cyd,2432s032c.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-2432s032c/source/module.cpp
Normal file
14
Devices/cyd-2432s032c/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_2432s032c_module = {
|
||||||
|
.name = "cyd-2432s032c",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-3248s035c/CMakeLists.txt
Normal file
6
Devices/cyd-3248s035c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/st7796-module
|
- Drivers/st7796-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: cyd,3248s035c.dts
|
dts: cyd,3248s035c.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-3248s035c/source/module.cpp
Normal file
14
Devices/cyd-3248s035c/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_3248s035c_module = {
|
||||||
|
.name = "cyd-3248s035c",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-4848s040c/CMakeLists.txt
Normal file
6
Devices/cyd-4848s040c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/st7701-module
|
- Drivers/st7701-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: cyd,4848s040c.dts
|
dts: cyd,4848s040c.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-4848s040c/source/module.cpp
Normal file
14
Devices/cyd-4848s040c/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_4848s040c_module = {
|
||||||
|
.name = "cyd-4848s040c",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-8048s043c/CMakeLists.txt
Normal file
6
Devices/cyd-8048s043c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/rgb-display-module
|
- Drivers/rgb-display-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: cyd,8048s043c.dts
|
dts: cyd,8048s043c.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-8048s043c/source/module.cpp
Normal file
14
Devices/cyd-8048s043c/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_8048s043c_module = {
|
||||||
|
.name = "cyd-8048s043c",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-e32r28t/CMakeLists.txt
Normal file
6
Devices/cyd-e32r28t/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9341-module
|
- Drivers/ili9341-module
|
||||||
- Drivers/xpt2046-softspi-module
|
- Drivers/xpt2046-softspi-module
|
||||||
dts: cyd,e32r28t.dts
|
dts: cyd,e32r28t.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-e32r28t/source/module.cpp
Normal file
14
Devices/cyd-e32r28t/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_e32r28t_module = {
|
||||||
|
.name = "cyd-e32r28t",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/cyd-e32r32p/CMakeLists.txt
Normal file
6
Devices/cyd-e32r32p/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/st7789-module
|
- Drivers/st7789-module
|
||||||
- Drivers/xpt2046-module
|
- Drivers/xpt2046-module
|
||||||
dts: cyd,e32r32p.dts
|
dts: cyd,e32r32p.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/cyd-e32r32p/source/module.cpp
Normal file
14
Devices/cyd-e32r32p/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module cyd_e32r32p_module = {
|
||||||
|
.name = "cyd-e32r32p",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/elecrow-crowpanel-advance-28/CMakeLists.txt
Normal file
6
Devices/elecrow-crowpanel-advance-28/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/st7789-module
|
- Drivers/st7789-module
|
||||||
- Drivers/ft5x06-module
|
- Drivers/ft5x06-module
|
||||||
dts: elecrow,crowpanel-advance-28.dts
|
dts: elecrow,crowpanel-advance-28.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/elecrow-crowpanel-advance-28/source/module.cpp
Normal file
14
Devices/elecrow-crowpanel-advance-28/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module elecrow_crowpanel_advance_28_module = {
|
||||||
|
.name = "elecrow-crowpanel-advance-28",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/elecrow-crowpanel-advance-35/CMakeLists.txt
Normal file
6
Devices/elecrow-crowpanel-advance-35/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9488-module
|
- Drivers/ili9488-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: elecrow,crowpanel-advance-35.dts
|
dts: elecrow,crowpanel-advance-35.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/elecrow-crowpanel-advance-35/source/module.cpp
Normal file
14
Devices/elecrow-crowpanel-advance-35/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module elecrow_crowpanel_advance_35_module = {
|
||||||
|
.name = "elecrow-crowpanel-advance-35",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
7
Devices/elecrow-crowpanel-advance-50/CMakeLists.txt
Normal file
7
Devices/elecrow-crowpanel-advance-50/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
INCLUDE_DIRS "source"
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -4,4 +4,3 @@ dependencies:
|
|||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
- Drivers/tca9534-module
|
- Drivers/tca9534-module
|
||||||
dts: elecrow,crowpanel-advance-50.dts
|
dts: elecrow,crowpanel-advance-50.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/elecrow-crowpanel-advance-50/source/module.cpp
Normal file
14
Devices/elecrow-crowpanel-advance-50/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module elecrow_crowpanel_advance_50_module = {
|
||||||
|
.name = "elecrow-crowpanel-advance-50",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/elecrow-crowpanel-basic-28/CMakeLists.txt
Normal file
6
Devices/elecrow-crowpanel-basic-28/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9341-module
|
- Drivers/ili9341-module
|
||||||
- Drivers/xpt2046-module
|
- Drivers/xpt2046-module
|
||||||
dts: elecrow,crowpanel-basic-28.dts
|
dts: elecrow,crowpanel-basic-28.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/elecrow-crowpanel-basic-28/source/module.cpp
Normal file
14
Devices/elecrow-crowpanel-basic-28/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module elecrow_crowpanel_basic_28_module = {
|
||||||
|
.name = "elecrow-crowpanel-basic-28",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/elecrow-crowpanel-basic-35/CMakeLists.txt
Normal file
6
Devices/elecrow-crowpanel-basic-35/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ili9488-module
|
- Drivers/ili9488-module
|
||||||
- Drivers/xpt2046-module
|
- Drivers/xpt2046-module
|
||||||
dts: elecrow,crowpanel-basic-35.dts
|
dts: elecrow,crowpanel-basic-35.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/elecrow-crowpanel-basic-35/source/module.cpp
Normal file
14
Devices/elecrow-crowpanel-basic-35/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module elecrow_crowpanel_basic_35_module = {
|
||||||
|
.name = "elecrow-crowpanel-basic-35",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
7
Devices/elecrow-crowpanel-basic-50/CMakeLists.txt
Normal file
7
Devices/elecrow-crowpanel-basic-50/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
INCLUDE_DIRS "source"
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/rgb-display-module
|
- Drivers/rgb-display-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: elecrow,crowpanel-basic-50.dts
|
dts: elecrow,crowpanel-basic-50.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/elecrow-crowpanel-basic-50/source/module.cpp
Normal file
14
Devices/elecrow-crowpanel-basic-50/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module elecrow_crowpanel_basic_50_module = {
|
||||||
|
.name = "elecrow-crowpanel-basic-50",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
4
Devices/es3c28p/CMakeLists.txt
Normal file
4
Devices/es3c28p/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
idf_component_register(
|
||||||
|
SRCS "source/module.cpp"
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -5,4 +5,3 @@ dependencies:
|
|||||||
- Drivers/es8311-module
|
- Drivers/es8311-module
|
||||||
- Drivers/audio-stream-module
|
- Drivers/audio-stream-module
|
||||||
dts: es3c28p.dts
|
dts: es3c28p.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/es3c28p/source/module.cpp
Normal file
14
Devices/es3c28p/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module es3c28p_module = {
|
||||||
|
.name = "es3c28p",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/generic-esp32/CMakeLists.txt
Normal file
6
Devices/generic-esp32/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -1,4 +1,3 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- Platforms/platform-esp32
|
- Platforms/platform-esp32
|
||||||
dts: generic,esp32.dts
|
dts: generic,esp32.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/generic-esp32/source/module.cpp
Normal file
14
Devices/generic-esp32/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module generic_esp32_module = {
|
||||||
|
.name = "generic-esp32",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/generic-esp32c6/CMakeLists.txt
Normal file
6
Devices/generic-esp32c6/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -1,4 +1,3 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- Platforms/platform-esp32
|
- Platforms/platform-esp32
|
||||||
dts: generic,esp32c6.dts
|
dts: generic,esp32c6.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/generic-esp32c6/source/module.cpp
Normal file
14
Devices/generic-esp32c6/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module generic_esp32c6_module = {
|
||||||
|
.name = "generic-esp32c6",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/generic-esp32p4/CMakeLists.txt
Normal file
6
Devices/generic-esp32p4/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -1,4 +1,3 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- Platforms/platform-esp32
|
- Platforms/platform-esp32
|
||||||
dts: generic,esp32p4.dts
|
dts: generic,esp32p4.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/generic-esp32p4/source/module.cpp
Normal file
14
Devices/generic-esp32p4/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module generic_esp32p4_module = {
|
||||||
|
.name = "generic-esp32p4",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/generic-esp32s3/CMakeLists.txt
Normal file
6
Devices/generic-esp32s3/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -1,4 +1,3 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- Platforms/platform-esp32
|
- Platforms/platform-esp32
|
||||||
dts: generic,esp32s3.dts
|
dts: generic,esp32s3.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/generic-esp32s3/source/module.cpp
Normal file
14
Devices/generic-esp32s3/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module generic_esp32s3_module = {
|
||||||
|
.name = "generic-esp32s3",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/guition-jc1060p470ciwy/CMakeLists.txt
Normal file
6
Devices/guition-jc1060p470ciwy/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/jd9165-module
|
- Drivers/jd9165-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: guition,jc1060p470ciwy.dts
|
dts: guition,jc1060p470ciwy.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/guition-jc1060p470ciwy/source/module.cpp
Normal file
14
Devices/guition-jc1060p470ciwy/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module guition_jc1060p470ciwy_module = {
|
||||||
|
.name = "guition-jc1060p470ciwy",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/guition-jc2432w328c/CMakeLists.txt
Normal file
6
Devices/guition-jc2432w328c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/st7789-module
|
- Drivers/st7789-module
|
||||||
- Drivers/cst816s-module
|
- Drivers/cst816s-module
|
||||||
dts: guition,jc2432w328c.dts
|
dts: guition,jc2432w328c.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/guition-jc2432w328c/source/module.cpp
Normal file
14
Devices/guition-jc2432w328c/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module guition_jc2432w328c_module = {
|
||||||
|
.name = "guition-jc2432w328c",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/guition-jc8048w550c/CMakeLists.txt
Normal file
6
Devices/guition-jc8048w550c/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -5,4 +5,3 @@ dependencies:
|
|||||||
- Drivers/rgb-display-module
|
- Drivers/rgb-display-module
|
||||||
- Drivers/gt911-module
|
- Drivers/gt911-module
|
||||||
dts: guition,jc8048w550c.dts
|
dts: guition,jc8048w550c.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/guition-jc8048w550c/source/module.cpp
Normal file
14
Devices/guition-jc8048w550c/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module guition_jc8048w550c_module = {
|
||||||
|
.name = "guition-jc8048w550c",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/heltec-wifi-lora-32-v3/CMakeLists.txt
Normal file
6
Devices/heltec-wifi-lora-32-v3/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/ssd1306-module
|
- Drivers/ssd1306-module
|
||||||
- Drivers/button-control-module
|
- Drivers/button-control-module
|
||||||
dts: heltec,wifi-lora-32-v3.dts
|
dts: heltec,wifi-lora-32-v3.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/heltec-wifi-lora-32-v3/source/module.cpp
Normal file
14
Devices/heltec-wifi-lora-32-v3/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module heltec_wifi_lora_32_v3_module = {
|
||||||
|
.name = "heltec-wifi-lora-32-v3",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
7
Devices/lilygo-tdeck-max/CMakeLists.txt
Normal file
7
Devices/lilygo-tdeck-max/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
INCLUDE_DIRS "source"
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -10,4 +10,3 @@ dependencies:
|
|||||||
- Drivers/drv2605-module
|
- Drivers/drv2605-module
|
||||||
- Drivers/gps-generic-module
|
- Drivers/gps-generic-module
|
||||||
dts: lilygo,tdeck-max.dts
|
dts: lilygo,tdeck-max.dts
|
||||||
dts-only: true
|
|
||||||
14
Devices/lilygo-tdeck-max/source/module.cpp
Normal file
14
Devices/lilygo-tdeck-max/source/module.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include <tactility/module.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
Module lilygo_tdeck_max_module = {
|
||||||
|
.name = "lilygo-tdeck-max",
|
||||||
|
.start = nullptr,
|
||||||
|
.stop = nullptr,
|
||||||
|
.drivers = nullptr,
|
||||||
|
.symbols = nullptr,
|
||||||
|
.internal = nullptr
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
6
Devices/lilygo-tdisplay/CMakeLists.txt
Normal file
6
Devices/lilygo-tdisplay/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
file(GLOB_RECURSE SOURCE_FILES source/*.c*)
|
||||||
|
|
||||||
|
idf_component_register(
|
||||||
|
SRCS ${SOURCE_FILES}
|
||||||
|
REQUIRES TactilityKernel
|
||||||
|
)
|
||||||
@ -3,4 +3,3 @@ dependencies:
|
|||||||
- Drivers/st7789-module
|
- Drivers/st7789-module
|
||||||
- Drivers/button-control-module
|
- Drivers/button-control-module
|
||||||
dts: lilygo,tdisplay.dts
|
dts: lilygo,tdisplay.dts
|
||||||
dts-only: true
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user