flipperzero-firmware/applications/power/power.h

20 lines
351 B
C
Raw Normal View History

#pragma once
typedef struct Power Power;
typedef enum {
PowerBootModeNormal,
PowerBootModeDfu,
} PowerBootMode;
/** Power off device
* @param power - Power instance
*/
void power_off(Power* power);
2021-07-01 22:53:20 +00:00
/** Reboot device
* @param power - Power instance
* @param mode - PowerBootMode
*/
2021-07-01 22:53:20 +00:00
void power_reboot(Power* power, PowerBootMode mode);