mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-02 02:13:02 -05:00
* [EGD-3045] magnetometer driver - timer polling approach - magneto pin mux - magneto reg structs - magneto irq skeleton - bluetooth irq handler moved - dedicated i2c methods - bitfields parsed and populated explicitly * [misc] big endian ↔ long conversion in Utils + UT
40 lines
762 B
C++
40 lines
762 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/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()
|
|
{}
|
|
} // namespace magnetometer
|
|
} // namespace bsp
|