mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-23 08:55:04 +00:00
Compare commits
3 Commits
b4966c36f6
...
48145deb3a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48145deb3a | ||
|
|
9ca29b7fef | ||
|
|
a3d7a2745d |
7
Devices/btt-panda-touch/Source/Drivers.cpp
Normal file
7
Devices/btt-panda-touch/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/btt-panda-touch/devicetree.yaml
Normal file
3
Devices/btt-panda-touch/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-2432s024c/Source/Drivers.cpp
Normal file
7
Devices/cyd-2432s024c/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-2432s024c/devicetree.yaml
Normal file
3
Devices/cyd-2432s024c/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-2432s028r/Source/Drivers.cpp
Normal file
7
Devices/cyd-2432s028r/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-2432s028r/devicetree.yaml
Normal file
3
Devices/cyd-2432s028r/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-2432s028rv3/Source/Drivers.cpp
Normal file
7
Devices/cyd-2432s028rv3/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-2432s028rv3/devicetree.yaml
Normal file
3
Devices/cyd-2432s028rv3/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-2432s032c/Source/Drivers.cpp
Normal file
7
Devices/cyd-2432s032c/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-2432s032c/devicetree.yaml
Normal file
3
Devices/cyd-2432s032c/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-4848s040c/Source/Drivers.cpp
Normal file
7
Devices/cyd-4848s040c/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-4848s040c/devicetree.yaml
Normal file
3
Devices/cyd-4848s040c/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-8048s043c/Source/Drivers.cpp
Normal file
7
Devices/cyd-8048s043c/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-8048s043c/devicetree.yaml
Normal file
3
Devices/cyd-8048s043c/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-e32r28t/Source/Drivers.cpp
Normal file
7
Devices/cyd-e32r28t/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-e32r28t/devicetree.yaml
Normal file
3
Devices/cyd-e32r28t/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/cyd-e32r32p/Source/Drivers.cpp
Normal file
7
Devices/cyd-e32r32p/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/cyd-e32r32p/devicetree.yaml
Normal file
3
Devices/cyd-e32r32p/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/elecrow-crowpanel-advance-28/Source/Drivers.cpp
Normal file
7
Devices/elecrow-crowpanel-advance-28/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/elecrow-crowpanel-advance-28/devicetree.yaml
Normal file
3
Devices/elecrow-crowpanel-advance-28/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/elecrow-crowpanel-advance-35/Source/Drivers.cpp
Normal file
7
Devices/elecrow-crowpanel-advance-35/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/elecrow-crowpanel-advance-35/devicetree.yaml
Normal file
3
Devices/elecrow-crowpanel-advance-35/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/elecrow-crowpanel-advance-50/Source/Drivers.cpp
Normal file
7
Devices/elecrow-crowpanel-advance-50/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/elecrow-crowpanel-advance-50/devicetree.yaml
Normal file
3
Devices/elecrow-crowpanel-advance-50/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/elecrow-crowpanel-basic-28/Source/Drivers.cpp
Normal file
7
Devices/elecrow-crowpanel-basic-28/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/elecrow-crowpanel-basic-28/devicetree.yaml
Normal file
3
Devices/elecrow-crowpanel-basic-28/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/elecrow-crowpanel-basic-35/Source/Drivers.cpp
Normal file
7
Devices/elecrow-crowpanel-basic-35/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/elecrow-crowpanel-basic-35/devicetree.yaml
Normal file
3
Devices/elecrow-crowpanel-basic-35/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/elecrow-crowpanel-basic-50/Source/Drivers.cpp
Normal file
7
Devices/elecrow-crowpanel-basic-50/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/elecrow-crowpanel-basic-50/devicetree.yaml
Normal file
3
Devices/elecrow-crowpanel-basic-50/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/generic-esp32/Source/Drivers.cpp
Normal file
7
Devices/generic-esp32/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/generic-esp32/devicetree.yaml
Normal file
3
Devices/generic-esp32/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/generic-esp32c6/Source/Drivers.cpp
Normal file
7
Devices/generic-esp32c6/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/generic-esp32c6/devicetree.yaml
Normal file
3
Devices/generic-esp32c6/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/generic-esp32p4/Source/Drivers.cpp
Normal file
7
Devices/generic-esp32p4/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/generic-esp32p4/devicetree.yaml
Normal file
3
Devices/generic-esp32p4/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/generic-esp32s3/Source/Drivers.cpp
Normal file
7
Devices/generic-esp32s3/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/generic-esp32s3/devicetree.yaml
Normal file
3
Devices/generic-esp32s3/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/guition-jc1060p470ciwy/Source/Drivers.cpp
Normal file
7
Devices/guition-jc1060p470ciwy/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/guition-jc1060p470ciwy/devicetree.yaml
Normal file
3
Devices/guition-jc1060p470ciwy/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/guition-jc2432w328c/Source/Drivers.cpp
Normal file
7
Devices/guition-jc2432w328c/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/guition-jc2432w328c/devicetree.yaml
Normal file
3
Devices/guition-jc2432w328c/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/guition-jc8048w550c/Source/Drivers.cpp
Normal file
7
Devices/guition-jc8048w550c/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/guition-jc8048w550c/devicetree.yaml
Normal file
3
Devices/guition-jc8048w550c/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/heltec-wifi-lora-32-v3/Source/Drivers.cpp
Normal file
7
Devices/heltec-wifi-lora-32-v3/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/heltec-wifi-lora-32-v3/devicetree.yaml
Normal file
3
Devices/heltec-wifi-lora-32-v3/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/lilygo-tdeck/Source/Drivers.cpp
Normal file
7
Devices/lilygo-tdeck/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/lilygo-tdeck/devicetree.yaml
Normal file
3
Devices/lilygo-tdeck/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/lilygo-tdisplay-s3/Source/Drivers.cpp
Normal file
7
Devices/lilygo-tdisplay-s3/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/lilygo-tdisplay-s3/devicetree.yaml
Normal file
3
Devices/lilygo-tdisplay-s3/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/lilygo-tdisplay/Source/Drivers.cpp
Normal file
7
Devices/lilygo-tdisplay/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/lilygo-tdisplay/devicetree.yaml
Normal file
3
Devices/lilygo-tdisplay/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/lilygo-tdongle-s3/Source/Drivers.cpp
Normal file
7
Devices/lilygo-tdongle-s3/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/lilygo-tdongle-s3/devicetree.yaml
Normal file
3
Devices/lilygo-tdongle-s3/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
10
Devices/lilygo-tlora-pager/Source/Drivers.cpp
Normal file
10
Devices/lilygo-tlora-pager/Source/Drivers.cpp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include <Tactility/Driver.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
extern Driver tlora_pager_driver;
|
||||||
|
driver_construct(&tlora_pager_driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
10
Devices/lilygo-tlora-pager/Source/drivers/Register.cpp
Normal file
10
Devices/lilygo-tlora-pager/Source/drivers/Register.cpp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include <Tactility/Driver.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
extern Driver tlora_pager_driver;
|
||||||
|
driver_construct(&tlora_pager_driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -14,7 +14,7 @@ static int stop(Device* device) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Driver tlora_pager_driver = {
|
extern Driver tlora_pager_driver = {
|
||||||
.name = "T-Lora Pager",
|
.name = "T-Lora Pager",
|
||||||
.compatible = (const char*[]) { "lilygo,tlora-pager", nullptr },
|
.compatible = (const char*[]) { "lilygo,tlora-pager", nullptr },
|
||||||
.start_device = start,
|
.start_device = start,
|
||||||
|
|||||||
7
Devices/m5stack-cardputer-adv/Source/Drivers.cpp
Normal file
7
Devices/m5stack-cardputer-adv/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/m5stack-cardputer-adv/devicetree.yaml
Normal file
3
Devices/m5stack-cardputer-adv/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/m5stack-cardputer/Source/Drivers.cpp
Normal file
7
Devices/m5stack-cardputer/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/m5stack-cardputer/devicetree.yaml
Normal file
3
Devices/m5stack-cardputer/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/m5stack-core2/Source/Drivers.cpp
Normal file
7
Devices/m5stack-core2/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/m5stack-core2/devicetree.yaml
Normal file
3
Devices/m5stack-core2/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/m5stack-cores3/Source/Drivers.cpp
Normal file
7
Devices/m5stack-cores3/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/m5stack-cores3/devicetree.yaml
Normal file
3
Devices/m5stack-cores3/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/m5stack-stickc-plus/Source/Drivers.cpp
Normal file
7
Devices/m5stack-stickc-plus/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/m5stack-stickc-plus/devicetree.yaml
Normal file
3
Devices/m5stack-stickc-plus/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/m5stack-stickc-plus2/Source/Drivers.cpp
Normal file
7
Devices/m5stack-stickc-plus2/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/m5stack-stickc-plus2/devicetree.yaml
Normal file
3
Devices/m5stack-stickc-plus2/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
8
Devices/placeholder.dts
Normal file
8
Devices/placeholder.dts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include <Tactility/bindings/root.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "root";
|
||||||
|
model = "Placeholder";
|
||||||
|
};
|
||||||
7
Devices/simulator/Source/Drivers.cpp
Normal file
7
Devices/simulator/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,4 +1,3 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- core
|
- TactilityKernel
|
||||||
bindings: ./
|
dts: ../placeholder.dts
|
||||||
dts: simulator.dts
|
|
||||||
|
|||||||
7
Devices/unphone/Source/Drivers.cpp
Normal file
7
Devices/unphone/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/unphone/devicetree.yaml
Normal file
3
Devices/unphone/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/waveshare-esp32-s3-geek/Source/Drivers.cpp
Normal file
7
Devices/waveshare-esp32-s3-geek/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/waveshare-esp32-s3-geek/devicetree.yaml
Normal file
3
Devices/waveshare-esp32-s3-geek/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/waveshare-s3-lcd-13/Source/Drivers.cpp
Normal file
7
Devices/waveshare-s3-lcd-13/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/waveshare-s3-lcd-13/devicetree.yaml
Normal file
3
Devices/waveshare-s3-lcd-13/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/waveshare-s3-touch-lcd-128/Source/Drivers.cpp
Normal file
7
Devices/waveshare-s3-touch-lcd-128/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/waveshare-s3-touch-lcd-128/devicetree.yaml
Normal file
3
Devices/waveshare-s3-touch-lcd-128/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/waveshare-s3-touch-lcd-147/Source/Drivers.cpp
Normal file
7
Devices/waveshare-s3-touch-lcd-147/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/waveshare-s3-touch-lcd-147/devicetree.yaml
Normal file
3
Devices/waveshare-s3-touch-lcd-147/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/waveshare-s3-touch-lcd-43/Source/Drivers.cpp
Normal file
7
Devices/waveshare-s3-touch-lcd-43/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/waveshare-s3-touch-lcd-43/devicetree.yaml
Normal file
3
Devices/waveshare-s3-touch-lcd-43/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
7
Devices/wireless-tag-wt32-sc01-plus/Source/Drivers.cpp
Normal file
7
Devices/wireless-tag-wt32-sc01-plus/Source/Drivers.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_device_drivers() {
|
||||||
|
/* NO-OP */
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
3
Devices/wireless-tag-wt32-sc01-plus/devicetree.yaml
Normal file
3
Devices/wireless-tag-wt32-sc01-plus/devicetree.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
dependencies:
|
||||||
|
- TactilityKernel
|
||||||
|
dts: ../placeholder.dts
|
||||||
12
Drivers/drivers-esp/source/Register.cpp
Normal file
12
Drivers/drivers-esp/source/Register.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <Tactility/Driver.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_platform_drivers() {
|
||||||
|
extern Driver esp32_gpio_driver;
|
||||||
|
driver_construct(&esp32_gpio_driver);
|
||||||
|
extern Driver esp32_i2c_driver;
|
||||||
|
driver_construct(&esp32_i2c_driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -44,13 +44,17 @@ else ()
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Generate devicetree code and attach to Firmware component
|
# Generate devicetree code and attach to Firmware component
|
||||||
add_custom_target(Generated
|
add_custom_command(
|
||||||
COMMAND mkdir -p ${CMAKE_SOURCE_DIR}/Firmware/Generated | echo Firmware/Generated exists
|
OUTPUT "${CMAKE_SOURCE_DIR}/Firmware/Generated/devicetree.c"
|
||||||
|
"${CMAKE_SOURCE_DIR}/Firmware/Generated/devicetree.h"
|
||||||
|
COMMAND mkdir -p "${CMAKE_SOURCE_DIR}/Firmware/Generated"
|
||||||
COMMAND pip install lark pyyaml
|
COMMAND pip install lark pyyaml
|
||||||
COMMAND python Buildscripts/devicetree-compiler/compile.py ${DEVICETREE_LOCATION} Firmware/Generated
|
COMMAND python "${CMAKE_SOURCE_DIR}/Buildscripts/devicetree-compiler/compile.py"
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
"${DEVICETREE_LOCATION}" "Firmware/Generated"
|
||||||
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||||
|
DEPENDS "${DEVICETREE_LOCATION}/devicetree.yaml" # Optional: trigger rebuild if source changes
|
||||||
|
COMMENT "Generating devicetree source files..."
|
||||||
)
|
)
|
||||||
set_property(DIRECTORY "${CMAKE_SOURCE_DIR}" APPEND PROPERTY ADDITIONAL_CLEAN_FILES "Firmware/Generated/devicetree.c" "/Firmware/Generated/devicetree.h")
|
set_source_files_properties("${CMAKE_SOURCE_DIR}/Firmware/Generated/devicetree.c" PROPERTIES GENERATED TRUE)
|
||||||
|
add_custom_target(Generated DEPENDS "${CMAKE_SOURCE_DIR}/Firmware/Generated/devicetree.c")
|
||||||
target_sources(${COMPONENT_LIB} PRIVATE "${CMAKE_SOURCE_DIR}/Firmware/Generated/devicetree.c")
|
target_sources(${COMPONENT_LIB} PRIVATE "${CMAKE_SOURCE_DIR}/Firmware/Generated/devicetree.c")
|
||||||
target_include_directories(${COMPONENT_LIB} PRIVATE ${CMAKE_SOURCE_DIR}/Firmware/Generated)
|
|
||||||
add_dependencies(${COMPONENT_LIB} Generated)
|
|
||||||
|
|||||||
@ -14,6 +14,10 @@ extern const tt::hal::Configuration hardwareConfiguration;
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_kernel_drivers();
|
||||||
|
extern void register_platform_drivers();
|
||||||
|
extern void register_device_drivers();
|
||||||
|
|
||||||
void app_main() {
|
void app_main() {
|
||||||
static const tt::Configuration config = {
|
static const tt::Configuration config = {
|
||||||
/**
|
/**
|
||||||
@ -27,14 +31,9 @@ void app_main() {
|
|||||||
tt_init_tactility_c(); // ELF bindings for side-loading on ESP32
|
tt_init_tactility_c(); // ELF bindings for side-loading on ESP32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern Driver root_driver;
|
register_kernel_drivers();
|
||||||
extern Driver tlora_pager_driver;
|
register_platform_drivers();
|
||||||
extern Driver esp32_gpio_driver;
|
register_device_drivers();
|
||||||
extern Driver esp32_i2c_driver;
|
|
||||||
driver_construct(&root_driver);
|
|
||||||
driver_construct(&tlora_pager_driver);
|
|
||||||
driver_construct(&esp32_gpio_driver);
|
|
||||||
driver_construct(&esp32_i2c_driver);
|
|
||||||
|
|
||||||
devices_builtin_init();
|
devices_builtin_init();
|
||||||
tt::run(config);
|
tt::run(config);
|
||||||
|
|||||||
10
TactilityKernel/source/drivers/Register.cpp
Normal file
10
TactilityKernel/source/drivers/Register.cpp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include <Tactility/Driver.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
|
extern void register_kernel_drivers() {
|
||||||
|
extern Driver root_driver;
|
||||||
|
driver_construct(&root_driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user