mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 02:03:18 +00:00
aa20a78b0e
* Add bootloader versioning * Move some logic to api-hal-version * Backport to f4 * Dolphin: update version screen layout, make it more readable Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
19 lines
273 B
C
19 lines
273 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Boot modes */
|
|
typedef enum {
|
|
ApiHalBootModeNormal,
|
|
ApiHalBootModeDFU
|
|
} ApiHalBootMode;
|
|
|
|
/** Set boot mode */
|
|
void api_hal_boot_set_mode(ApiHalBootMode mode);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|