Files
MuditaOS/module-bsp/board/linux/magnetometer/magnetometer.cpp
Bartosz Cichocki ba0e0345b7 [EGD-6868] Restore magnetometer polling mode
To be able to properly operate with the slider under every
circumstance the polling mode has to be restored. It's related
to the bug in the magnetometer chip, which is not described in the
datasheet.
This reverts commit 744eef1d9b with
few small fixes
2021-05-31 16:48:54 +02:00

42 lines
812 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/magnetometer/magnetometer.hpp"
static xQueueHandle qHandleIrq = NULL;
namespace bsp
{
namespace magnetometer
{
int32_t init(xQueueHandle qHandle)
{
qHandleIrq = qHandle;
return 1;
}
bool isPresent(void)
{
return false;
}
bsp::Board GetBoard(void)
{
return bsp::Board::Linux;
}
std::optional<bsp::KeyCodes> WorkerEventHandler()
{
return std::nullopt;
}
void enableIRQ()
{}
void resetCurrentParsedValue()
{}
} // namespace magnetometer
} // namespace bsp