forked from espressif/arduino-esp32
RMT refactoring based on IDF (#6024)
Summary RMT HAL refactoring based on IDF. Impact Improves RMT by adding IDF v4.4 support. Receiving RMT can handle any size of data. rmtInit() has a new parameter - RxBufferSize - to hold any number of data when receiving RMT. rmtWrite() has a new parameter - wait_tx_done - to block writing until sending all data. Related links fix #5905
This commit is contained in:
@ -12,7 +12,7 @@ class MyProcessor {
|
||||
|
||||
public:
|
||||
MyProcessor(uint8_t pin, float nanoTicks) {
|
||||
assert((rmt_recv = rmtInit(21, false, RMT_MEM_192)));
|
||||
assert((rmt_recv = rmtInit(21, RMT_RX_MODE, RMT_MEM_192)));
|
||||
|
||||
realNanoTick = rmtSetTick(rmt_recv, nanoTicks);
|
||||
};
|
||||
@ -61,4 +61,4 @@ void loop()
|
||||
{
|
||||
Serial.printf("GPIO 4: %08x 5: %08x 6: %08x\n", mp1.val(), mp2.val(), mp3.val());
|
||||
delay(500);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user