Conversation
|
@joelguittet I think you must also:
|
52e8b8f to
35199ef
Compare
|
@wmrsouza thanks for the inputs, however, I'm not sure how the pinctrl should be done for such driver. Actually the pin is configured when creating a channel. It's configured at runtime and can change depending on application behavior. How to set pins in the device tree in the rmt node and then reuse them when creating channels in the application? Do you have a similar example in mind? |
|
@joelguittet pincfgs will permit to apply different states to the peripheral pins according to the Zephyr's power management state. At least you should define rmt pincfg in device tree for the default state and then: during peripheral instance initialization or configuration for instance, rmt initialization and channel configuration is very similar to i2s |
|
@joelguittet for pincfgs, take a look in the PR#282 where i2s was suported on esp32s3 and esp32c3 (and related pins entry were inserted) rmt case will be, probably: consult TRM and datasheet to get pin ranges |
35199ef to
ff71c37
Compare
ff71c37 to
7467d4f
Compare
|
LGTM |
Changes applied in subsequent commit. Dismissing review.
|
@sylvioalves , @marekmatej , @LucasTambor , @raffarost , PTAL |
|
@joelguittet I suggest you to re-work rmt.h entries to adapt to Zephyr-like, i.e., removing freertos calls, converting to Zephyr locks, add kernel.h and so. This way you can use hal_espressif headers in Zephyr driver directly. |
Hello @sylvioalves
|
47d6d27 to
e9d66c0
Compare
4d1c664 to
48f99c6
Compare
zephyr/esp32/CMakeLists.txt
Outdated
| ) | ||
| zephyr_include_directories_ifdef( | ||
| CONFIG_ESPRESSIF_RMT | ||
| ../../components/esp_hal_rmt/include |
There was a problem hiding this comment.
Would you mind moving this to common include section at the top? I know it is global includes and eventually will improve this..
There was a problem hiding this comment.
No problem, will do
fc610c3 to
66b473f
Compare
Add expected source files to CMakeLists.txt for each relevant targets. Signed-off-by: Joel Guittet <joelguittet@gmail.com>
66b473f to
955a901
Compare
Add expected source files to CMakeLists.txt for each relevant targets.