allow component projects to compile with CONFIG_DISABLE_HAL_LOCKS (#1880)

This commit is contained in:
Mark D 2018-11-19 10:39:42 -05:00 committed by Me No Dev
parent 85032b226c
commit f12df4c719

View File

@ -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])