~aleteoryx/muditaos

ref: 30789d3d9c03045d022f47a1b94d6d67c708b1da muditaos/module-bsp/board/linux/magnetometer/magnetometer.cpp -rw-r--r-- 846 bytes
30789d3d — Maciej Gibowicz [EGD-8191] Magnetometer deinitialisation 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2017-2022, 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;
        }

        void deinit()
        {}

        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