mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
Update new device with module.cpp
This commit is contained in:
parent
408a580215
commit
37b6fe7e98
@ -1,7 +0,0 @@
|
||||
extern "C" {
|
||||
|
||||
extern void register_device_drivers() {
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
}
|
||||
22
Devices/guition-jc3248w535c/Source/module.cpp
Normal file
22
Devices/guition-jc3248w535c/Source/module.cpp
Normal 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
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user