~aleteoryx/muditaos

ref: 70a4b21c33a1add74442d64e0ed07cf93e99fb90 muditaos/module-bsp/board/linux/magnetometer/magnetometer.cpp -rw-r--r-- 762 bytes
70a4b21c — Mateusz Grzywacz [EGD-3045] Magnetometer driver (#788) 5 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
// 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