Skip to content

Commit f12df4c

Browse files
markyadme-no-dev
authored andcommitted
allow component projects to compile with CONFIG_DISABLE_HAL_LOCKS (espressif#1880)
1 parent 85032b2 commit f12df4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/esp32-hal-rmt.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
#define _INT_THR_EVNT(channel) ((__INT_THR_EVNT)<<(channel))
4747

4848
#if CONFIG_DISABLE_HAL_LOCKS
49-
# define UART_MUTEX_LOCK(channel)
50-
# define UART_MUTEX_UNLOCK(channel)
49+
# define RMT_MUTEX_LOCK(channel)
50+
# define RMT_MUTEX_UNLOCK(channel)
5151
#else
5252
# define RMT_MUTEX_LOCK(channel) do {} while (xSemaphoreTake(g_rmt_objlocks[channel], portMAX_DELAY) != pdPASS)
5353
# define RMT_MUTEX_UNLOCK(channel) xSemaphoreGive(g_rmt_objlocks[channel])

0 commit comments

Comments
 (0)