~aleteoryx/muditaos

ref: 70d3ba4c03655d7b1e90cbeab88f116bd892e600 muditaos/module-bsp/bsp/bsp.hpp -rw-r--r-- 618 bytes
70d3ba4c — Dawid Wojtas [BH-1935] Fix the backlight in pre-wake up 1 year, 10 months 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
#pragma once

#include <cstdint>

namespace bsp
{
    enum class RebootState : std::uintptr_t
    {
        None,
        Poweroff,
        Reboot
    };

    void board_init();
    void board_power_off();
    void board_restart();

    /// Register platform exit functions
    int register_exit_function(void (*func)());

    /// Board-specific configuration procedure. Currently used to perform WFI-related config for Harmony.
    void board_configure();

    /// Board-specific exit/reset procedure. It is the main exit point from the system.
    [[noreturn]] void board_exit(RebootState state);
} // namespace bsp