Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorNehrutsa committed Jan 30, 2024
1 parent 4bd7b04 commit 5bbba6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/esp32/quickref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ working with this board it may be useful to get an overview of the microcontroll
:maxdepth: 1

general.rst
pcnt.rst
tutorial/index.rst

Installing MicroPython
Expand Down
4 changes: 2 additions & 2 deletions ports/esp32/machine_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ STATIC void IRAM_ATTR pcnt_intr_handler(void *arg) {
}
if (status_unit & PCNT_EVT_ZERO) {
if (self->counter == 0) {
//self->status |= PCNT_EVT_ZERO;
// self->status |= PCNT_EVT_ZERO;
mp_sched_schedule(self->handler_zero, MP_OBJ_FROM_PTR(self));
mp_hal_wake_main_task_from_isr();
}
}
}
//PCNT.int_clr.val = BIT(id); // clear the interrupt
// PCNT.int_clr.val = BIT(id); // clear the interrupt
}
}
}
Expand Down

0 comments on commit 5bbba6d

Please sign in to comment.