Browse Source

Update SCCB driver for IDF 5.x

pull/362/head
Me No Dev 3 years ago committed by GitHub
parent
commit
9a902c4e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      driver/sccb.c

5
driver/sccb.c

@ -25,6 +25,11 @@ static const char* TAG = "sccb"; @@ -25,6 +25,11 @@ static const char* TAG = "sccb";
#include "driver/i2c.h"
// support IDF 5.x
#ifndef portTICK_RATE_MS
#define portTICK_RATE_MS portTICK_PERIOD_MS
#endif
#define SCCB_FREQ CONFIG_SCCB_CLK_FREQ /*!< I2C master frequency*/
#define WRITE_BIT I2C_MASTER_WRITE /*!< I2C master write */
#define READ_BIT I2C_MASTER_READ /*!< I2C master read */

Loading…
Cancel
Save