diff --git a/Ubiquitous/XiUOS/resources/Makefile b/Ubiquitous/XiUOS/resources/Makefile index 2397f532d..3c10a79f9 100644 --- a/Ubiquitous/XiUOS/resources/Makefile +++ b/Ubiquitous/XiUOS/resources/Makefile @@ -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 diff --git a/Ubiquitous/XiUOS/resources/adc/bus_adc.c b/Ubiquitous/XiUOS/resources/adc/bus_adc.c index de63fc144..1ec005283 100644 --- a/Ubiquitous/XiUOS/resources/adc/bus_adc.c +++ b/Ubiquitous/XiUOS/resources/adc/bus_adc.c @@ -21,8 +21,6 @@ #include #include -#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 + diff --git a/Ubiquitous/XiUOS/resources/adc/dev_adc.c b/Ubiquitous/XiUOS/resources/adc/dev_adc.c index efe66d75f..8921a95fa 100644 --- a/Ubiquitous/XiUOS/resources/adc/dev_adc.c +++ b/Ubiquitous/XiUOS/resources/adc/dev_adc.c @@ -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 diff --git a/Ubiquitous/XiUOS/resources/adc/drv_adc.c b/Ubiquitous/XiUOS/resources/adc/drv_adc.c index d92a34179..7c1c330da 100644 --- a/Ubiquitous/XiUOS/resources/adc/drv_adc.c +++ b/Ubiquitous/XiUOS/resources/adc/drv_adc.c @@ -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 +