blob: c6802106e7a037ccbcda354cbd9041b72705b1ad [file] [log] [blame]
Alexander Hansen8c4b1d92024-11-04 14:06:24 +01001/*
2 * SPDX-FileCopyrightText: Copyright (c) 2022-2024.
3 * All rights reserved. SPDX-License-Identifier: Apache-2.0
4 */
5
6#include "gpio_presence_manager.hpp"
7
8#include <phosphor-logging/lg2.hpp>
9#include <sdbusplus/async/context.hpp>
10
11using namespace gpio_presence;
12
13auto main() -> int
14{
15 lg2::debug("starting GPIO Presence Sensor");
16
17 sdbusplus::async::context ctx;
18
19 gpio_presence::GPIOPresenceManager controller(ctx);
20
21 controller.setupBusName();
22
23 controller.start();
24
25 ctx.run();
26}