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>
20 lines
273 B
C
20 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
|