2021-10-26 12:24:14 +00:00
|
|
|
/**
|
2022-01-05 16:10:18 +00:00
|
|
|
* @file furi_hal_bootloader.h
|
2021-10-26 12:24:14 +00:00
|
|
|
* Bootloader HAL API
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Boot modes */
|
2022-01-05 16:10:18 +00:00
|
|
|
typedef enum { FuriHalBootloaderModeNormal, FuriHalBootloaderModeDFU } FuriHalBootloaderMode;
|
2021-10-26 12:24:14 +00:00
|
|
|
|
|
|
|
/** Initialize boot subsystem
|
|
|
|
*/
|
|
|
|
void furi_hal_bootloader_init();
|
|
|
|
|
|
|
|
/** Set bootloader mode
|
|
|
|
*
|
|
|
|
* @param[in] mode FuriHalBootloaderMode
|
|
|
|
*/
|
|
|
|
void furi_hal_bootloader_set_mode(FuriHalBootloaderMode mode);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|