Replace Drivers.cpp with module.cpp for all devices

This commit is contained in:
Ken Van Hoeylandt 2026-01-30 23:18:41 +01:00
parent efebce6811
commit c7aa11203b
84 changed files with 904 additions and 289 deletions

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "BigTreeTech Panda Touch / K Touch",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -12,7 +12,7 @@ static error_t stop() {
return ERROR_NONE;
}
/** @warn The variable name must be exactly "platform_module" */
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "LilyGO T-Deck",
.start = start,

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -20,7 +20,7 @@ static error_t stop() {
return ERROR_NONE;
}
/** @warn The variable name must be exactly "platform_module" */
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "LilyGO T-Lora Pager",
.start = start,

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}

View File

@ -1,7 +0,0 @@
extern "C" {
extern void register_device_drivers() {
/* NO-OP */
}
}

View File

@ -0,0 +1,22 @@
#include <tactility/module.h>
extern "C" {
static error_t start() {
// Empty for now
return ERROR_NONE;
}
static error_t stop() {
// Empty for now
return ERROR_NONE;
}
/** @warn The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}