Make sendKbootCommand() accept various command types, not only reset.

This commit is contained in:
László Monda
2017-10-23 01:19:19 +02:00
parent 92ee3b5606
commit ab807cd0c8
5 changed files with 36 additions and 21 deletions

View File

@@ -15,8 +15,14 @@
KbootDriverId_Singleton,
} kboot_driver_id_t;
typedef enum {
KbootCommand_Idle,
KbootCommand_Ping,
KbootCommand_Reset,
} kboot_command_t;
typedef struct {
bool isTransferScheduled;
kboot_command_t commandType;
uint8_t i2cAddress;
uint8_t phase;
} kboot_driver_state_t;