~aleteoryx/muditaos

ref: fcfd5c90a2f8cdf956349652f49bda56be54cab8 muditaos/module-bsp/board/rt1051/common/reboot_codes.hpp -rw-r--r-- 794 bytes
fcfd5c90 — Lefucjusz [MOS-303] GCC11 build fix 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
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

// Copyright (c) 2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <cstdint>

namespace bsp
{
    enum rebootCode : std::uint32_t
    {
        rebootNormalCode       = std::uint32_t{0},
        rebootToUpdateCode     = std::uint32_t{0xdead0000},
        rebootToRecoveryCode   = std::uint32_t{0xdead0001},
        rebootToFactoryRstCode = std::uint32_t{0xdead0002},
        // 0xdead0003 is reserved for eco_factory_pgm_keys
        rebootToUsbMscModeCode = std::uint32_t{0x00000004},
        rebootFailedToBoot     = std::uint32_t{0xdeadFFFF}
    };
} // namespace bsp