mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 22:49:06 -04:00
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
42 lines
812 B
C++
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
|