i2c fixes + server improvements
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user