1
0
forked from me/IronOS

Cleanup duplicate code

This commit is contained in:
Ben V. Brown
2021-04-08 21:54:10 +10:00
parent 22c5f6d361
commit 4ee91d45fe
9 changed files with 159 additions and 358 deletions

View File

@@ -28,14 +28,10 @@ public:
static void Transmit(uint16_t DevAddress, uint8_t *pData, uint16_t Size);
static void Receive(uint16_t DevAddress, uint8_t *pData, uint16_t Size);
static void TransmitReceive(uint16_t DevAddress, uint8_t *pData_tx, uint16_t Size_tx, uint8_t *pData_rx, uint16_t Size_rx);
static void unlock2();
static bool lock2();
private:
static SemaphoreHandle_t I2CSemaphore;
static StaticSemaphore_t xSemaphoreBuffer;
static SemaphoreHandle_t I2CSemaphore2;
static StaticSemaphore_t xSemaphoreBuffer2;
static void unlock();
static bool lock();
static void start();