diff options
-rw-r--r-- | samples/nanokernel/apps/adc/Makefile | 2 | ||||
-rw-r--r-- | samples/nanokernel/apps/adc/src/adc.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/samples/nanokernel/apps/adc/Makefile b/samples/nanokernel/apps/adc/Makefile index 8550076ec..6e7d50a6c 100644 --- a/samples/nanokernel/apps/adc/Makefile +++ b/samples/nanokernel/apps/adc/Makefile @@ -1,4 +1,4 @@ -BOARD = galileo +BOARD ?= galileo KERNEL_TYPE = nano CONF_FILE = prj_$(ARCH).conf diff --git a/samples/nanokernel/apps/adc/src/adc.c b/samples/nanokernel/apps/adc/src/adc.c index a83c93ba7..a82242b36 100644 --- a/samples/nanokernel/apps/adc/src/adc.c +++ b/samples/nanokernel/apps/adc/src/adc.c @@ -33,10 +33,10 @@ #define SLEEPTIME 2 #define SLEEPTICKS (SLEEPTIME * sys_clock_ticks_per_sec) -#ifdef CONFIG_SOC_QUARK_SE_SS - #define ADC_DEVICE_NAME CONFIG_ADC_DW_NAME -#elif CONFIG_BOARD_GALILEO - #define ADC_DEVICE_NAME CONFIG_ADC_TI_ADC108S102_DRV_NAME +#if defined(CONFIG_ADC_DW) +#define ADC_DEVICE_NAME CONFIG_ADC_DW_NAME +#elif defined(CONFIG_ADC_TI_ADC108S102) +#define ADC_DEVICE_NAME CONFIG_ADC_TI_ADC108S102_DRV_NAME #endif /* |