mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
G0: hal/regi2c_ctrl.h now defines all REGI2C macros to pass g0_components build test
This commit is contained in:
parent
a9c8065030
commit
996fb0cce8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user