16 lines
278 B
C
16 lines
278 B
C
#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
|