i2c release time increased, for AXP192 chip

This commit is contained in:
Verkehrsrot 2019-10-12 15:59:21 +02:00
parent d80a41a9bf
commit 06814d3190

View File

@ -41,12 +41,12 @@
#define BLE_MODE (0x40)
#define SCREEN_MODE (0x80)
// length of display buffer for lmic event messages
// length of display buffer for lmic event messages
#define LMIC_EVENTMSG_LEN 17
// I2C bus access control
#define I2C_MUTEX_LOCK() \
(xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(10)) == pdTRUE)
(xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(DISPLAYREFRESH_MS)) == pdTRUE)
#define I2C_MUTEX_UNLOCK() (xSemaphoreGive(I2Caccess))
enum sendprio_t { prio_low, prio_normal, prio_high };