Files
MuditaOS/module-bsp/board/linux/magnetometer/magnetometer.cpp
Mateusz Grzywacz 70a4b21c33 [EGD-3045] Magnetometer driver (#788)
* [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
2020-10-22 15:41:54 +02:00

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