Use GPIO API from IRAM ISR

dejan.ns
Posts: 5
Joined: Fri Dec 15, 2017 11:03 pm

Use GPIO API from IRAM ISR

Postby dejan.ns » Mon Jan 08, 2018 12:17 pm

I am writing a OneWire protocol handling task and I am using a timer ISR with IRAM attribute set to achieve precise timing (order of uS) needed to handle One Wire protocol.
Can I use regular GPIO API functions inside IRAM ISR?
If not, how can I read, write and change direction of the GPIO (on the fly, from input to output and vice versa) by accessing the ESP32 registers directly?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Use GPIO API from IRAM ISR

Postby WiFive » Mon Jan 08, 2018 12:46 pm


ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Use GPIO API from IRAM ISR

Postby ESP_igrr » Mon Jan 08, 2018 1:38 pm


Who is online

Users browsing this forum: jimmy98035@gmail.com and 101 guests