H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
esp_h264_mutex.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#pragma once
8
9#include "freertos/portmacro.h"
10#include "freertos/FreeRTOS.h"
11#include "freertos/semphr.h"
12
14#define ESP_H264_MAX_DELAY portMAX_DELAY
15#define esp_h264_mutex_lock(mutex, blocktime) xSemaphoreTake(mutex, blocktime)
16#define esp_h264_mutex_unlock_from_isr(mutex, task_woken) xSemaphoreGiveFromISR(mutex, task_woken)
17#define esp_h264_mutex_unlock(mutex) xSemaphoreGive(mutex)
18#define esp_h264_mutex_create xSemaphoreCreateBinary
19#define esp_h264_mutex_delete(mutex) vSemaphoreDelete(mutex)
20#define esp_h264_port_yield_from_isr() portYIELD_FROM_ISR()
SemaphoreHandle_t esp_h264_mutex_t
Definition: esp_h264_mutex.h:13