Rename api-hal to furi-hal (#629)
This commit is contained in:
34
firmware/targets/furi-hal-include/furi-hal-boot.h
Normal file
34
firmware/targets/furi-hal-include/furi-hal-boot.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Boot modes */
|
||||
typedef enum {
|
||||
FuriHalBootModeNormal,
|
||||
FuriHalBootModeDFU
|
||||
} FuriHalBootMode;
|
||||
|
||||
/** Boot flags */
|
||||
typedef enum {
|
||||
FuriHalBootFlagDefault=0,
|
||||
FuriHalBootFlagFactoryReset=1,
|
||||
} FuriHalBootFlag;
|
||||
|
||||
/** Initialize boot subsystem */
|
||||
void furi_hal_boot_init();
|
||||
|
||||
/** Set boot mode */
|
||||
void furi_hal_boot_set_mode(FuriHalBootMode mode);
|
||||
|
||||
/** Set boot flags */
|
||||
void furi_hal_boot_set_flags(FuriHalBootFlag flags);
|
||||
|
||||
/** Get boot flag */
|
||||
FuriHalBootFlag furi_hal_boot_get_flags();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user