From 37b6fe7e98ec4dfcb4ab74f28a7f3ebb1d6c04ae Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Sat, 31 Jan 2026 00:03:53 +0100 Subject: [PATCH] Update new device with module.cpp --- .../guition-jc3248w535c/Source/Drivers.cpp | 7 ------ Devices/guition-jc3248w535c/Source/module.cpp | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 7 deletions(-) delete mode 100644 Devices/guition-jc3248w535c/Source/Drivers.cpp create mode 100644 Devices/guition-jc3248w535c/Source/module.cpp diff --git a/Devices/guition-jc3248w535c/Source/Drivers.cpp b/Devices/guition-jc3248w535c/Source/Drivers.cpp deleted file mode 100644 index c8a5c665..00000000 --- a/Devices/guition-jc3248w535c/Source/Drivers.cpp +++ /dev/null @@ -1,7 +0,0 @@ -extern "C" { - -extern void register_device_drivers() { - /* NO-OP */ -} - -} diff --git a/Devices/guition-jc3248w535c/Source/module.cpp b/Devices/guition-jc3248w535c/Source/module.cpp new file mode 100644 index 00000000..24e65e59 --- /dev/null +++ b/Devices/guition-jc3248w535c/Source/module.cpp @@ -0,0 +1,22 @@ +#include + +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 +}; + +}