forked from xuos/xiuos
fixed adc compliation error
This commit is contained in:
@@ -5,10 +5,6 @@ ifeq ($(CONFIG_KERNEL_DEVICE),y)
|
||||
SRC_FILES += device.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_RESOURCES_ADC),y)
|
||||
SRC_DIR += adc
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_RESOURCES_CAN),y)
|
||||
SRC_DIR += can
|
||||
endif
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
#include <bus_adc.h>
|
||||
#include <dev_adc.h>
|
||||
|
||||
#if 0
|
||||
|
||||
/*Register the ADC BUS*/
|
||||
int AdcBusInit(struct AdcBus *adc_bus, const char *bus_name)
|
||||
{
|
||||
@@ -122,4 +120,4 @@ int AdcDriverAttachToBus(const char *drv_name, const char *bus_name)
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ static void AdcDeviceLinkInit()
|
||||
InitDoubleLinkList(&adcdev_linklist);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*Find the register ADC device*/
|
||||
HardwareDevType AdcDeviceFind(const char *dev_name, enum DevType dev_type)
|
||||
{
|
||||
@@ -118,5 +117,4 @@ int AdcDeviceAttachToBus(const char *dev_name, const char *bus_name)
|
||||
|
||||
return EOK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ static void AdcDrvLinkInit()
|
||||
InitDoubleLinkList(&adcdrv_linklist);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*Find the regiter driver*/
|
||||
DriverType AdcDriverFind(const char *drv_name, enum DriverType_e drv_type)
|
||||
{
|
||||
@@ -68,4 +67,4 @@ int AdcDriverRegister(struct Driver *driver)
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user