Hi
The ADC pins are found here:
https://www.utasker.com/iMX/iMXRT1060/iMX_RT_1060.xlsTo select ADC1_IN9 use
adc_setup.int_adc_controller = iMX_ADC_1; // first i.MX RT ADC
adc_setup.int_adc_bit = ADC_SE9_SINGLE;
Optionally pullup/down can also be defined using ADC_INPUT_PULL_DOWN, ADC_INPUT_PULL_UP or ADC_INPUT_PULL_UP_WEAK to the adc_setup.int_adc_mode details.
which causes the configuration (in the ADC driver) with
_CONFIG_PORT_INPUT(1, ADC1_IN9_GPIO_AD_B1_04_GPIO1_IO20, ulPinCharacteristic);
For ADC1_IN10 change adc_setup.int_adc_bit to ADC_SE10_SINGLE.
Presently your code is configuring but not converting (default is to use a conversion interrupt, which you have disabled).
Add
ADC_GET_RESULT so that it will do a blocking conversion and return the value.
Note that samples.ucADC_status will then contain ADC_RESULT_VALID, indicating that the result is valid (presently you will find that it is not the case).
Note that I haven't a great many features in the present ADC driver version for the i.MX RT and so HW trigger modes and chaining are not integrated. If you tell me which STK reference contains the method that you would like to use I can add that to the interface.
The HW triggering levels do work well since I have used these successfully in some products.
Regards
Mark