Commit Graph

3 Commits

Author SHA1 Message Date
morris
1626766abf rmt: simplify rmt source clock configure with clk_tree API
Also decrease the payload size for testing the multi-channel behaviour.
2023-02-10 18:24:27 +08:00
Darian Leung
1834d8ac39 driver(RMT): Fix RMT TX multi channel test
This commit multiple issues with the following RMT TX tests:

- rmt_multi_channels_trans_no_dma
- rmt_multi_channels_trans_with_dma

The following issues are fixed:

- Channel stop times are now tested using TEST_ASSERT_INT64_WITHIN(). The
previous method did not account for the case where channel 1 finished before
channel 0
- Increased synchronous stop time delta for esp32-c6
- Increased main task stack size to prevent stack overflow onesp32-s3
2023-01-18 16:09:47 +08:00
morris
2fb43820c2 driver_ng: implement new rmt driver
The legacy driver can't handle the breaking change between esp chips

very well.

And it's not elegant to extend new feature like DMA, ETM.

The new driver can return a opaque handle for each RMT channel.

An obvious transaction concept was also introduced.

TX and RX functionalities are splited out.
2022-05-07 10:34:50 +00:00