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);
Code: Select all
while (SENS.sar_meas_start1.meas1_done_sar == 0) taskYIELD();
John
Code: Select all
while (SENS.sar_meas_start1.meas1_done_sar == 0);
Code: Select all
while (SENS.sar_meas_start1.meas1_done_sar == 0) taskYIELD();
What issue you are facing after adding that code? Or you can also add some delay for that.johnyan wrote: ↑Thu Oct 24, 2019 3:22 pmHello everyone,
I know adc1_get_raw is blocking cpu on polling meas1_done_sar.
Can we add taskYIELD() to make it slightly efficient?Code: Select all
while (SENS.sar_meas_start1.meas1_done_sar == 0);
Thanks,Code: Select all
while (SENS.sar_meas_start1.meas1_done_sar == 0) taskYIELD();
John
Users browsing this forum: No registered users and 112 guests