Update new device with module.cpp

This commit is contained in:
Ken Van Hoeylandt 2026-01-31 00:03:53 +01:00
parent 408a580215
commit 37b6fe7e98
2 changed files with 22 additions and 7 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;
}
/** @warning The variable name must be exactly "device_module" */
struct Module device_module = {
.name = "Module",
.start = start,
.stop = stop
};
}