aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/gpio/gpio.cpp
blob: 8b4aa0f5ab35a504119abbd8dcd92721aae83b92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "core/core.h"
#include "core/hle/service/gpio/gpio.h"
#include "core/hle/service/ipc_helpers.h"
#include "core/hle/service/service.h"

namespace Service::GPIO {

class GPIO final : public ServiceFramework<GPIO> {
public:
    explicit GPIO(Core::System& system_)
        : ServiceFramework{system_, "gpio"}
    {
        static const FunctionInfo functions[] = {
            {0, nullptr, "Cmd0"},
        };
        RegisterHandlers(functions);
    }
    ~GPIO() override = default;
};

void LoopProcess(Core::System& system) {
    auto server_manager = std::make_unique<ServerManager>(system);
    server_manager->RegisterNamedService("gpio", std::make_shared<GPIO>(system));
    ServerManager::RunServer(std::move(server_manager));
}

} // namespace Service::GPIO