~aleteoryx/muditaos

ref: 4b590ebeb8e72bd3b38958f95f51829d1e720307 muditaos/module-bsp/board/rt1051/bellpx/bsp/switches/switches.hpp -rw-r--r-- 651 bytes
4b590ebe — Maciej Janicki [MOS-296] Merge fix extra files removed 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
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <hal/key_input/KeyEventDefinitions.hpp>
#include <bsp/KeyInputCommon.hpp>

#include <cstdint>
#include <vector>

namespace bsp::bell_switches
{
    std::vector<KeyEvent> getKeyEvents(NotificationSource notification);

    std::int32_t init(xQueueHandle qHandle);

    std::int32_t deinit();

    void enableIRQ();

    void disableIRQ();

    BaseType_t IRQHandler(uint32_t mask);

    BaseType_t wakeupIRQHandler();

    void clearStartupLatchInterrupt();

} // namespace bsp::bell_switches