bugfixes i2c bus access

This commit is contained in:
Klaus K Wilting committed 2019-02-02 10:35:20 +01:00
1 parent ab5cd0b0a2
commit e7a416cd7a
4 files changed
+89 -88

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@
#define SCREEN_MODE (0x80)
// I2C bus access control
#define I2C_MUTEX_LOCK() xSemaphoreTake(I2Caccess, (DISPLAYREFRESH_MS / portTICK_PERIOD_MS)) == pdTRUE
#define I2C_MUTEX_LOCK() xSemaphoreTake(I2Caccess, (3 * DISPLAYREFRESH_MS / portTICK_PERIOD_MS)) == pdTRUE
#define I2C_MUTEX_UNLOCK() xSemaphoreGive(I2Caccess)
// Struct holding devices's runtime configuration