rmt_onewire: refactor example with component manager

Closes https://github.com/espressif/esp-idf/issues/10790
This commit is contained in:
morris
2023-04-27 15:02:55 +08:00
committed by suda-morris
parent afd0e384db
commit af2085b789
17 changed files with 160 additions and 1155 deletions
+1 -1
View File
@@ -500,7 +500,7 @@ static bool IRAM_ATTR rmt_isr_handle_rx_done(rmt_rx_channel_t *rx_chan)
rmt_ll_rx_enable(hal->regs, channel_id, false);
uint32_t offset = rmt_ll_rx_get_memory_writer_offset(hal->regs, channel_id);
// sanity check
assert(offset > rx_chan->mem_off);
assert(offset >= rx_chan->mem_off);
rmt_ll_rx_set_mem_owner(hal->regs, channel_id, RMT_LL_MEM_OWNER_SW);
// copy the symbols to user space
size_t stream_symbols = offset - rx_chan->mem_off;