mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-30 20:05:48 -04:00
* [EGD-4483] fix for put_64 in libmtp * [EGD-4175] Added cpp to cmake script * [EGD-4175] Rename to keypad_backlight and first test * [EGD-4175] First working setup * [EGD-4175] Remaking the interface * [EGD-4175] Added class to event manager * [EGD-4175] Cleaning * [EGD-4175] Added linux target file * [EGD-4175] Added missing deinit * [EGD-4175] cleanup * [EGD-4175] Added check state function * [EGD-4175] Simpler interface * [EGD-4175] Linux target file adjustment * [EGD-4175] Cleanup .. * [EGD-4175] Style check fail repair * [EGD-4175] Another style check fix * [EGD-4175] Applying style branch fix * [EGD-4175] Red<->Green exchange * [EGD-4175] PR comments pt1 * [EGD-4175] PR comments pt2 * [EGD-4175] PR comments pt3 * [EGD-4175] Another style check fix * [EGD-4175] next PR comments * [EGD-4175] New cpp file for evm, namespaces fix * [EGD-4175] Last pr cleaning * [EGD-4175] Yet another style check fix... * [EGD-4175] Final fixes from pr Co-authored-by: Roman Kubiak <roman.kubiak@mudita.com> Co-authored-by: Wojtek Rzepecki <wojtek.rzepecki@mudita.com>
55 lines
832 B
C++
55 lines
832 B
C++
// Copyright (c) 2017-2020, 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"
|
|
#include "bsp/BoardDefinitions.hpp"
|
|
|
|
using namespace drivers;
|
|
|
|
namespace bsp::keypad_backlight
|
|
{
|
|
namespace
|
|
{
|
|
bool diodesState = false;
|
|
}
|
|
|
|
std::int32_t init()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void deinit()
|
|
{}
|
|
|
|
bool turnOnAll()
|
|
{
|
|
diodesState = true;
|
|
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
|