Files
MuditaOS/module-bsp/board/linux/keypad_backlight/keypad_backlight.cpp
Marcin Smoczyński b355d5ce00 [BH-733] Cleanup target dependencies
Remove obsolete target dependencies across modules.
Remove 'cross' and 'unittests' targets.
Refactor some remaining target dependencies to use board include macro.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-08-13 01:43:56 +02:00

62 lines
915 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "bsp/keypad_backlight/keypad_backlight.hpp"
namespace bsp::keypad_backlight
{
namespace
{
bool diodesState = false;
}
std::int32_t init()
{
return 0;
}
void deinit()
{}
bool turnOnAll()
{
diodesState = true;
return true;
}
bool turnOnFunctionKeysBacklight()
{
return true;
}
bool turnOnNumericKeysBacklight()
{
return true;
}
bool configureModule()
{
return true;
}
bool shutdown()
{
diodesState = false;
return true;
}
void wakeup()
{}
bool reset()
{
return true;
}
bool checkState()
{
return diodesState;
}
} // namespace bsp::keypad_backlight