In adc_k21f.h (in the twrk21f120m bsp with MQX 4.1) there are the following definitions:
#define ADC0_SOURCE_AD4A | (ADC_SOURCE_MODULE(1) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
#define ADC0_SOURCE_AD5A | (ADC_SOURCE_MODULE(1) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
#define ADC0_SOURCE_AD6A | (ADC_SOURCE_MODULE(1) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
#define ADC0_SOURCE_AD7A | (ADC_SOURCE_MODULE(1) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
#define ADC1_SOURCE_AD4A | (ADC_SOURCE_MODULE(2) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
#define ADC1_SOURCE_AD5A | (ADC_SOURCE_MODULE(2) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
#define ADC1_SOURCE_AD6A | (ADC_SOURCE_MODULE(2) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
#define ADC1_SOURCE_AD7A | (ADC_SOURCE_MODULE(2) | ADC_SOURCE_MUXSEL_A | ADC_SOURCE_CHANNEL(4)) |
It seems they should be ADC_SOURCE_CHANNEL(4)..(5)..(6)..(7), right?
Solved! Go to Solution.
Yes, it seems that it is a bug.
Thank you for your report.
I will add it to our bug tracking system.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Yes, it seems that it is a bug.
Thank you for your report.
I will add it to our bug tracking system.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------