Searched refs:s_flash_op_mutex (Results 1 – 2 of 2) sorted by relevance
76 static SemaphoreHandle_t s_flash_op_mutex; variable96 s_flash_op_mutex = xSemaphoreCreateRecursiveMutex(); in spi_flash_init_lock()97 assert(s_flash_op_mutex != NULL); in spi_flash_init_lock()102 xSemaphoreTakeRecursive(s_flash_op_mutex, portMAX_DELAY); in spi_flash_op_lock()107 xSemaphoreGiveRecursive(s_flash_op_mutex); in spi_flash_op_unlock()
54 K_MUTEX_DEFINE(s_flash_op_mutex);63 k_mutex_lock(&s_flash_op_mutex, K_FOREVER); in spi_flash_op_lock()68 k_mutex_unlock(&s_flash_op_mutex); in spi_flash_op_unlock()