mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
esp32/machine_timer: Use tx_update member for IDF 4.4 and above.
This commit is contained in:
committed by
Damien George
parent
4552f1816b
commit
f690fd3a47
@@ -137,8 +137,12 @@ STATIC void machine_timer_isr(void *self_in) {
|
|||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
device->hw_timer[self->index].update = 1;
|
device->hw_timer[self->index].update = 1;
|
||||||
#else
|
#else
|
||||||
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)
|
||||||
|
device->hw_timer[self->index].update.tx_update = 1;
|
||||||
|
#else
|
||||||
device->hw_timer[self->index].update.update = 1;
|
device->hw_timer[self->index].update.update = 1;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
timer_ll_clear_intr_status(device, self->index);
|
timer_ll_clear_intr_status(device, self->index);
|
||||||
timer_ll_set_alarm_enable(device, self->index, self->repeat);
|
timer_ll_set_alarm_enable(device, self->index, self->repeat);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user