G0: hal/regi2c_ctrl.h now defines all REGI2C macros to pass g0_components build test

This commit is contained in:
songruojing 2022-07-05 16:12:33 +08:00
parent a9c8065030
commit 996fb0cce8

View File

@ -17,5 +17,16 @@
#include "esp_private/regi2c_ctrl.h"
#else
#include "esp_rom_regi2c.h"
#define REGI2C_WRITE_MASK(block, reg_add, indata) esp_rom_regi2c_write_mask(block, block##_HOSTID, reg_add, reg_add##_MSB, reg_add##_LSB, indata)
#define REGI2C_WRITE_MASK(block, reg_add, indata) \
esp_rom_regi2c_write_mask(block, block##_HOSTID, reg_add, reg_add##_MSB, reg_add##_LSB, indata)
#define REGI2C_WRITE(block, reg_add, indata) \
esp_rom_regi2c_write(block, block##_HOSTID, reg_add, indata)
#define REGI2C_READ_MASK(block, reg_add) \
esp_rom_regi2c_read_mask(block, block##_HOSTID, reg_add, reg_add##_MSB, reg_add##_LSB)
#define REGI2C_READ(block, reg_add) \
esp_rom_regi2c_read(block, block##_HOSTID, reg_add)
#endif