Add KBOOT I2C slave driver, its related USB command, and make the firmware updater script of the left half successfully reset the left half after firmware update.
This commit is contained in:
33
right/src/slave_drivers/kboot_driver.h
Normal file
33
right/src/slave_drivers/kboot_driver.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef __KBOOT_DRIVER_H__
|
||||
#define __KBOOT_DRIVER_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "fsl_common.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define MAX_KBOOT_COMMAND_LENGTH 32
|
||||
|
||||
// Typedefs:
|
||||
|
||||
typedef enum {
|
||||
KbootDriverId_Singleton,
|
||||
} kboot_driver_id_t;
|
||||
|
||||
typedef struct {
|
||||
bool isTransferScheduled;
|
||||
uint8_t i2cAddress;
|
||||
uint8_t phase;
|
||||
} kboot_driver_state_t;
|
||||
|
||||
// Variables:
|
||||
|
||||
extern kboot_driver_state_t KbootDriverState;
|
||||
|
||||
// Functions:
|
||||
|
||||
void KbootSlaveDriver_Init(uint8_t kbootInstanceId);
|
||||
status_t KbootSlaveDriver_Update(uint8_t kbootInstanceId);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user