fixed adc compliation error

This commit is contained in:
wlyu 2022-02-14 09:39:06 +08:00
parent 521dc56e15
commit 0c6f013bfd
4 changed files with 2 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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