mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 11:08:20 +00:00
21 lines
682 B
C
21 lines
682 B
C
/* Copyright 2026 F4HWN
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef UI_MULTIBOOT_H
|
|
#define UI_MULTIBOOT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Blocking boot-time slot selector. Returns only when the user chooses EXIT;
|
|
* a successful restore resets the radio from the RAM-resident copier. */
|
|
void UI_MultibootSelector(void);
|
|
|
|
/* Resolve the active settings profile at boot, BEFORE any settings read.
|
|
* Detects a firmware installed outside multiboot (internal != slot[marker]) and,
|
|
* if so, discreetly self-backs it up into slot 0 and adopts profile 0. Returns
|
|
* the profile index (0..MB_SLOT_COUNT-1) to feed PY25Q16_SetProfileBase(). */
|
|
uint8_t MB_BootResolveProfile(void);
|
|
|
|
#endif
|