solve the compile problem of tflite in xiuos

This commit is contained in:
Wang_Weigen
2021-09-09 18:00:27 +08:00
parent 55dc35f2de
commit 5b47a83022
36 changed files with 232 additions and 47 deletions

View File

@@ -30,7 +30,7 @@ static void CanDrvLinkInit()
}
/*Find the regiter driver*/
DriverType CanDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType CanDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -30,7 +30,7 @@ static void I2cDrvLinkInit()
}
/*Find the regiter driver*/
DriverType I2cDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType I2cDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -38,7 +38,7 @@ typedef struct HardwareDev *HardwareDevType;
typedef struct Driver *DriverType;
/* need to add new bus type in ../tool/shell/letter-shell/cmd.c, ensure ShowBus cmd supported*/
enum BusType
enum BusType_e
{
TYPE_I2C_BUS = 0,
TYPE_SPI_BUS,
@@ -86,7 +86,7 @@ enum DevState
DEV_UNINSTALL,
};
enum DriverType
enum DriverType_e
{
TYPE_I2C_DRV = 0,
TYPE_SPI_DRV,
@@ -168,7 +168,7 @@ struct HardwareDev
struct Driver
{
int8 drv_name[NAME_NUM_MAX];
enum DriverType driver_type;
enum DriverType_e driver_type;
enum DriverState driver_state;
uint32 (*configure)(void *drv, struct BusConfigureInfo *configure_info);
@@ -182,7 +182,7 @@ struct Driver
struct Bus
{
int8 bus_name[NAME_NUM_MAX];
enum BusType bus_type;
enum BusType_e bus_type;
enum BusState bus_state;
int32 (*match)(struct Driver *driver, struct HardwareDev *device);

View File

@@ -58,7 +58,7 @@ int CanDriverAttachToBus(const char *drv_name, const char *bus_name);
int CanDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType CanDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType CanDriverFind(const char *drv_name, enum DriverType_e drv_type);
#ifdef __cplusplus
}

View File

@@ -81,7 +81,7 @@ int I2cDriverAttachToBus(const char *drv_name, const char *bus_name);
int I2cDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType I2cDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType I2cDriverFind(const char *drv_name, enum DriverType_e drv_type);
#ifdef __cplusplus
}

View File

@@ -56,7 +56,7 @@ int LcdDriverAttachToBus(const char *drv_name, const char *bus_name);
int LcdDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType LcdDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType LcdDriverFind(const char *drv_name, enum DriverType_e drv_type);
#ifdef __cplusplus
}

View File

@@ -56,7 +56,7 @@ int PinDriverAttachToBus(const char *drv_name, const char *bus_name);
int PinDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType PinDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType PinDriverFind(const char *drv_name, enum DriverType_e drv_type);
/*Get the initialized Pin bus*/
BusType PinBusInitGet(void);

View File

@@ -86,7 +86,7 @@ int RtcDriverAttachToBus(const char *drv_name, const char *bus_name);
int RtcDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType RtcDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType RtcDriverFind(const char *drv_name, enum DriverType_e drv_type);
/*Set Rtc time and date*/
int RtcDrvSetFunction(char *driver_name, struct RtcSetParam *rtc_set_param);

View File

@@ -103,7 +103,7 @@ int SerialDriverAttachToBus(const char *drv_name, const char *bus_name);
int SerialDriverRegister(struct Driver *driver);
/*Find the regiter driver*/
DriverType SerialDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType SerialDriverFind(const char *drv_name, enum DriverType_e drv_type);
#ifdef __cplusplus
}

View File

@@ -57,7 +57,7 @@ int SpiDriverAttachToBus(const char *drv_name, const char *bus_name);
int SpiDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType SpiDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType SpiDriverFind(const char *drv_name, enum DriverType_e drv_type);
#ifdef __cplusplus
}

View File

@@ -56,7 +56,7 @@ int TouchDriverAttachToBus(const char *drv_name, const char *bus_name);
int TouchDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType TouchDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType TouchDriverFind(const char *drv_name, enum DriverType_e drv_type);
#ifdef __cplusplus
}

View File

@@ -59,7 +59,7 @@ int UsbDriverAttachToBus(const char *drv_name, const char *bus_name);
int UsbDriverRegister(struct Driver *driver);
/*Find the register driver*/
DriverType UsbDriverFind(const char *drv_name, enum DriverType drv_type);
DriverType UsbDriverFind(const char *drv_name, enum DriverType_e drv_type);
#ifdef __cplusplus
}

View File

@@ -29,7 +29,7 @@ static void LcdDrvLinkInit()
InitDoubleLinkList(&lcddrv_linklist);
}
DriverType LcdDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType LcdDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -29,7 +29,7 @@ static void PinDrvLinkInit()
InitDoubleLinkList(&pindrv_linklist);
}
DriverType PinDriverFind(const char *drv_name, enum DriverType DrvType)
DriverType PinDriverFind(const char *drv_name, enum DriverType_e DrvType)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -29,7 +29,7 @@ static void RtcDrvLinkInit()
InitDoubleLinkList(&rtcdrv_linklist);
}
DriverType RtcDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType RtcDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -29,7 +29,7 @@ static void SerialDrvLinkInit()
InitDoubleLinkList(&serialdrv_linklist);
}
DriverType SerialDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType SerialDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -29,7 +29,7 @@ static void SpiDrvLinkInit()
InitDoubleLinkList(&spidrv_linklist);
}
DriverType SpiDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType SpiDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -29,7 +29,7 @@ static void TouchDrvLinkInit()
InitDoubleLinkList(&touchdrv_linklist);
}
DriverType TouchDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType TouchDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);

View File

@@ -30,7 +30,7 @@ static void UsbDrvLinkInit()
}
/*Find the regiter driver*/
DriverType UsbDriverFind(const char *drv_name, enum DriverType drv_type)
DriverType UsbDriverFind(const char *drv_name, enum DriverType_e drv_type)
{
NULL_PARAM_CHECK(drv_name);