From f12df4c71997b9bb829d535b15ee722c83cfc890 Mon Sep 17 00:00:00 2001 From: Mark D Date: Mon, 19 Nov 2018 10:39:42 -0500 Subject: [PATCH] allow component projects to compile with CONFIG_DISABLE_HAL_LOCKS (#1880) --- cores/esp32/esp32-hal-rmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp32/esp32-hal-rmt.c b/cores/esp32/esp32-hal-rmt.c index d46caf833..072924b23 100644 --- a/cores/esp32/esp32-hal-rmt.c +++ b/cores/esp32/esp32-hal-rmt.c @@ -46,8 +46,8 @@ #define _INT_THR_EVNT(channel) ((__INT_THR_EVNT)<<(channel)) #if CONFIG_DISABLE_HAL_LOCKS -# define UART_MUTEX_LOCK(channel) -# define UART_MUTEX_UNLOCK(channel) +# define RMT_MUTEX_LOCK(channel) +# define RMT_MUTEX_UNLOCK(channel) #else # define RMT_MUTEX_LOCK(channel) do {} while (xSemaphoreTake(g_rmt_objlocks[channel], portMAX_DELAY) != pdPASS) # define RMT_MUTEX_UNLOCK(channel) xSemaphoreGive(g_rmt_objlocks[channel]) -- GitLab