From e4964f6692cfaea84b1bae425211151541ec3fa8 Mon Sep 17 00:00:00 2001 From: guohp1128 <297273523@qq.com> Date: Sun, 29 Nov 2020 11:13:44 +0800 Subject: [PATCH] #define ADC_NAME adc updated to header file. --- bsp/nrf5x/libraries/drivers/drv_adc.c | 2 -- bsp/nrf5x/libraries/drivers/drv_adc.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/nrf5x/libraries/drivers/drv_adc.c b/bsp/nrf5x/libraries/drivers/drv_adc.c index 1f02fdddd6..8b136a3598 100644 --- a/bsp/nrf5x/libraries/drivers/drv_adc.c +++ b/bsp/nrf5x/libraries/drivers/drv_adc.c @@ -12,8 +12,6 @@ #ifdef RT_USING_ADC -#define ADC_NAME "adc" - struct rt_adc_device nrf5x_adc_device; drv_nrfx_saadc_result_t results; diff --git a/bsp/nrf5x/libraries/drivers/drv_adc.h b/bsp/nrf5x/libraries/drivers/drv_adc.h index 908ac87489..b65a981982 100644 --- a/bsp/nrf5x/libraries/drivers/drv_adc.h +++ b/bsp/nrf5x/libraries/drivers/drv_adc.h @@ -16,6 +16,8 @@ #include #include +#define ADC_NAME "adc" + /* previous definition in application