For ADC with circular buffer option, It's never end operation.
This is right ?...
For this reason, In main.c of testhal, Should not run to adcStop(&ADCD1).
Code: Select all
static msg_t adc_continuous_thread(void *p){
(void)p;
palSetGroupMode(IOPORT3,
PAL_PORT_BIT(0) | PAL_PORT_BIT(1),
PAL_MODE_INPUT_ANALOG);
adcStart(&ADCD1, &adccfg);
adcStartConversion(&ADCD1, &adcgrpcfg, samples,
ADC_GRP1_BUF_DEPTH, adccallback);
adcWaitConversion(&ADCD1, TIME_INFINITE);
adcStop(&ADCD1);
return 0;
}
Thanks for advance.
mculover