diff --git a/arch/arm/src/nrf53/hardware/nrf53_twi.h b/arch/arm/src/nrf53/hardware/nrf53_twi.h index 1765cab4a78..603228ade52 100644 --- a/arch/arm/src/nrf53/hardware/nrf53_twi.h +++ b/arch/arm/src/nrf53/hardware/nrf53_twi.h @@ -62,9 +62,9 @@ #define NRF53_TWIM_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */ #define NRF53_TWIM_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */ #define NRF53_TWIM_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */ -#define NRF53_TWIM_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ -#define NRF53_TWIM_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ -#define NRF53_TWIM_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */ +#define NRF53_TWIM_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ +#define NRF53_TWIM_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ +#define NRF53_TWIM_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */ #define NRF53_TWIM_ADDRESS_OFFSET 0x0588 /* TWIM address */ /* Register offsets for TWI slave (TWIS) ************************************/ @@ -94,9 +94,9 @@ #define NRF53_TWIS_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */ #define NRF53_TWIS_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */ #define NRF53_TWIS_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */ -#define NRF53_TWIS_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ -#define NRF53_TWIS_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ -#define NRF53_TWIS_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */ +#define NRF53_TWIS_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ +#define NRF53_TWIS_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ +#define NRF53_TWIS_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */ #define NRF53_TWIS_ADDRESS0_OFFSET 0x0588 /* TWIS address 0 */ #define NRF53_TWIS_ADDRESS1_OFFSET 0x058c /* TWIS address 1 */ #define NRF53_TWIS_CONFIG_OFFSET 0x0594 /* Configuration register for the address match mechanism */ diff --git a/arch/arm/src/nrf53/nrf53_i2c.c b/arch/arm/src/nrf53/nrf53_i2c.c index 7e1628d500f..6284372122d 100644 --- a/arch/arm/src/nrf53/nrf53_i2c.c +++ b/arch/arm/src/nrf53/nrf53_i2c.c @@ -423,7 +423,7 @@ static int nrf53_i2c_transfer(struct i2c_master_s *dev, /* Write number of bytes in TXD buffer */ regval = priv->dcnt; - nrf53_i2c_putreg(priv, NRF53_TWIM_TXMAXCNT_OFFSET, regval); + nrf53_i2c_putreg(priv, NRF53_TWIM_TXDMAXCNT_OFFSET, regval); /* Start TX sequence */ diff --git a/arch/arm/src/nrf91/hardware/nrf91_twi.h b/arch/arm/src/nrf91/hardware/nrf91_twi.h index 8697fabea18..c99a03d8696 100644 --- a/arch/arm/src/nrf91/hardware/nrf91_twi.h +++ b/arch/arm/src/nrf91/hardware/nrf91_twi.h @@ -62,9 +62,9 @@ #define NRF91_TWIM_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */ #define NRF91_TWIM_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */ #define NRF91_TWIM_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */ -#define NRF91_TWIM_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ -#define NRF91_TWIM_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ -#define NRF91_TWIM_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */ +#define NRF91_TWIM_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ +#define NRF91_TWIM_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ +#define NRF91_TWIM_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */ #define NRF91_TWIM_ADDRESS_OFFSET 0x0588 /* TWIM address */ /* Register offsets for TWI slave (TWIS) ************************************/ @@ -94,9 +94,9 @@ #define NRF91_TWIS_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */ #define NRF91_TWIS_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */ #define NRF91_TWIS_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */ -#define NRF91_TWIS_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ -#define NRF91_TWIS_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ -#define NRF91_TWIS_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */ +#define NRF91_TWIS_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */ +#define NRF91_TWIS_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */ +#define NRF91_TWIS_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */ #define NRF91_TWIS_ADDRESS0_OFFSET 0x0588 /* TWIS address 0 */ #define NRF91_TWIS_ADDRESS1_OFFSET 0x058c /* TWIS address 1 */ #define NRF91_TWIS_CONFIG_OFFSET 0x0594 /* Configuration register for the address match mechanism */ diff --git a/arch/arm/src/nrf91/nrf91_i2c.c b/arch/arm/src/nrf91/nrf91_i2c.c index f600485e347..a73eb68b691 100644 --- a/arch/arm/src/nrf91/nrf91_i2c.c +++ b/arch/arm/src/nrf91/nrf91_i2c.c @@ -423,7 +423,7 @@ static int nrf91_i2c_transfer(struct i2c_master_s *dev, /* Write number of bytes in TXD buffer */ regval = priv->dcnt; - nrf91_i2c_putreg(priv, NRF91_TWIM_TXMAXCNT_OFFSET, regval); + nrf91_i2c_putreg(priv, NRF91_TWIM_TXDMAXCNT_OFFSET, regval); /* Start TX sequence */