diff --git a/arch/xtensa/src/esp32/hardware/esp32_soc.h b/arch/xtensa/src/esp32/hardware/esp32_soc.h index d530f860b6..f208741b61 100644 --- a/arch/xtensa/src/esp32/hardware/esp32_soc.h +++ b/arch/xtensa/src/esp32/hardware/esp32_soc.h @@ -447,14 +447,14 @@ #define I2C_BBPLL 0x66 #define I2C_BBPLL_HOSTID 4 -extern int rom_i2c_writeReg(int block, int block_id, int reg_add, +extern int rom_i2c_writereg(int block, int block_id, int reg_add, int indata); #define I2C_WRITEREG_RTC(block, reg_add, indata) \ - rom_i2c_writeReg(block, block##_HOSTID, reg_add, indata) + rom_i2c_writereg(block, block##_HOSTID, reg_add, indata) #define I2C_READREG_RTC(block, reg_add) \ - rom_i2c_readReg(block, block##_HOSTID, reg_add) + rom_i2c_readreg(block, block##_HOSTID, reg_add) /* BBPLL configuration values */ diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3_rom.ld b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3_rom.ld index f35761dbe2..a675427fe4 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3_rom.ld +++ b/boards/risc-v/esp32c3/esp32c3-devkit/scripts/esp32c3_rom.ld @@ -1815,10 +1815,10 @@ rom_get_data_sat = 0x40001944; rom_get_i2c_read_mask = 0x40001948; rom_get_pwctrl_correct = 0x4000194c; rom_get_rf_gain_qdb = 0x40001950; -rom_i2c_readReg = 0x40001954; -rom_i2c_readReg_Mask = 0x40001958; -rom_i2c_writeReg = 0x4000195c; -rom_i2c_writeReg_Mask = 0x40001960; +rom_i2c_readreg = 0x40001954; +rom_i2c_readreg_Mask = 0x40001958; +rom_i2c_writereg = 0x4000195c; +rom_i2c_writereg_Mask = 0x40001960; rom_index_to_txbbgain = 0x40001964; rom_iq_est_disable = 0x40001968; rom_iq_est_enable = 0x4000196c; diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld index f8f1cf813a..2333d20aba 100644 --- a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld +++ b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld @@ -1379,10 +1379,10 @@ PROVIDE ( rom_get_pwctrl_correct = 0x400065d4 ); PROVIDE ( rom_get_rfcal_rxiq_data = 0x40005bbc ); PROVIDE ( rom_get_rf_gain_qdb = 0x40006290 ); PROVIDE ( rom_get_sar_dout = 0x40006564 ); -PROVIDE ( rom_i2c_readReg = 0x40004148 ); -PROVIDE ( rom_i2c_readReg_Mask = 0x400041c0 ); -PROVIDE ( rom_i2c_writeReg = 0x400041a4 ); -PROVIDE ( rom_i2c_writeReg_Mask = 0x400041fc ); +PROVIDE ( rom_i2c_readreg = 0x40004148 ); +PROVIDE ( rom_i2c_readreg_Mask = 0x400041c0 ); +PROVIDE ( rom_i2c_writereg = 0x400041a4 ); +PROVIDE ( rom_i2c_writereg_Mask = 0x400041fc ); PROVIDE ( rom_index_to_txbbgain = 0x40004df8 ); PROVIDE ( rom_iq_est_disable = 0x40005590 ); PROVIDE ( rom_iq_est_enable = 0x40005514 ); diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld index f8f1cf813a..2333d20aba 100644 --- a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld +++ b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld @@ -1379,10 +1379,10 @@ PROVIDE ( rom_get_pwctrl_correct = 0x400065d4 ); PROVIDE ( rom_get_rfcal_rxiq_data = 0x40005bbc ); PROVIDE ( rom_get_rf_gain_qdb = 0x40006290 ); PROVIDE ( rom_get_sar_dout = 0x40006564 ); -PROVIDE ( rom_i2c_readReg = 0x40004148 ); -PROVIDE ( rom_i2c_readReg_Mask = 0x400041c0 ); -PROVIDE ( rom_i2c_writeReg = 0x400041a4 ); -PROVIDE ( rom_i2c_writeReg_Mask = 0x400041fc ); +PROVIDE ( rom_i2c_readreg = 0x40004148 ); +PROVIDE ( rom_i2c_readreg_Mask = 0x400041c0 ); +PROVIDE ( rom_i2c_writereg = 0x400041a4 ); +PROVIDE ( rom_i2c_writereg_Mask = 0x400041fc ); PROVIDE ( rom_index_to_txbbgain = 0x40004df8 ); PROVIDE ( rom_iq_est_disable = 0x40005590 ); PROVIDE ( rom_iq_est_enable = 0x40005514 ); diff --git a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld index f8f1cf813a..2333d20aba 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld +++ b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld @@ -1379,10 +1379,10 @@ PROVIDE ( rom_get_pwctrl_correct = 0x400065d4 ); PROVIDE ( rom_get_rfcal_rxiq_data = 0x40005bbc ); PROVIDE ( rom_get_rf_gain_qdb = 0x40006290 ); PROVIDE ( rom_get_sar_dout = 0x40006564 ); -PROVIDE ( rom_i2c_readReg = 0x40004148 ); -PROVIDE ( rom_i2c_readReg_Mask = 0x400041c0 ); -PROVIDE ( rom_i2c_writeReg = 0x400041a4 ); -PROVIDE ( rom_i2c_writeReg_Mask = 0x400041fc ); +PROVIDE ( rom_i2c_readreg = 0x40004148 ); +PROVIDE ( rom_i2c_readreg_Mask = 0x400041c0 ); +PROVIDE ( rom_i2c_writereg = 0x400041a4 ); +PROVIDE ( rom_i2c_writereg_Mask = 0x400041fc ); PROVIDE ( rom_index_to_txbbgain = 0x40004df8 ); PROVIDE ( rom_iq_est_disable = 0x40005590 ); PROVIDE ( rom_iq_est_enable = 0x40005514 );