9ceb218f80
Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
377 B
C
19 lines
377 B
C
#ifndef TASK_LOCK_H
|
|
#define TASK_LOCK_H
|
|
|
|
#include "app_init/app_init.h"
|
|
#include "semphr.h"
|
|
|
|
typedef enum
|
|
{
|
|
TASK_LOCK_OP_INIT = 0,
|
|
TASK_LOCK_OP_TAKE,
|
|
TASK_LOCK_OP_GIVE,
|
|
TASK_LOCK_OP_DELETE
|
|
} TASK_LOCK_OP_E;
|
|
|
|
uint8_t u8_task_lock_ctrl(TASK_ID task_id, TASK_LOCK_OP_E op);
|
|
uint8_t u8_task_lock_handle_ctrl(SemaphoreHandle_t *p_handle, TASK_LOCK_OP_E op);
|
|
|
|
#endif
|