Search found 1 match

by johnyan
Thu Oct 24, 2019 3:22 pm
Forum: ESP-IDF
Topic: Question on adc1_get_raw
Replies: 1
Views: 2752

Question on adc1_get_raw

Hello everyone,

I know adc1_get_raw is blocking cpu on polling meas1_done_sar.

Code: Select all

while (SENS.sar_meas_start1.meas1_done_sar == 0);
Can we add taskYIELD() to make it slightly efficient?

Code: Select all

while (SENS.sar_meas_start1.meas1_done_sar == 0) taskYIELD();
Thanks,
John