power: Make power state global

This commit is contained in:
Tim Crawford
2020-02-19 14:15:43 -07:00
parent d08bfc8fdd
commit 3f5c3ead01
6 changed files with 57 additions and 51 deletions

View File

@@ -1,6 +1,17 @@
#ifndef _BOARD_POWER_H
#define _BOARD_POWER_H
enum PowerState {
POWER_STATE_DEFAULT,
POWER_STATE_DS5,
POWER_STATE_S5,
POWER_STATE_DS3,
POWER_STATE_S3,
POWER_STATE_S0,
};
extern enum PowerState power_state;
void power_event(void);
#endif // _BOARD_POWER_H