bugfix IRQ masking
This commit is contained in:
1 parent
1bc63bad94
commit
31c0037cba
3 files changed
+9
-9
No files matched your search
+2
-2
@@ -42,8 +42,8 @@
|
||||
#define SCREEN_MODE (0x80)
|
||||
|
||||
// I2C bus access control
|
||||
#define I2C_MUTEX_LOCK() xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(10)) == pdTRUE
|
||||
#define I2C_MUTEX_UNLOCK() xSemaphoreGive(I2Caccess)
|
||||
#define I2C_MUTEX_LOCK() (xSemaphoreTake(I2Caccess, pdMS_TO_TICKS(10)) == pdTRUE)
|
||||
#define I2C_MUTEX_UNLOCK() (xSemaphoreGive(I2Caccess))
|
||||
|
||||
// Struct holding devices's runtime configuration
|
||||
typedef struct {
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include "timekeeper.h"
|
||||
|
||||
void irqHandler(void *pvParameters);
|
||||
bool mask_user_IRQ();
|
||||
bool unmask_user_IRQ();
|
||||
int mask_user_IRQ();
|
||||
int unmask_user_IRQ();
|
||||
|
||||
#ifdef HAS_DISPLAY
|
||||
void IRAM_ATTR DisplayIRQ();
|
||||
|
||||
Reference in new issue
Block a user