Fixes and improvements (#617)

This commit is contained in:
Ken Van Hoeylandt
2026-08-20 17:22:01 +02:00
committed by GitHub
parent b03759a111
commit 0ff1627385
38 changed files with 309 additions and 342 deletions
+5 -13
View File
@@ -1,26 +1,18 @@
// SPDX-License-Identifier: Apache-2.0
#include <tactility/check.h>
#include <tactility/driver.h>
#include <tactility/module.h>
extern "C" {
extern Driver posix_wifi_driver;
static error_t start() {
check(driver_construct_add(&posix_wifi_driver) == ERROR_NONE);
return ERROR_NONE;
}
static error_t stop() {
check(driver_remove_destruct(&posix_wifi_driver) == ERROR_NONE);
return ERROR_NONE;
}
static Driver* const platform_posix_drivers[] = {
&posix_wifi_driver,
nullptr
};
struct Module platform_posix_module = {
.name = "platform-posix",
.start = start,
.stop = stop,
.drivers = platform_posix_drivers,
.symbols = nullptr,
.internal = nullptr
};