We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e207db7 + 750535d commit aafec49Copy full SHA for aafec49
ports/espressif/peripherals/rmt.c
@@ -40,6 +40,14 @@ void peripherals_rmt_reset(void) {
40
rmt_channel_t peripherals_find_and_reserve_rmt(bool mode) {
41
size_t start_channel = 0;
42
size_t end_channel = RMT_CHANNEL_MAX;
43
+ // ESP32C3 can only send on channels 0-1 and receive on channels 2-3
44
+ #if defined(CONFIG_IDF_TARGET_ESP32C3)
45
+ if (mode == RECEIVE_MODE) {
46
+ start_channel = 2;
47
+ } else {
48
+ end_channel = 2;
49
+ }
50
+ #endif // ESP32C3
51
#if SOC_RMT_CHANNELS_PER_GROUP > 4
52
if (mode == RECEIVE_MODE) {
53
start_channel = 4;
0 commit comments