2026-10-05 19:28:37 +02:00
|
|
|
#ifndef YGG_LOCK_H
|
|
|
|
|
#define YGG_LOCK_H
|
|
|
|
|
|
|
|
|
|
#include <freertos/FreeRTOS.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
|
|
void ygg_lock_init(void);
|
|
|
|
|
|
|
|
|
|
bool ygg_i2c_lock_take(TickType_t timeout);
|
|
|
|
|
void ygg_i2c_lock_give(void);
|
|
|
|
|
|
|
|
|
|
bool ygg_lvgl_lock_take(TickType_t timeout);
|
|
|
|
|
void ygg_lvgl_lock_give(void);
|
|
|
|
|
|
|
|
|
|
#endif
|