diff --git a/tests/drivers/adc/adc_api/src/test_adc.c b/tests/drivers/adc/adc_api/src/test_adc.c index c56dbf2475d18f..9e87dd52ed0982 100644 --- a/tests/drivers/adc/adc_api/src/test_adc.c +++ b/tests/drivers/adc/adc_api/src/test_adc.c @@ -29,7 +29,7 @@ #elif defined(CONFIG_BOARD_NRF51DK_NRF51422) #include -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nordic_nrf_adc)) #define ADC_RESOLUTION 10 #define ADC_GAIN ADC_GAIN_1_3 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -51,7 +51,7 @@ defined(CONFIG_BOARD_ADAFRUIT_FEATHER_NRF52840) #include -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nordic_nrf_saadc)) #define ADC_RESOLUTION 10 #define ADC_GAIN ADC_GAIN_1_6 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -63,7 +63,7 @@ #elif defined(CONFIG_BOARD_FRDM_K22F) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nxp_kinetis_adc16)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -73,7 +73,7 @@ #elif defined(CONFIG_BOARD_FRDM_K64F) -#define ADC_DEVICE_NAME DT_ADC_1_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nxp_kinetis_adc16)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -82,7 +82,7 @@ #elif defined(CONFIG_BOARD_FRDM_KL25Z) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nxp_kinetis_adc16)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -91,7 +91,7 @@ #elif defined(CONFIG_BOARD_FRDM_KW41Z) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nxp_kinetis_adc16)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -100,7 +100,7 @@ #elif defined(CONFIG_BOARD_HEXIWEAR_K64) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nxp_kinetis_adc16)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -109,7 +109,7 @@ #elif defined(CONFIG_BOARD_HEXIWEAR_KW40Z) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nxp_kinetis_adc16)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -119,7 +119,7 @@ #elif defined(CONFIG_BOARD_SAM_E70_XPLAINED) || \ defined(CONFIG_BOARD_SAM_V71_XULT) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, atmel_sam_afec)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_EXTERNAL0 @@ -144,7 +144,7 @@ defined(CONFIG_BOARD_NUCLEO_L073RZ) || \ defined(CONFIG_BOARD_NUCLEO_WB55RG) || \ defined(CONFIG_BOARD_NUCLEO_L152RE) -#define ADC_DEVICE_NAME DT_ADC_1_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, st_stm32_adc)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -152,7 +152,7 @@ #define ADC_1ST_CHANNEL_ID 0 #elif defined(CONFIG_BOARD_NUCLEO_F302R8) -#define ADC_DEVICE_NAME DT_ADC_1_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, st_stm32_adc)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -161,7 +161,7 @@ #define ADC_1ST_CHANNEL_ID 1 #elif defined(CONFIG_BOARD_NUCLEO_L476RG) -#define ADC_DEVICE_NAME DT_ADC_1_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, st_stm32_adc)) #define ADC_RESOLUTION 10 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -169,7 +169,7 @@ #define ADC_1ST_CHANNEL_ID 1 #elif defined(CONFIG_BOARD_TWR_KE18F) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, nxp_kinetis_adc12)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL @@ -179,7 +179,7 @@ #elif defined(CONFIG_BOARD_MEC15XXEVB_ASSY6853) || \ defined(CONFIG_BOARD_MEC1501MODULAR_ASSY6885) -#define ADC_DEVICE_NAME DT_ADC_0_NAME +#define ADC_DEVICE_NAME DT_LABEL(DT_INST(0, microchip_xec_adc)) #define ADC_RESOLUTION 12 #define ADC_GAIN ADC_GAIN_1 #define ADC_REFERENCE ADC_REF_INTERNAL