garimella
Full Member level 5
Using Version 5 of ccs compiler. I tried compiling the following code but the compiler throws error. I have taken this code from compiler manual to sample 4 channels simultaneously.
Error message: undefined identifier setup_high_speed_adc
undefined identifier setup_high_speed_adc_pair
undefined identifier read_high_speed_adc
What could be the problem?
Code:
#include <main.h>
void main()
{
int16 result[4];
setup_high_speed_adc(ADC_CLOCK_DIV_4);
setup_high_speed_adc_pair(0, GLOBAL_SOFTWARE_TRIGGER);
setup_high_speed_adc_pair(4, GLOBAL_SOFTWARE_TRIGGER);
while(TRUE)
{
read_high_speed_adc(result);
}
Error message: undefined identifier setup_high_speed_adc
undefined identifier setup_high_speed_adc_pair
undefined identifier read_high_speed_adc
What could be the problem?
Last edited by a moderator: