Search found 3 matches

by jedail
Fri Feb 03, 2017 9:41 am
Forum: General Discussion
Topic: Getting Timer IRQ when touch pad measure is done
Replies: 4
Views: 7114

Re: Getting Timer IRQ when touch pad measure is done

My previously posted code is not totally working as expected, in some case I get false reading.
Probably because the critical section has no effect.
I tried to play with all IRQs source in RTC_CNTL_INT_ENA_REG but I will never get called when a touch measure is ready in the fsm ...
by jedail
Wed Feb 01, 2017 9:34 am
Forum: General Discussion
Topic: Getting Timer IRQ when touch pad measure is done
Replies: 4
Views: 7114

Re: Getting Timer IRQ when touch pad measure is done

I ended up with the following code: #include "freertos/FreeRTOS.h" #include "freertos/task.h" extern portMUX_TYPE rtc_spinlock; volatile uint16_t bits=0; uint16_t get_bits() { uint8_t i, j = 0; uint16_t touch_value; if (GET_PERI_REG_MASK(SENS_SAR_TOUCH_CTRL2_REG, SENS_TOUCH_MEAS_DONE) == 0) return b...
by jedail
Tue Jan 31, 2017 9:59 am
Forum: General Discussion
Topic: Getting Timer IRQ when touch pad measure is done
Replies: 4
Views: 7114

Getting Timer IRQ when touch pad measure is done

I'm using the touch pad in ESP32, the software example is nice, an IRQ handler get called when a pad is touched but I'm unable to have the information that the pad has been released. Thus I've tried to use the touch_pad_read function but this function is blocking/stalling a little amount of time at ...