From 9cb2a27725890cafa444a3ce155d79848daf2a23 Mon Sep 17 00:00:00 2001 From: Larry Bernstone Date: Fri, 15 Mar 2019 07:28:27 -0600 Subject: [PATCH 1/2] Added rmtDeinit to header. Fixes #2585 --- cores/esp32/esp32-hal-rmt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cores/esp32/esp32-hal-rmt.h b/cores/esp32/esp32-hal-rmt.h index 944178e31ec..18aee78c4c0 100644 --- a/cores/esp32/esp32-hal-rmt.h +++ b/cores/esp32/esp32-hal-rmt.h @@ -122,6 +122,10 @@ bool rmtSetCarrier(rmt_obj_t* rmt, bool carrier_en, bool carrier_level, uint32_t */ bool rmtSetFilter(rmt_obj_t* rmt, bool filter_en, uint32_t filter_level); +/** + * Deinitialize the driver + */ +bool rmtDeinit(rmt_obj_t *rmt) // TODO: // * uninstall interrupt when all channels are deinit From db61f6d01e81815dea002c1540e187474e4bcd99 Mon Sep 17 00:00:00 2001 From: Larry Bernstone Date: Fri, 15 Mar 2019 21:44:51 -0600 Subject: [PATCH 2/2] oops. missing ; --- cores/esp32/esp32-hal-rmt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-rmt.h b/cores/esp32/esp32-hal-rmt.h index 18aee78c4c0..19afcef89c7 100644 --- a/cores/esp32/esp32-hal-rmt.h +++ b/cores/esp32/esp32-hal-rmt.h @@ -125,7 +125,7 @@ bool rmtSetFilter(rmt_obj_t* rmt, bool filter_en, uint32_t filter_level); /** * Deinitialize the driver */ -bool rmtDeinit(rmt_obj_t *rmt) +bool rmtDeinit(rmt_obj_t *rmt); // TODO: // * uninstall interrupt when all channels are deinit