Update the Tiva I2C register definitions for the TM4C123 and TM4C129
This commit is contained in:
parent
c6cc9b1030
commit
928bc5ca84
@ -50,187 +50,815 @@
|
|||||||
|
|
||||||
/* I2C Master */
|
/* I2C Master */
|
||||||
|
|
||||||
#define TIVA_I2CM_SA_OFFSET 0x000 /* I2C Master Slave Address */
|
#define TIVA_I2CM_SA_OFFSET 0x0000 /* I2C Master Slave Address */
|
||||||
#define TIVA_I2CM_CS_OFFSET 0x004 /* I2C Master Control/Status */
|
#define TIVA_I2CM_CS_OFFSET 0x0004 /* I2C Master Control/Status */
|
||||||
#define TIVA_I2CM_DR_OFFSET 0x008 /* I2C Master Data */
|
#define TIVA_I2CM_DR_OFFSET 0x0008 /* I2C Master Data */
|
||||||
#define TIVA_I2CM_TPR_OFFSET 0x00c /* I2C Master Timer Period */
|
#define TIVA_I2CM_TPR_OFFSET 0x000c /* I2C Master Timer Period */
|
||||||
#define TIVA_I2CM_IMR_OFFSET 0x010 /* I2C Master Interrupt Mask */
|
#define TIVA_I2CM_IMR_OFFSET 0x0010 /* I2C Master Interrupt Mask */
|
||||||
#define TIVA_I2CM_RIS_OFFSET 0x014 /* I2C Master Raw Interrupt Status */
|
#define TIVA_I2CM_RIS_OFFSET 0x0014 /* I2C Master Raw Interrupt Status */
|
||||||
#define TIVA_I2CM_MIS_OFFSET 0x018 /* I2C Master Masked Interrupt Status */
|
#define TIVA_I2CM_MIS_OFFSET 0x0018 /* I2C Master Masked Interrupt Status */
|
||||||
#define TIVA_I2CM_ICR_OFFSET 0x01c /* I2C Master Interrupt Clear */
|
#define TIVA_I2CM_ICR_OFFSET 0x001c /* I2C Master Interrupt Clear */
|
||||||
#define TIVA_I2CM_CR_OFFSET 0x020 /* I2C Master Configuration */
|
#define TIVA_I2CM_CR_OFFSET 0x0020 /* I2C Master Configuration */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM_CLKOCNT_OFFSET 0x0024 /* I2C Master Clock Low Timeout Count */
|
||||||
|
# define TIVA_I2CM_BMON_OFFSET 0x002c /* I2C Master Configuration */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM_BLEN_OFFSET 0x0030 /* I2C Master Burst Length */
|
||||||
|
# define TIVA_I2CM_BCNT_OFFSET 0x0034 /* I2C Master Burst Count */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define TIVA_I2CM_CR2_OFFSET 0x0038 /* I2C Master Configuration 2 */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C Slave */
|
/* I2C Slave */
|
||||||
|
|
||||||
#define TIVA_I2CS_OAR_OFFSET 0x000 /* I2C Slave Own Address */
|
#define TIVA_I2CS_OAR_OFFSET 0x0000 /* I2C Slave Own Address */
|
||||||
#define TIVA_I2CS_CSR_OFFSET 0x004 /* I2C Slave Control/Status */
|
#define TIVA_I2CS_CSR_OFFSET 0x0004 /* I2C Slave Control/Status */
|
||||||
#define TIVA_I2CS_DR_OFFSET 0x008 /* I2C Slave Data */
|
#define TIVA_I2CS_DR_OFFSET 0x0008 /* I2C Slave Data */
|
||||||
#define TIVA_I2CS_IMR_OFFSET 0x00c /* I2C Slave Interrupt Mask */
|
#define TIVA_I2CS_IMR_OFFSET 0x000c /* I2C Slave Interrupt Mask */
|
||||||
#define TIVA_I2CS_RIS_OFFSET 0x010 /* I2C Slave Raw Interrupt Status */
|
#define TIVA_I2CS_RIS_OFFSET 0x0010 /* I2C Slave Raw Interrupt Status */
|
||||||
#define TIVA_I2CS_MIS_OFFSET 0x014 /* I2C Slave Masked Interrupt Status */
|
#define TIVA_I2CS_MIS_OFFSET 0x0014 /* I2C Slave Masked Interrupt Status */
|
||||||
#define TIVA_I2CS_ICR_OFFSET 0x018 /* I2C Slave Interrupt Clear */
|
#define TIVA_I2CS_ICR_OFFSET 0x0018 /* I2C Slave Interrupt Clear */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CS_SOAR2_OFFSET 0x001c /* I2C Slave Own Address 2 */
|
||||||
|
# define TIVA_I2CS_ACKCTL_OFFSET 0x0020 /* I2C Slave ACK Control */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Status and control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC_FIFODATA_OFFSET 0x0000 /* I2C FIFO Data */
|
||||||
|
# define TIVA_I2CSC_FIFOCTL_OFFSET 0x0004 /* I2C FIFO Control */
|
||||||
|
# define TIVA_I2CSC_FIFOSTATUS_OFFSET 0x0008 /* I2C FIFO Status */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC_PP_OFFSET 0x00c0 /* I2C Peripheral Properties */
|
||||||
|
# define TIVA_I2CSC_PC_OFFSET 0x00c4 /* I2C Peripheral Configuration */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C Register Addresses ***********************************************************/
|
/* I2C Register Addresses ***********************************************************/
|
||||||
|
|
||||||
#if TIVA_NI2C > 0
|
#if TIVA_NI2C > 0
|
||||||
|
|
||||||
/* I2C Master */
|
|
||||||
|
|
||||||
#define TIVA_I2CM_BASE(n) (TIVA_I2CM0_BASE + (n)*0x1000)
|
|
||||||
#define TIVA_I2CM_SA(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_SA_OFFSET)
|
|
||||||
#define TIVA_I2CM_CS(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_CS_OFFSET)
|
|
||||||
#define TIVA_I2CM_DR(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_DR_OFFSET)
|
|
||||||
#define TIVA_I2CM_TPR(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_TPR_OFFSET)
|
|
||||||
#define TIVA_I2CM_IMR(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_IMR_OFFSET)
|
|
||||||
#define TIVA_I2CM_RIS(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_RIS_OFFSET)
|
|
||||||
#define TIVA_I2CM_MIS(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_MIS_OFFSET)
|
|
||||||
#define TIVA_I2CM_ICR(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_ICR_OFFSET)
|
|
||||||
#define TIVA_I2CM_CR(n) (TIVA_I2CM_BASE(n) + TIVA_I2CM_CR_OFFSET)
|
|
||||||
|
|
||||||
/* I2C Slave */
|
|
||||||
|
|
||||||
#define TIVA_I2CS_BASE(n) (TIVA_I2CS0_BASE + (n)*0x1000)
|
|
||||||
#define TIVA_I2CS_OAR(n) (TIVA_I2CS_BASE(n) + TIVA_I2CS_OAR_OFFSET)
|
|
||||||
#define TIVA_I2CS_CSR(n) (TIVA_I2CS_BASE(n) + TIVA_I2CS_CSR_OFFSET)
|
|
||||||
#define TIVA_I2CS_DR(n) (TIVA_I2CS_BASE(n) + TIVA_I2CS_DR_OFFSET)
|
|
||||||
#define TIVA_I2CS_IMR(n) (TIVA_I2CS_BASE(n) + TIVA_I2CS_IMR_OFFSET)
|
|
||||||
#define TIVA_I2CS_RIS(n) (TIVA_I2CS_BASE(n) + TIVA_I2CS_RIS_OFFSET)
|
|
||||||
#define TIVA_I2CS_MIS(n) (TIVA_I2CS_BASE(n) + TIVA_I2CS_MIS_OFFSET)
|
|
||||||
#define TIVA_I2CS_ICR(n) (TIVA_I2CS_BASE(n) + TIVA_I2CS_ICR_OFFSET)
|
|
||||||
|
|
||||||
/* I2C0 Master */
|
/* I2C0 Master */
|
||||||
|
|
||||||
#define TIVA_I2CM0_SA (TIVA_I2CM0_BASE + TIVA_I2CM_SA_OFFSET)
|
#define TIVA_I2CM0_SA (TIVA_I2CM0_BASE + TIVA_I2CM_SA_OFFSET)
|
||||||
#define TIVA_I2CM0_CS (TIVA_I2CM0_BASE + TIVA_I2CM_CS_OFFSET)
|
#define TIVA_I2CM0_CS (TIVA_I2CM0_BASE + TIVA_I2CM_CS_OFFSET)
|
||||||
#define TIVA_I2CM0_DR (TIVA_I2CM0_BASE + TIVA_I2CM_DR_OFFSET)
|
#define TIVA_I2CM0_DR (TIVA_I2CM0_BASE + TIVA_I2CM_DR_OFFSET)
|
||||||
#define TIVA_I2CM0_TPR (TIVA_I2CM0_BASE + TIVA_I2CM_TPR_OFFSET)
|
#define TIVA_I2CM0_TPR (TIVA_I2CM0_BASE + TIVA_I2CM_TPR_OFFSET)
|
||||||
#define TIVA_I2CM0_IMR (TIVA_I2CM0_BASE + TIVA_I2CM_IMR_OFFSET)
|
#define TIVA_I2CM0_IMR (TIVA_I2CM0_BASE + TIVA_I2CM_IMR_OFFSET)
|
||||||
#define TIVA_I2CM0_RIS (TIVA_I2CM0_BASE + TIVA_I2CM_RIS_OFFSET)
|
#define TIVA_I2CM0_RIS (TIVA_I2CM0_BASE + TIVA_I2CM_RIS_OFFSET)
|
||||||
#define TIVA_I2CM0_MIS (TIVA_I2CM0_BASE + TIVA_I2CM_MIS_OFFSET)
|
#define TIVA_I2CM0_MIS (TIVA_I2CM0_BASE + TIVA_I2CM_MIS_OFFSET)
|
||||||
#define TIVA_I2CM0_ICR (TIVA_I2CM0_BASE + TIVA_I2CM_ICR_OFFSET)
|
#define TIVA_I2CM0_ICR (TIVA_I2CM0_BASE + TIVA_I2CM_ICR_OFFSET)
|
||||||
#define TIVA_I2CM0_CR (TIVA_I2CM0_BASE + TIVA_I2CM_CR_OFFSET)
|
#define TIVA_I2CM0_CR (TIVA_I2CM0_BASE + TIVA_I2CM_CR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM0_CLKOCNT (TIVA_I2CM0_BASE + TIVA_I2CM_CLKOCNT_OFFSET)
|
||||||
|
# define TIVA_I2CM0_BMON (TIVA_I2CM0_BASE + TIVA_I2CM_BMON_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM0_BLEN (TIVA_I2CM0_BASE + TIVA_I2CM_BLEN_OFFSET)
|
||||||
|
# define TIVA_I2CM0_BCNT (TIVA_I2CM0_BASE + TIVA_I2CM_BCNT_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define TIVA_I2CM0_CR2 (TIVA_I2CM0_BASE + TIVA_I2CM_CR2_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C0 Slave */
|
/* I2C0 Slave */
|
||||||
|
|
||||||
#define TIVA_I2CS0_OAR (TIVA_I2CS0_BASE + TIVA_I2CS_OAR_OFFSET)
|
#define TIVA_I2CS0_OAR (TIVA_I2CS0_BASE + TIVA_I2CS_OAR_OFFSET)
|
||||||
#define TIVA_I2CS0_CSR (TIVA_I2CS0_BASE + TIVA_I2CS_CSR_OFFSET)
|
#define TIVA_I2CS0_CSR (TIVA_I2CS0_BASE + TIVA_I2CS_CSR_OFFSET)
|
||||||
#define TIVA_I2CS0_DR (TIVA_I2CS0_BASE + TIVA_I2CS_DR_OFFSET)
|
#define TIVA_I2CS0_DR (TIVA_I2CS0_BASE + TIVA_I2CS_DR_OFFSET)
|
||||||
#define TIVA_I2CS0_IMR (TIVA_I2CS0_BASE + TIVA_I2CS_IMR_OFFSET)
|
#define TIVA_I2CS0_IMR (TIVA_I2CS0_BASE + TIVA_I2CS_IMR_OFFSET)
|
||||||
#define TIVA_I2CS0_RIS (TIVA_I2CS0_BASE + TIVA_I2CS_RIS_OFFSET)
|
#define TIVA_I2CS0_RIS (TIVA_I2CS0_BASE + TIVA_I2CS_RIS_OFFSET)
|
||||||
#define TIVA_I2CS0_MIS (TIVA_I2CS0_BASE + TIVA_I2CS_MIS_OFFSET)
|
#define TIVA_I2CS0_MIS (TIVA_I2CS0_BASE + TIVA_I2CS_MIS_OFFSET)
|
||||||
#define TIVA_I2CS0_ICR (TIVA_I2CS0_BASE + TIVA_I2CS_ICR_OFFSET)
|
#define TIVA_I2CS0_ICR (TIVA_I2CS0_BASE + TIVA_I2CS_ICR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CS0_SOAR2 (TIVA_I2CS0_BASE + TIVA_I2CS_SOAR2_OFFSET)
|
||||||
|
# define TIVA_I2CS0_ACKCTL (TIVA_I2CS0_BASE + TIVA_I2CS_ACKCTL_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C0 Status and control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC0_FIFODATA (TIVA_I2CSC0_BASE + TIVA_I2CSC_FIFODATA_OFFSET)
|
||||||
|
# define TIVA_I2CSC0_FIFOCTL (TIVA_I2CSC0_BASE + TIVA_I2CSC_FIFOCTL_OFFSET)
|
||||||
|
# define TIVA_I2CSC0_FIFOSTATUS (TIVA_I2CSC0_BASE + TIVA_I2CSC_FIFOSTATUS_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC0_PP (TIVA_I2CSC0_BASE + TIVA_I2CSC_PP_OFFSET)
|
||||||
|
# define TIVA_I2CSC0_PC (TIVA_I2CSC0_BASE + TIVA_I2CSC_PC_OFFSET)
|
||||||
|
#endif
|
||||||
|
#endif /* TIVA_NI2C > 0 */
|
||||||
|
|
||||||
#if TIVA_NI2C > 1
|
#if TIVA_NI2C > 1
|
||||||
|
|
||||||
/* I2C1 Master */
|
/* I2C1 Master */
|
||||||
|
|
||||||
#define TIVA_I2CM1_SA (TIVA_I2CM1_BASE + TIVA_I2CM_SA_OFFSET)
|
#define TIVA_I2CM1_SA (TIVA_I2CM1_BASE + TIVA_I2CM_SA_OFFSET)
|
||||||
#define TIVA_I2CM1_CS (TIVA_I2CM1_BASE + TIVA_I2CM_CS_OFFSET)
|
#define TIVA_I2CM1_CS (TIVA_I2CM1_BASE + TIVA_I2CM_CS_OFFSET)
|
||||||
#define TIVA_I2CM1_DR (TIVA_I2CM1_BASE + TIVA_I2CM_DR_OFFSET)
|
#define TIVA_I2CM1_DR (TIVA_I2CM1_BASE + TIVA_I2CM_DR_OFFSET)
|
||||||
#define TIVA_I2CM1_TPR (TIVA_I2CM1_BASE + TIVA_I2CM_TPR_OFFSET)
|
#define TIVA_I2CM1_TPR (TIVA_I2CM1_BASE + TIVA_I2CM_TPR_OFFSET)
|
||||||
#define TIVA_I2CM1_IMR (TIVA_I2CM1_BASE + TIVA_I2CM_IMR_OFFSET)
|
#define TIVA_I2CM1_IMR (TIVA_I2CM1_BASE + TIVA_I2CM_IMR_OFFSET)
|
||||||
#define TIVA_I2CM1_RIS (TIVA_I2CM1_BASE + TIVA_I2CM_RIS_OFFSET)
|
#define TIVA_I2CM1_RIS (TIVA_I2CM1_BASE + TIVA_I2CM_RIS_OFFSET)
|
||||||
#define TIVA_I2CM1_MIS (TIVA_I2CM1_BASE + TIVA_I2CM_MIS_OFFSET)
|
#define TIVA_I2CM1_MIS (TIVA_I2CM1_BASE + TIVA_I2CM_MIS_OFFSET)
|
||||||
#define TIVA_I2CM1_ICR (TIVA_I2CM1_BASE + TIVA_I2CM_ICR_OFFSET)
|
#define TIVA_I2CM1_ICR (TIVA_I2CM1_BASE + TIVA_I2CM_ICR_OFFSET)
|
||||||
#define TIVA_I2CM1_CR (TIVA_I2CM1_BASE + TIVA_I2CM_CR_OFFSET)
|
#define TIVA_I2CM1_CR (TIVA_I2CM1_BASE + TIVA_I2CM_CR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM1_CLKOCNT (TIVA_I2CM1_BASE + TIVA_I2CM_CLKOCNT_OFFSET)
|
||||||
|
# define TIVA_I2CM1_BMON (TIVA_I2CM1_BASE + TIVA_I2CM_BMON_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM1_BLEN (TIVA_I2CM1_BASE + TIVA_I2CM_BLEN_OFFSET)
|
||||||
|
# define TIVA_I2CM1_BCNT (TIVA_I2CM1_BASE + TIVA_I2CM_BCNT_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define TIVA_I2CM1_CR2 (TIVA_I2CM1_BASE + TIVA_I2CM_CR2_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C1 Slave */
|
/* I2C1 Slave */
|
||||||
|
|
||||||
#define TIVA_I2CS1_OAR (TIVA_I2CS1_BASE + TIVA_I2CS_OAR_OFFSET)
|
#define TIVA_I2CS1_OAR (TIVA_I2CS1_BASE + TIVA_I2CS_OAR_OFFSET)
|
||||||
#define TIVA_I2CS1_CSR (TIVA_I2CS1_BASE + TIVA_I2CS_CSR_OFFSET)
|
#define TIVA_I2CS1_CSR (TIVA_I2CS1_BASE + TIVA_I2CS_CSR_OFFSET)
|
||||||
#define TIVA_I2CS1_DR (TIVA_I2CS1_BASE + TIVA_I2CS_DR_OFFSET)
|
#define TIVA_I2CS1_DR (TIVA_I2CS1_BASE + TIVA_I2CS_DR_OFFSET)
|
||||||
#define TIVA_I2CS1_IMR (TIVA_I2CS1_BASE + TIVA_I2CS_IMR_OFFSET)
|
#define TIVA_I2CS1_IMR (TIVA_I2CS1_BASE + TIVA_I2CS_IMR_OFFSET)
|
||||||
#define TIVA_I2CS1_RIS (TIVA_I2CS1_BASE + TIVA_I2CS_RIS_OFFSET)
|
#define TIVA_I2CS1_RIS (TIVA_I2CS1_BASE + TIVA_I2CS_RIS_OFFSET)
|
||||||
#define TIVA_I2CS1_MIS (TIVA_I2CS1_BASE + TIVA_I2CS_MIS_OFFSET)
|
#define TIVA_I2CS1_MIS (TIVA_I2CS1_BASE + TIVA_I2CS_MIS_OFFSET)
|
||||||
#define TIVA_I2CS1_ICR (TIVA_I2CS1_BASE + TIVA_I2CS_ICR_OFFSET)
|
#define TIVA_I2CS1_ICR (TIVA_I2CS1_BASE + TIVA_I2CS_ICR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CS1_SOAR2 (TIVA_I2CS1_BASE + TIVA_I2CS_SOAR2_OFFSET)
|
||||||
|
# define TIVA_I2CS1_ACKCTL (TIVA_I2CS1_BASE + TIVA_I2CS_ACKCTL_OFFSET)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* I2C1 Status and control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC1_FIFODATA (TIVA_I2CSC1_BASE + TIVA_I2CSC_FIFODATA_OFFSET)
|
||||||
|
# define TIVA_I2CSC1_FIFOCTL (TIVA_I2CSC1_BASE + TIVA_I2CSC_FIFOCTL_OFFSET)
|
||||||
|
# define TIVA_I2CSC1_FIFOSTATUS (TIVA_I2CSC1_BASE + TIVA_I2CSC_FIFOSTATUS_OFFSET)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC1_PP (TIVA_I2CSC1_BASE + TIVA_I2CSC_PP_OFFSET)
|
||||||
|
# define TIVA_I2CSC1_PC (TIVA_I2CSC1_BASE + TIVA_I2CSC_PC_OFFSET)
|
||||||
|
#endif
|
||||||
|
#endif /* TIVA_NI2C > 1 */
|
||||||
|
|
||||||
|
#if TIVA_NI2C > 2
|
||||||
|
|
||||||
|
/* I2C2 Master */
|
||||||
|
|
||||||
|
#define TIVA_I2CM2_SA (TIVA_I2CM2_BASE + TIVA_I2CM_SA_OFFSET)
|
||||||
|
#define TIVA_I2CM2_CS (TIVA_I2CM2_BASE + TIVA_I2CM_CS_OFFSET)
|
||||||
|
#define TIVA_I2CM2_DR (TIVA_I2CM2_BASE + TIVA_I2CM_DR_OFFSET)
|
||||||
|
#define TIVA_I2CM2_TPR (TIVA_I2CM2_BASE + TIVA_I2CM_TPR_OFFSET)
|
||||||
|
#define TIVA_I2CM2_IMR (TIVA_I2CM2_BASE + TIVA_I2CM_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CM2_RIS (TIVA_I2CM2_BASE + TIVA_I2CM_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CM2_MIS (TIVA_I2CM2_BASE + TIVA_I2CM_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CM2_ICR (TIVA_I2CM2_BASE + TIVA_I2CM_ICR_OFFSET)
|
||||||
|
#define TIVA_I2CM2_CR (TIVA_I2CM2_BASE + TIVA_I2CM_CR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM2_CLKOCNT (TIVA_I2CM2_BASE + TIVA_I2CM_CLKOCNT_OFFSET)
|
||||||
|
# define TIVA_I2CM2_BMON (TIVA_I2CM2_BASE + TIVA_I2CM_BMON_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM2_BLEN (TIVA_I2CM2_BASE + TIVA_I2CM_BLEN_OFFSET)
|
||||||
|
# define TIVA_I2CM2_BCNT (TIVA_I2CM2_BASE + TIVA_I2CM_BCNT_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define TIVA_I2CM2_CR2 (TIVA_I2CM2_BASE + TIVA_I2CM_CR2_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C2 Slave */
|
||||||
|
|
||||||
|
#define TIVA_I2CS2_OAR (TIVA_I2CS2_BASE + TIVA_I2CS_OAR_OFFSET)
|
||||||
|
#define TIVA_I2CS2_CSR (TIVA_I2CS2_BASE + TIVA_I2CS_CSR_OFFSET)
|
||||||
|
#define TIVA_I2CS2_DR (TIVA_I2CS2_BASE + TIVA_I2CS_DR_OFFSET)
|
||||||
|
#define TIVA_I2CS2_IMR (TIVA_I2CS2_BASE + TIVA_I2CS_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CS2_RIS (TIVA_I2CS2_BASE + TIVA_I2CS_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CS2_MIS (TIVA_I2CS2_BASE + TIVA_I2CS_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CS2_ICR (TIVA_I2CS2_BASE + TIVA_I2CS_ICR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CS2_SOAR2 (TIVA_I2CS2_BASE + TIVA_I2CS_SOAR2_OFFSET)
|
||||||
|
# define TIVA_I2CS2_ACKCTL (TIVA_I2CS2_BASE + TIVA_I2CS_ACKCTL_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C2 Status and control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC2_FIFODATA (TIVA_I2CSC2_BASE + TIVA_I2CSC_FIFODATA_OFFSET)
|
||||||
|
# define TIVA_I2CSC2_FIFOCTL (TIVA_I2CSC2_BASE + TIVA_I2CSC_FIFOCTL_OFFSET)
|
||||||
|
# define TIVA_I2CSC2_FIFOSTATUS (TIVA_I2CSC2_BASE + TIVA_I2CSC_FIFOSTATUS_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC2_PP (TIVA_I2CSC2_BASE + TIVA_I2CSC_PP_OFFSET)
|
||||||
|
# define TIVA_I2CSC2_PC (TIVA_I2CSC2_BASE + TIVA_I2CSC_PC_OFFSET)
|
||||||
|
#endif
|
||||||
|
#endif /* TIVA_NI2C > 2 */
|
||||||
|
|
||||||
|
#if TIVA_NI2C > 3
|
||||||
|
|
||||||
|
/* I2C3 Master */
|
||||||
|
|
||||||
|
#define TIVA_I2CM3_SA (TIVA_I2CM3_BASE + TIVA_I2CM_SA_OFFSET)
|
||||||
|
#define TIVA_I2CM3_CS (TIVA_I2CM3_BASE + TIVA_I2CM_CS_OFFSET)
|
||||||
|
#define TIVA_I2CM3_DR (TIVA_I2CM3_BASE + TIVA_I2CM_DR_OFFSET)
|
||||||
|
#define TIVA_I2CM3_TPR (TIVA_I2CM3_BASE + TIVA_I2CM_TPR_OFFSET)
|
||||||
|
#define TIVA_I2CM3_IMR (TIVA_I2CM3_BASE + TIVA_I2CM_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CM3_RIS (TIVA_I2CM3_BASE + TIVA_I2CM_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CM3_MIS (TIVA_I2CM3_BASE + TIVA_I2CM_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CM3_ICR (TIVA_I2CM3_BASE + TIVA_I2CM_ICR_OFFSET)
|
||||||
|
#define TIVA_I2CM3_CR (TIVA_I2CM3_BASE + TIVA_I2CM_CR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM3_CLKOCNT (TIVA_I2CM3_BASE + TIVA_I2CM_CLKOCNT_OFFSET)
|
||||||
|
# define TIVA_I2CM3_BMON (TIVA_I2CM3_BASE + TIVA_I2CM_BMON_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM3_BLEN (TIVA_I2CM3_BASE + TIVA_I2CM_BLEN_OFFSET)
|
||||||
|
# define TIVA_I2CM3_BCNT (TIVA_I2CM3_BASE + TIVA_I2CM_BCNT_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define TIVA_I2CM3_CR2 (TIVA_I2CM3_BASE + TIVA_I2CM_CR2_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C3 Slave */
|
||||||
|
|
||||||
|
#define TIVA_I2CS3_OAR (TIVA_I2CS3_BASE + TIVA_I2CS_OAR_OFFSET)
|
||||||
|
#define TIVA_I2CS3_CSR (TIVA_I2CS3_BASE + TIVA_I2CS_CSR_OFFSET)
|
||||||
|
#define TIVA_I2CS3_DR (TIVA_I2CS3_BASE + TIVA_I2CS_DR_OFFSET)
|
||||||
|
#define TIVA_I2CS3_IMR (TIVA_I2CS3_BASE + TIVA_I2CS_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CS3_RIS (TIVA_I2CS3_BASE + TIVA_I2CS_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CS3_MIS (TIVA_I2CS3_BASE + TIVA_I2CS_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CS3_ICR (TIVA_I2CS3_BASE + TIVA_I2CS_ICR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CS3_SOAR2 (TIVA_I2CS3_BASE + TIVA_I2CS_SOAR2_OFFSET)
|
||||||
|
# define TIVA_I2CS3_ACKCTL (TIVA_I2CS3_BASE + TIVA_I2CS_ACKCTL_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C3 Status and control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC3_FIFODATA (TIVA_I2CSC3_BASE + TIVA_I2CSC_FIFODATA_OFFSET)
|
||||||
|
# define TIVA_I2CSC3_FIFOCTL (TIVA_I2CSC3_BASE + TIVA_I2CSC_FIFOCTL_OFFSET)
|
||||||
|
# define TIVA_I2CSC3_FIFOSTATUS (TIVA_I2CSC3_BASE + TIVA_I2CSC_FIFOSTATUS_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC3_PP (TIVA_I2CSC3_BASE + TIVA_I2CSC_PP_OFFSET)
|
||||||
|
# define TIVA_I2CSC3_PC (TIVA_I2CSC3_BASE + TIVA_I2CSC_PC_OFFSET)
|
||||||
|
#endif
|
||||||
|
#endif /* TIVA_NI2C > 3 */
|
||||||
|
|
||||||
|
#if TIVA_NI2C > 4
|
||||||
|
|
||||||
|
/* I2C4 Master */
|
||||||
|
|
||||||
|
#define TIVA_I2CM4_SA (TIVA_I2CM4_BASE + TIVA_I2CM_SA_OFFSET)
|
||||||
|
#define TIVA_I2CM4_CS (TIVA_I2CM4_BASE + TIVA_I2CM_CS_OFFSET)
|
||||||
|
#define TIVA_I2CM4_DR (TIVA_I2CM4_BASE + TIVA_I2CM_DR_OFFSET)
|
||||||
|
#define TIVA_I2CM4_TPR (TIVA_I2CM4_BASE + TIVA_I2CM_TPR_OFFSET)
|
||||||
|
#define TIVA_I2CM4_IMR (TIVA_I2CM4_BASE + TIVA_I2CM_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CM4_RIS (TIVA_I2CM4_BASE + TIVA_I2CM_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CM4_MIS (TIVA_I2CM4_BASE + TIVA_I2CM_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CM4_ICR (TIVA_I2CM4_BASE + TIVA_I2CM_ICR_OFFSET)
|
||||||
|
#define TIVA_I2CM4_CR (TIVA_I2CM4_BASE + TIVA_I2CM_CR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM4_CLKOCNT (TIVA_I2CM4_BASE + TIVA_I2CM_CLKOCNT_OFFSET)
|
||||||
|
# define TIVA_I2CM4_BMON (TIVA_I2CM4_BASE + TIVA_I2CM_BMON_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM4_BLEN (TIVA_I2CM4_BASE + TIVA_I2CM_BLEN_OFFSET)
|
||||||
|
# define TIVA_I2CM4_BCNT (TIVA_I2CM4_BASE + TIVA_I2CM_BCNT_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define TIVA_I2CM4_CR2 (TIVA_I2CM4_BASE + TIVA_I2CM_CR2_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C4 Slave */
|
||||||
|
|
||||||
|
#define TIVA_I2CS4_OAR (TIVA_I2CS4_BASE + TIVA_I2CS_OAR_OFFSET)
|
||||||
|
#define TIVA_I2CS4_CSR (TIVA_I2CS4_BASE + TIVA_I2CS_CSR_OFFSET)
|
||||||
|
#define TIVA_I2CS4_DR (TIVA_I2CS4_BASE + TIVA_I2CS_DR_OFFSET)
|
||||||
|
#define TIVA_I2CS4_IMR (TIVA_I2CS4_BASE + TIVA_I2CS_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CS4_RIS (TIVA_I2CS4_BASE + TIVA_I2CS_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CS4_MIS (TIVA_I2CS4_BASE + TIVA_I2CS_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CS4_ICR (TIVA_I2CS4_BASE + TIVA_I2CS_ICR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CS4_SOAR2 (TIVA_I2CS4_BASE + TIVA_I2CS_SOAR2_OFFSET)
|
||||||
|
# define TIVA_I2CS4_ACKCTL (TIVA_I2CS4_BASE + TIVA_I2CS_ACKCTL_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C4 Status and control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC4_FIFODATA (TIVA_I2CSC4_BASE + TIVA_I2CSC_FIFODATA_OFFSET)
|
||||||
|
# define TIVA_I2CSC4_FIFOCTL (TIVA_I2CSC4_BASE + TIVA_I2CSC_FIFOCTL_OFFSET)
|
||||||
|
# define TIVA_I2CSC4_FIFOSTATUS (TIVA_I2CSC4_BASE + TIVA_I2CSC_FIFOSTATUS_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC4_PP (TIVA_I2CSC4_BASE + TIVA_I2CSC_PP_OFFSET)
|
||||||
|
# define TIVA_I2CSC4_PC (TIVA_I2CSC4_BASE + TIVA_I2CSC_PC_OFFSET)
|
||||||
|
#endif
|
||||||
|
#endif /* TIVA_NI2C > 4 */
|
||||||
|
|
||||||
|
#if TIVA_NI2C > 5
|
||||||
|
|
||||||
|
/* I2C5 Master */
|
||||||
|
|
||||||
|
#define TIVA_I2CM5_SA (TIVA_I2CM5_BASE + TIVA_I2CM_SA_OFFSET)
|
||||||
|
#define TIVA_I2CM5_CS (TIVA_I2CM5_BASE + TIVA_I2CM_CS_OFFSET)
|
||||||
|
#define TIVA_I2CM5_DR (TIVA_I2CM5_BASE + TIVA_I2CM_DR_OFFSET)
|
||||||
|
#define TIVA_I2CM5_TPR (TIVA_I2CM5_BASE + TIVA_I2CM_TPR_OFFSET)
|
||||||
|
#define TIVA_I2CM5_IMR (TIVA_I2CM5_BASE + TIVA_I2CM_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CM5_RIS (TIVA_I2CM5_BASE + TIVA_I2CM_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CM5_MIS (TIVA_I2CM5_BASE + TIVA_I2CM_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CM5_ICR (TIVA_I2CM5_BASE + TIVA_I2CM_ICR_OFFSET)
|
||||||
|
#define TIVA_I2CM5_CR (TIVA_I2CM5_BASE + TIVA_I2CM_CR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM5_CLKOCNT (TIVA_I2CM5_BASE + TIVA_I2CM_CLKOCNT_OFFSET)
|
||||||
|
# define TIVA_I2CM5_BMON (TIVA_I2CM5_BASE + TIVA_I2CM_BMON_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CM5_BLEN (TIVA_I2CM5_BASE + TIVA_I2CM_BLEN_OFFSET)
|
||||||
|
# define TIVA_I2CM5_BCNT (TIVA_I2CM5_BASE + TIVA_I2CM_BCNT_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define TIVA_I2CM5_CR2 (TIVA_I2CM5_BASE + TIVA_I2CM_CR2_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C5 Slave */
|
||||||
|
|
||||||
|
#define TIVA_I2CS5_OAR (TIVA_I2CS5_BASE + TIVA_I2CS_OAR_OFFSET)
|
||||||
|
#define TIVA_I2CS5_CSR (TIVA_I2CS5_BASE + TIVA_I2CS_CSR_OFFSET)
|
||||||
|
#define TIVA_I2CS5_DR (TIVA_I2CS5_BASE + TIVA_I2CS_DR_OFFSET)
|
||||||
|
#define TIVA_I2CS5_IMR (TIVA_I2CS5_BASE + TIVA_I2CS_IMR_OFFSET)
|
||||||
|
#define TIVA_I2CS5_RIS (TIVA_I2CS5_BASE + TIVA_I2CS_RIS_OFFSET)
|
||||||
|
#define TIVA_I2CS5_MIS (TIVA_I2CS5_BASE + TIVA_I2CS_MIS_OFFSET)
|
||||||
|
#define TIVA_I2CS5_ICR (TIVA_I2CS5_BASE + TIVA_I2CS_ICR_OFFSET)
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CS5_SOAR2 (TIVA_I2CS5_BASE + TIVA_I2CS_SOAR2_OFFSET)
|
||||||
|
# define TIVA_I2CS5_ACKCTL (TIVA_I2CS5_BASE + TIVA_I2CS_ACKCTL_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Status and control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC5_FIFODATA (TIVA_I2CSC5_BASE + TIVA_I2CSC_FIFODATA_OFFSET)
|
||||||
|
# define TIVA_I2CSC5_FIFOCTL (TIVA_I2CSC5_BASE + TIVA_I2CSC_FIFOCTL_OFFSET)
|
||||||
|
# define TIVA_I2CSC5_FIFOSTATUS (TIVA_I2CSC5_BASE + TIVA_I2CSC_FIFOSTATUS_OFFSET)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define TIVA_I2CSC5_PP (TIVA_I2CSC5_BASE + TIVA_I2CSC_PP_OFFSET)
|
||||||
|
# define TIVA_I2CSC5_PC (TIVA_I2CSC5_BASE + TIVA_I2CSC_PC_OFFSET)
|
||||||
|
#endif
|
||||||
|
#endif /* TIVA_NI2C > 5 */
|
||||||
|
|
||||||
/* I2C_Register Bit Definitions *****************************************************/
|
/* I2C_Register Bit Definitions *****************************************************/
|
||||||
|
|
||||||
/* I2C Master Slave Address (I2CM_SA), offset 0x000 */
|
/* I2C Master Slave Address (I2CM_SA) */
|
||||||
|
|
||||||
#define I2CM_SA_RS (1 << 0) /* Bit 0: Receive/Send */
|
#define I2CM_SA_RS (1 << 0) /* Bit 0: Receive/Send */
|
||||||
#define I2CM_SA_SA_SHIFT 1 /* Bits 7-1: I2C Slave Address */
|
#define I2CM_SA_SA_SHIFT 1 /* Bits 7-1: I2C Slave Address */
|
||||||
#define I2CM_SA_SA_MASK (0x7f << I2CM_SA_SA_SHIFT)
|
#define I2CM_SA_SA_MASK (0x7f << I2CM_SA_SA_SHIFT)
|
||||||
|
|
||||||
/* I2C Master Control/Status (I2CM_CS), offset 0x004 */
|
/* I2C Master Control/Status (I2CM_CS) */
|
||||||
|
|
||||||
#define I2CM_CS_BUSY (1 << 0) /* Bit 0: I2C Busy (read) */
|
#define I2CM_CS_BUSY (1 << 0) /* Bit 0: I2C Busy (read) */
|
||||||
#define I2CM_CS_ERROR (1 << 1) /* Bit 1: Error in last bus operation (read) */
|
#define I2CM_CS_ERROR (1 << 1) /* Bit 1: Error in last bus operation (read) */
|
||||||
#define I2CM_CS_ADRACK (1 << 2) /* Bit 2: Acknowledge Address (read) */
|
#define I2CM_CS_ADRACK (1 << 2) /* Bit 2: Acknowledge Address (read) */
|
||||||
#define I2CM_CS_DATACK (1 << 3) /* Bit 3: Acknowledge Data (read) */
|
#define I2CM_CS_DATACK (1 << 3) /* Bit 3: Acknowledge Data (read) */
|
||||||
#define I2CM_CS_ARBLST (1 << 4) /* Bit 4: Arbitration Lost (read) */
|
#define I2CM_CS_ARBLST (1 << 4) /* Bit 4: Arbitration Lost (read) */
|
||||||
#define I2CM_CS_IDLE (1 << 5) /* Bit 5: I2C Idle (read) */
|
#define I2CM_CS_IDLE (1 << 5) /* Bit 5: I2C Idle (read) */
|
||||||
#define I2CM_CS_BUSBSY (1 << 6) /* Bit 6: Bus Busy (read) */
|
#define I2CM_CS_BUSBSY (1 << 6) /* Bit 6: Bus Busy (read) */
|
||||||
|
|
||||||
#define I2CM_CS_RUN (1 << 0) /* Bit 0: I2C Master Enable (write) */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
#define I2CM_CS_START (1 << 1) /* Bit 1: Generate START (write) */
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
#define I2CM_CS_STOP (1 << 2) /* Bit 2: Generate STOP (write) */
|
# define I2CM_CS_CLKTO (1 << 7) /* Bit 7: Clock Timeout Error (read) */
|
||||||
#define I2CM_CS_ACK (1 << 3) /* Bit 3: Data Acknowledge Enable (write) */
|
#endif
|
||||||
|
|
||||||
/* I2C Master Data (I2CM_DR), offset 0x008 */
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_CS_ACTDMATX (1 << 30) /* Bit 30: DMA TX Active Status (read) */
|
||||||
|
# define I2CM_CS_ACTDMARX (1 << 31) /* Bit 31: DMA RX Active Status (read) */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define I2CM_DR_MASK 0xff /* Bits 7-0: Data transferred */
|
#define I2CM_CS_RUN (1 << 0) /* Bit 0: I2C Master Enable (write) */
|
||||||
|
#define I2CM_CS_START (1 << 1) /* Bit 1: Generate START (write) */
|
||||||
|
#define I2CM_CS_STOP (1 << 2) /* Bit 2: Generate STOP (write) */
|
||||||
|
#define I2CM_CS_ACK (1 << 3) /* Bit 3: Data Acknowledge Enable (write) */
|
||||||
|
|
||||||
/* I2C Master Timer Period (I2CM_TPR), offset 0x00c */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_CS_HS (1 << 4) /* Bit 4: High-Speed Enable (write) */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define I2CM_TPR_MASK 0xff /* Bits 7-0: SCL Clock Period */
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_CS_QCMD (1 << 5) /* Bit 5: Quick Command (write) */
|
||||||
|
# define I2CM_CS_BURST (1 << 6) /* Bit 6: Burst Enable (write) */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C Master Interrupt Mask (I2CM_IMR), offset 0x010 */
|
/* I2C Master Data (I2CM_DR) */
|
||||||
|
|
||||||
#define I2CM_IMR_IM (1 << 0) /* Bit 0: Interrupt Mask */
|
#define I2CM_DR_SHIFT (0) /* Bits 7-0: Data transferred */
|
||||||
|
#define I2CM_DR_MASK (0xff << I2CM_DR_SHIFT)
|
||||||
|
|
||||||
/* I2C Master Raw Interrupt Status (I2CM_RIS), offset 0x014 */
|
/* I2C Master Timer Period (I2CM_TPR) */
|
||||||
|
|
||||||
#define I2CM_RIS_RIS (1 << 0) /* Bit 0: Raw Interrupt Status */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_TPR_SHIFT (0) /* Bits 6-0: SCL Clock Period */
|
||||||
|
# define I2CM_TPR_MASK (0x7f << I2CM_TPR_SHIFT)
|
||||||
|
# define I2CM_TPR_HS (1 << 7) /* Bit 7: High-Speed Enable (write) */
|
||||||
|
|
||||||
/* I2C Master Masked Interrupt Status (I2CM_MIS), offset 0x018 */
|
# if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_TPR_PULSEL_SHIFT (16) /* Bits 18-16: Glitch Suppression Pulse Width (write) */
|
||||||
|
# define I2CM_TPR_PULSEL_MASK (7 << I2CM_TPR_PULSEL_SHIFT)
|
||||||
|
# define I2CM_TPR_PULSEL_BYPASS (0 << I2CM_TPR_PULSEL_SHIFT) /* Bypass */
|
||||||
|
# define I2CM_TPR_PULSEL_1CLK (1 << I2CM_TPR_PULSEL_SHIFT) /* 1 clock */
|
||||||
|
# define I2CM_TPR_PULSEL_2CLKS (2 << I2CM_TPR_PULSEL_SHIFT) /* 2 clocks */
|
||||||
|
# define I2CM_TPR_PULSEL_3CLKS (3 << I2CM_TPR_PULSEL_SHIFT) /* 3 clocks */
|
||||||
|
# define I2CM_TPR_PULSEL_4CLKS (4 << I2CM_TPR_PULSEL_SHIFT) /* 4 clocks */
|
||||||
|
# define I2CM_TPR_PULSEL_8CLKS (5 << I2CM_TPR_PULSEL_SHIFT) /* 8 clocks */
|
||||||
|
# define I2CM_TPR_PULSEL_16CLKS (6 << I2CM_TPR_PULSEL_SHIFT) /* 16 clocks */
|
||||||
|
# define I2CM_TPR_PULSEL_31CLKS (7 << I2CM_TPR_PULSEL_SHIFT) /* 31 clocks */
|
||||||
|
# endif
|
||||||
|
|
||||||
#define I2CM_MIS_MIS (1 << 0) /* Bit 0: Masked Interrupt Status */
|
#else
|
||||||
|
# define I2CM_TPR_SHIFT (0) /* Bits 7-0: SCL Clock Period */
|
||||||
|
# define I2CM_TPR_MASK (0xff << I2CM_TPR_SHIFT)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C Master Masked Interrupt Status (I2CM_ICR), offset 0x01c */
|
/* I2C Master Interrupt Mask (I2CM_IMR) */
|
||||||
|
|
||||||
#define I2CM_ICR_IC (1 << 0) /* Bit 0: Masked Interrupt Status */
|
#define I2CM_IMR_IM (1 << 0) /* Bit 0: Interrupt Mask */
|
||||||
|
|
||||||
/* I2C Master Configuration (I2CM_CR), offset 0x020 */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_IMR_CLKIM (1 << 1) /* Bit 1: Clock Timeout Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define I2CM_CR_LPBK (1 << 0) /* Bit 0:: I2C Loopback */
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
#define I2CM_CR_MFE (1 << 4 ) /* Bit 4: I2C Master Function Enable */
|
# define I2CM_IMR_DMARXIM (1 << 2) /* Bit 2: Receive DMA Interrupt Mask */
|
||||||
#define I2CM_CR_SFE (1 << 5) /* Bit 5: I2C Slave Function Enable */
|
# define I2CM_IMR_DMATXIM (1 << 3) /* Bit 3: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_IMR_NACKIM (1 << 4) /* Bit 4: Address/Data NACK Interrupt Mask */
|
||||||
|
# define I2CM_IMR_STARTIM (1 << 5) /* Bit 5: START Detection Interrupt Mask */
|
||||||
|
# define I2CM_IMR_STOPIM (1 << 6) /* Bit 6: STOP Detection Interrupt Mask */
|
||||||
|
# define I2CM_IMR_ARBLOSTIM (1 << 7) /* Bit 7: Arbitration Lost Interrupt Mask */
|
||||||
|
# define I2CM_IMR_TXIM (1 << 8) /* Bit 8: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_IMR_RXIM (1 << 9) /* Bit 9: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_IMR_TXFEIM (1 << 10) /* Bit 10: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_IMR_RXFFIM (1 << 11) /* Bit 11: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C Slave Own Address (I2CS_OAR), offset 0x000 */
|
/* I2C Master Raw Interrupt Status (I2CM_RIS) */
|
||||||
|
|
||||||
#define I2CS_OAR_MASK 0xff /* Bits 7-0: I2C Slave Own Address */
|
#define I2CM_RIS_RIS (1 << 0) /* Bit 0: Raw Interrupt Status */
|
||||||
|
|
||||||
/* I2C Slave Control/Status (I2CS_CSR), offset 0x004 */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_RIS_CLKRIS (1 << 1) /* Bit 1: Clock Timeout Raw Interrupt Status */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define I2CS_CSR_RREQ (1 << 0) /* Bit 0: Receive Request (read) */
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
#define I2CS_CSR_TREQ (1 << 1) /* Bit 1: Transmit Request (read) */
|
# define I2CM_RIS_DMARXRIS (1 << 2) /* Bit 2: Receive DMA Interrupt Mask */
|
||||||
#define I2CS_CSR_FBR (1 << 2) /* Bit 2: First Byte Received (read) */
|
# define I2CM_RIS_DMATXRIS (1 << 3) /* Bit 3: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_RIS_NACKRIS (1 << 4) /* Bit 4: Address/Data NACK Interrupt Mask */
|
||||||
|
# define I2CM_RIS_STARTRIS (1 << 5) /* Bit 5: START Detection Interrupt Mask */
|
||||||
|
# define I2CM_RIS_STOPRIS (1 << 6) /* Bit 6: STOP Detection Interrupt Mask */
|
||||||
|
# define I2CM_RIS_ARBLOSTRIS (1 << 7) /* Bit 7: Arbitration Lost Interrupt Mask */
|
||||||
|
# define I2CM_RIS_TXRIS (1 << 8) /* Bit 8: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_RIS_RXRIS (1 << 9) /* Bit 9: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_RIS_TXFERIS (1 << 10) /* Bit 10: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_RIS_RXFFRIS (1 << 11) /* Bit 11: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define I2CS_CSR_DA (1 << 0) /* Bit 0: Device Active (write) */
|
/* I2C Master Masked Interrupt Status (I2CM_MIS) */
|
||||||
|
|
||||||
/* I2C Slave Data (I2CS_DR), offset 0x008 */
|
#define I2CM_MIS_MIS (1 << 0) /* Bit 0: Masked Interrupt Status */
|
||||||
|
|
||||||
#define I2CS_DR_MASK 0xff /* Bits 7-0: Data for Transfer */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_MIS_CLKMIS (1 << 1) /* Bit 1: Clock Timeout Masked Interrupt Status */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C Slave Interrupt Mask (I2CS_IMR), offset 0x00c */
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_MIS_DMARXMIS (1 << 2) /* Bit 2: Receive DMA Interrupt Mask */
|
||||||
|
# define I2CM_MIS_DMATXMIS (1 << 3) /* Bit 3: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_MIS_NACKMIS (1 << 4) /* Bit 4: Address/Data NACK Interrupt Mask */
|
||||||
|
# define I2CM_MIS_STARTMIS (1 << 5) /* Bit 5: START Detection Interrupt Mask */
|
||||||
|
# define I2CM_MIS_STOPMIS (1 << 6) /* Bit 6: STOP Detection Interrupt Mask */
|
||||||
|
# define I2CM_MIS_ARBLOSTMIS (1 << 7) /* Bit 7: Arbitration Lost Interrupt Mask */
|
||||||
|
# define I2CM_MIS_TXMIS (1 << 8) /* Bit 8: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_MIS_RXMIS (1 << 9) /* Bit 9: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_MIS_TXFEMIS (1 << 10) /* Bit 10: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_MIS_RXFFMIS (1 << 11) /* Bit 11: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define I2CM_IMR_DATAIM (1 << 0) /* Bit 0: Data Interrupt Mask */
|
/* I2C Master Masked Interrupt Status (I2CM_ICR) */
|
||||||
|
|
||||||
/* I2C Slave Raw Interrupt Status (I2CS_RIS), offset 0x010 */
|
#define I2CM_ICR_IC (1 << 0) /* Bit 0: Masked Interrupt Status */
|
||||||
|
|
||||||
#define I2CM_RIS_DATARIS (1 << 0) /* Bit 0: Data Raw Interrupt Status */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_ICR_CLKIC (1 << 1) /* Bit 1: Clock Timeout Interrupt Clear */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* I2C Slave Masked Interrupt Status (I2CS_MIS), offset 0x014 */
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_ICR_DMARXIC (1 << 2) /* Bit 2: Receive DMA Interrupt Mask */
|
||||||
|
# define I2CM_ICR_DMATXIC (1 << 3) /* Bit 3: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_ICR_NACKIC (1 << 4) /* Bit 4: Address/Data NACK Interrupt Mask */
|
||||||
|
# define I2CM_ICR_STARTIC (1 << 5) /* Bit 5: START Detection Interrupt Mask */
|
||||||
|
# define I2CM_ICR_STOPIC (1 << 6) /* Bit 6: STOP Detection Interrupt Mask */
|
||||||
|
# define I2CM_ICR_ARBLOSTIC (1 << 7) /* Bit 7: Arbitration Lost Interrupt Mask */
|
||||||
|
# define I2CM_ICR_TXIC (1 << 8) /* Bit 8: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_ICR_RXIC (1 << 9) /* Bit 9: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_ICR_TXFEIC (1 << 10) /* Bit 10: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_ICR_RXFFIC (1 << 11) /* Bit 11: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define I2CM_MIS_DATAMIS (1 << 0) /* Bit 0: Data Masked Interrupt Status */
|
/* I2C Master Configuration (I2CM_CR) */
|
||||||
|
|
||||||
/* I2C Slave Interrupt Clear (I2CS_ICR), offset 0x018 */
|
#define I2CM_CR_LPBK (1 << 0) /* Bit 0:: I2C Loopback */
|
||||||
|
#define I2CM_CR_MFE (1 << 4) /* Bit 4: I2C Master Function Enable */
|
||||||
|
#define I2CM_CR_SFE (1 << 5) /* Bit 5: I2C Slave Function Enable */
|
||||||
|
|
||||||
#define I2CM_ICR_DATAIC (1 << 0) /* Bit 0: Data Interrupt Clear */
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define I2CM_CR_GFE (1 << 6) /* Bit 6: I2C Glitch Filter Enable */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Master Clock Low Timeout Count */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_CLKOCNT_CNTL_SHIFT (0) /* Bits 7-0: I2C Master Count */
|
||||||
|
# define I2CM_CLKOCNT_CNTL_MASK (0xff << I2CM_CLKOCNT_CNTL_SHIFT)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Master Configuration */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_BMON_SCL (1 << 0) /* Bit 0: II2C SCL Status */
|
||||||
|
# define I2CM_BMON_SCA (1 << 1) /* Bit 1: II2C SDA Status */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Master Burst Length */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_BLEN_SHIFT (0) /* Bits 7-0: I2C Burst Length */
|
||||||
|
# define I2CM_BLEN_MASK (0xff << I2CM_BLEN_SHIFT)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Master Burst Count */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_BCNT_SHIFT (0) /* Bits 7-0: I2C Burst Count */
|
||||||
|
# define I2CM_BCNT_MASK (0xff << I2CM_BCNT_SHIFT)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Master Configuration 2 */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB)
|
||||||
|
# define I2CM_CR2_GFPW_SHIFT (4) /* I2C Glitch Filter Pulse Width */
|
||||||
|
# define I2CM_CR2_GFPW_MASK (7 << I2CM_CR2_GFPW_SHIFT)
|
||||||
|
# define I2CM_CR2_GFPW_BYPASS (0 << I2CM_CR2_GFPW_SHIFT) /* Bypass */
|
||||||
|
# define I2CM_CR2_GFPW_1CLK (1 << I2CM_CR2_GFPW_SHIFT) /* 1 clock */
|
||||||
|
# define I2CM_CR2_GFPW_2CLKS (2 << I2CM_CR2_GFPW_SHIFT) /* 2 clocks */
|
||||||
|
# define I2CM_CR2_GFPW_3CLKS (3 << I2CM_CR2_GFPW_SHIFT) /* 3 clocks */
|
||||||
|
# define I2CM_CR2_GFPW_4CLKS (4 << I2CM_CR2_GFPW_SHIFT) /* 4 clocks */
|
||||||
|
# define I2CM_CR2_GFPW_8CLKS (5 << I2CM_CR2_GFPW_SHIFT) /* 8 clocks */
|
||||||
|
# define I2CM_CR2_GFPW_16CLKS (6 << I2CM_CR2_GFPW_SHIFT) /* 16 clocks */
|
||||||
|
# define I2CM_CR2_GFPW_31CLKS (7 << I2CM_CR2_GFPW_SHIFT) /* 31 clocks */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Slave Own Address (I2CS_OAR) */
|
||||||
|
|
||||||
|
#define I2CS_OAR_MASK 0xff /* Bits 7-0: I2C Slave Own Address */
|
||||||
|
|
||||||
|
/* I2C Slave Control/Status (I2CS_CSR) */
|
||||||
|
|
||||||
|
#define I2CS_CSR_RREQ (1 << 0) /* Bit 0: Receive Request (read) */
|
||||||
|
#define I2CS_CSR_TREQ (1 << 1) /* Bit 1: Transmit Request (read) */
|
||||||
|
#define I2CS_CSR_FBR (1 << 2) /* Bit 2: First Byte Received (read) */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CS_CSR_OAR2SEL (1 << 3) /* Bit 3: OAR2 Address Matched (read) */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CS_CSR_QCMDST (1 << 4) /* Bit 4: Quick Command Status (read) */
|
||||||
|
# define I2CS_CSR_QCMDRW (1 << 5) /* Bit 5: Quick Command Read / Write (read) */
|
||||||
|
# define I2CS_CSR_ACTDMATX (1 << 30) /* Bit 30: DMA TX Active Status (read) */
|
||||||
|
# define I2CS_CSR_ACTDMARX (1 << 31) /* Bit 31: DMA RX Active Status (read) */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define I2CS_CSR_DA (1 << 0) /* Bit 0: Device Active (write) */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CS_CSR_TXFIFO (1 << 1) /* Bit 1: TX FIFO Enable (write) */
|
||||||
|
# define I2CS_CSR_RXFIFO (1 << 2) /* Bit 2: RX FIFO Enable (write) */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Slave Data (I2CS_DR) */
|
||||||
|
|
||||||
|
#define I2CS_DR_SHIFT (0) /* Bits 7-0: Data for Transfer */
|
||||||
|
#define I2CS_DR_MASK (0xff << I2CS_DR_SHIFT)
|
||||||
|
|
||||||
|
/* I2C Slave Interrupt Mask (I2CS_IMR) */
|
||||||
|
|
||||||
|
#define I2CM_IMR_DATAIM (1 << 0) /* Bit 0: Data Interrupt Mask */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_IMR_STARTIM (1 << 1) /* Bit 1: Start Condition Interrupt Mask */
|
||||||
|
# define I2CM_IMR_STOPIM (1 << 2) /* Bit 2: Stop Condition Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_IMR_DMARXIM (1 << 3) /* Bit 3: Receive DMA Interrupt Mask */
|
||||||
|
# define I2CM_IMR_DMATXIM (1 << 4) /* Bit 4: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_IMR_TXIM (1 << 5) /* Bit 5: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_IMR_RXIM (1 << 6) /* Bit 6: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_IMR_TXFEIM (1 << 7) /* Bit 7: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_IMR_RXFFIM (1 << 8) /* Bit 8: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Slave Raw Interrupt Status (I2CS_RIS) */
|
||||||
|
|
||||||
|
#define I2CM_RIS_DATARIS (1 << 0) /* Bit 0: Data Raw Interrupt Status */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_RIS_STARTRIS (1 << 1) /* Bit 1: Start Condition Raw Interrupt Status */
|
||||||
|
# define I2CM_RIS_STOPRIS (1 << 2) /* Bit 2: Stop Condition Raw Interrupt Status */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_RIS_DMARXRIS (1 << 3) /* Bit 3: Receive DMA Interrupt Mask */
|
||||||
|
# define I2CM_RIS_DMATXRIS (1 << 4) /* Bit 4: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_RIS_TXRIS (1 << 5) /* Bit 5: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_RIS_RXRIS (1 << 6) /* Bit 6: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_RIS_TXFERIS (1 << 7) /* Bit 7: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_RIS_RXFFRIS (1 << 8) /* Bit 8: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Slave Masked Interrupt Status (I2CS_MIS) */
|
||||||
|
|
||||||
|
#define I2CM_MIS_DATAMIS (1 << 0) /* Bit 0: Data Masked Interrupt Status */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_MIS_STARTMIS (1 << 1) /* Bit 1: Start Condition Masked Interrupt Status */
|
||||||
|
# define I2CM_MIS_STOPMIS (1 << 2) /* Bit 2: Stop Condition Masked Interrupt Status */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_MIS_DMARXMIS (1 << 3) /* Bit 3: Receive DMA Interrupt Mask */
|
||||||
|
# define I2CM_MIS_DMATXMIS (1 << 4) /* Bit 4: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_MIS_TXMIS (1 << 5) /* Bit 5: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_MIS_RXMIS (1 << 6) /* Bit 6: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_MIS_TXFEMIS (1 << 7) /* Bit 7: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_MIS_RXFFMIS (1 << 8) /* Bit 8: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Slave Interrupt Clear (I2CS_ICR) */
|
||||||
|
|
||||||
|
#define I2CM_ICR_DATAIC (1 << 0) /* Bit 0: Data Interrupt Clear */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_ICR_STARTIC (1 << 1) /* Bit 1: Start Condition Interrupt Clear */
|
||||||
|
# define I2CM_ICR_STOPIC (1 << 2) /* Bit 2: Stop Condition Interrupt Clear */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CM_ICR_DMARXIC (1 << 3) /* Bit 3: Receive DMA Interrupt Mask */
|
||||||
|
# define I2CM_ICR_DMATXIC (1 << 4) /* Bit 4: Transmit DMA Interrupt Mask */
|
||||||
|
# define I2CM_ICR_TXIC (1 << 5) /* Bit 5: Transmit FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_ICR_RXIC (1 << 6) /* Bit 6: Receive FIFO Request Interrupt Mask */
|
||||||
|
# define I2CM_ICR_TXFEIC (1 << 7) /* Bit 7: Transmit FIFO Empty Interrupt Mask */
|
||||||
|
# define I2CM_ICR_RXFFIC (1 << 8) /* Bit 8: Receive FIFO Full Interrupt Mask */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Slave Own Address 2 */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CS_SOAR2_SHIFT (0) /* Bits 0-6: I2C Slave Own Address 2 */
|
||||||
|
# define I2CS_SOAR2_MASK (0x7f << I2CS_SOAR2_SHIFT)
|
||||||
|
# define I2CS_SOAR2_OAR2EN (1 << 7) /* Bit 7: I2C Slave Own Address 2 Enable */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Slave ACK Control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CS_ACKCTL_ACKOEN (1 << 0) /* Bit 0: I2C Slave ACK Override Enable */
|
||||||
|
# define I2CS_ACKCTL_ACKOVAL (1 << 1) /* Bit 1: I2C Slave ACK Override Value */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C FIFO Data */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CSC_FIFODATA_SHIFT (0) /* Bits 7-0: I2C RX FIFO Read / Write Data Byte */
|
||||||
|
# define I2CSC_FIFODATA_MASK (0xff << I2CSC_FIFODATA_SHIFT)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C FIFO Control */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CSC_FIFOCTRL_TXTRIG_SHIFT (0) /* Bits 2-0: TX FIFO Trigger */
|
||||||
|
# define I2CSC_FIFOCTRL_TXTRIG_MASK (7 << I2CSC_FIFOCTRL_TXTRIG_SHIFT)
|
||||||
|
# define I2CSC_FIFOCTRL_TXTRIG(n) ((uint32_)(n) << I2CSC_FIFOCTRL_TXTRIG_SHIFT)
|
||||||
|
# define I2CSC_FIFOCTRL_DMATXENA (1 << 13) /* Bit 13: DMA TX Channel Enable */
|
||||||
|
# define I2CSC_FIFOCTRL_TXFLUSH (1 << 14) /* Bit 14: TX FIFO Flush */
|
||||||
|
# define I2CSC_FIFOCTRL_TXASGNMT (1 << 15) /* Bit 15: TX Control Assignment */
|
||||||
|
# define I2CSC_FIFOCTRL_RXTRIG_SHIFT (16) /* Bits 18-16: RX FIFO Trigger */
|
||||||
|
# define I2CSC_FIFOCTRL_RXTRIG_MASK (7 << I2CSC_FIFOCTRL_RXTRIG_SHIFT)
|
||||||
|
# define I2CSC_FIFOCTRL_RXTRIG(n) ((uint32_t)(n) << I2CSC_FIFOCTRL_RXTRIG_SHIFT)
|
||||||
|
# define I2CSC_FIFOCTRL_DMARXENA (1 << 20) /* Bit 29: DMA RX Channel Enable */
|
||||||
|
# define I2CSC_FIFOCTRL_RXFLUSH (1 << 30) /* Bit 30: RX FIFO Flush */
|
||||||
|
# define I2CSC_FIFOCTRL_RXASGNMT (1 << 31) /* Bit 31: RX Control Assignment */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C FIFO Status */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CSC_FIFOSTATUS_TXFE (1 << 0) /* Bit 0: TX FIFO Empty */
|
||||||
|
# define I2CSC_FIFOSTATUS_TXFF (1 << 1) /* Bit 1: TX FIFO Full */
|
||||||
|
# define I2CSC_FIFOSTATUS_TXBLWTRIG (1 << 2) /* Bit 2: TX FIFO Below Trigger Level */
|
||||||
|
# define I2CSC_FIFOSTATUS_RXFE (1 << 16) /* Bit 16: RX FIFO Empty */
|
||||||
|
# define I2CSC_FIFOSTATUS_RXFF (1 << 17) /* Bit 17: RX FIFO Full */
|
||||||
|
# define I2CSC_FIFOSTATUS_RXABVTRIG (1 << 18) /* Bit 18: RX FIFO Above Trigger Level */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Peripheral Properties */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CSC_PP_HS (1 << 0) /* Bit 0: High-Speed Capable */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* I2C Peripheral Configuration */
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_CHIP_TM4C123GH6ZRB) || \
|
||||||
|
defined(CONFIG_ARCH_CHIP_TM4C1294NCPDT)
|
||||||
|
# define I2CSC_PC_HS (1 << 0) /* Bit 0: High-Speed Capable */
|
||||||
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
|
@ -123,16 +123,16 @@
|
|||||||
|
|
||||||
# define TIVA_I2CM0_BASE (TIVA_PERIPH_BASE + 0x20000) /* -0x207ff: I2C Master 0 */
|
# define TIVA_I2CM0_BASE (TIVA_PERIPH_BASE + 0x20000) /* -0x207ff: I2C Master 0 */
|
||||||
# define TIVA_I2CS0_BASE (TIVA_PERIPH_BASE + 0x20800) /* -0x20fbf: I2C Slave 0 */
|
# define TIVA_I2CS0_BASE (TIVA_PERIPH_BASE + 0x20800) /* -0x20fbf: I2C Slave 0 */
|
||||||
# define TIVA_I2CSC0_BASE (TIVA_PERIPH_BASE + 0x20fc0) /* -0x20fff: I2C Status and Control 0 */
|
# define TIVA_I2CSC0_BASE (TIVA_PERIPH_BASE + 0x20f00) /* -0x20fff: I2C Status and Control 0 */
|
||||||
# define TIVA_I2CM1_BASE (TIVA_PERIPH_BASE + 0x21000) /* -0x217ff: I2C Master 1 */
|
# define TIVA_I2CM1_BASE (TIVA_PERIPH_BASE + 0x21000) /* -0x217ff: I2C Master 1 */
|
||||||
# define TIVA_I2CS1_BASE (TIVA_PERIPH_BASE + 0x21800) /* -0x21fbf: I2C Slave 1 */
|
# define TIVA_I2CS1_BASE (TIVA_PERIPH_BASE + 0x21800) /* -0x21fbf: I2C Slave 1 */
|
||||||
# define TIVA_I2CSC1_BASE (TIVA_PERIPH_BASE + 0x21fc0) /* -0x21fff: I2C Status and Control 1 */
|
# define TIVA_I2CSC1_BASE (TIVA_PERIPH_BASE + 0x21f00) /* -0x21fff: I2C Status and Control 1 */
|
||||||
# define TIVA_I2CM2_BASE (TIVA_PERIPH_BASE + 0x22000) /* -0x227ff: I2C Master 2 */
|
# define TIVA_I2CM2_BASE (TIVA_PERIPH_BASE + 0x22000) /* -0x227ff: I2C Master 2 */
|
||||||
# define TIVA_I2CS2_BASE (TIVA_PERIPH_BASE + 0x22800) /* -0x22fbf: I2C Slave 2 */
|
# define TIVA_I2CS2_BASE (TIVA_PERIPH_BASE + 0x22800) /* -0x22fbf: I2C Slave 2 */
|
||||||
# define TIVA_I2CSC2_BASE (TIVA_PERIPH_BASE + 0x22fc0) /* -0x22fff: I2C Status and Control 2 */
|
# define TIVA_I2CSC2_BASE (TIVA_PERIPH_BASE + 0x22f00) /* -0x22fff: I2C Status and Control 2 */
|
||||||
# define TIVA_I2CM3_BASE (TIVA_PERIPH_BASE + 0x23000) /* -0x237ff: I2C Master 3 */
|
# define TIVA_I2CM3_BASE (TIVA_PERIPH_BASE + 0x23000) /* -0x237ff: I2C Master 3 */
|
||||||
# define TIVA_I2CS3_BASE (TIVA_PERIPH_BASE + 0x23800) /* -0x23fbf: I2C Slave 3 */
|
# define TIVA_I2CS3_BASE (TIVA_PERIPH_BASE + 0x23800) /* -0x23fbf: I2C Slave 3 */
|
||||||
# define TIVA_I2CSC3_BASE (TIVA_PERIPH_BASE + 0x23fc0) /* -0x23fff: I2C Status and Control 3 */
|
# define TIVA_I2CSC3_BASE (TIVA_PERIPH_BASE + 0x23f00) /* -0x23fff: I2C Status and Control 3 */
|
||||||
# define TIVA_GPIOE_BASE (TIVA_PERIPH_BASE + 0x24000) /* -0x24fff: GPIO Port E */
|
# define TIVA_GPIOE_BASE (TIVA_PERIPH_BASE + 0x24000) /* -0x24fff: GPIO Port E */
|
||||||
# define TIVA_GPIOF_BASE (TIVA_PERIPH_BASE + 0x25000) /* -0x25fff: GPIO Port F */
|
# define TIVA_GPIOF_BASE (TIVA_PERIPH_BASE + 0x25000) /* -0x25fff: GPIO Port F */
|
||||||
# define TIVA_GPIOG_BASE (TIVA_PERIPH_BASE + 0x26000) /* -0x26fff: GPIO Port G */
|
# define TIVA_GPIOG_BASE (TIVA_PERIPH_BASE + 0x26000) /* -0x26fff: GPIO Port G */
|
||||||
@ -183,10 +183,10 @@
|
|||||||
/* -0xbffff: Reserved */
|
/* -0xbffff: Reserved */
|
||||||
# define TIVA_I2CM4_BASE (TIVA_PERIPH_BASE + 0xc0000) /* -0x207ff: I2C Master 4 */
|
# define TIVA_I2CM4_BASE (TIVA_PERIPH_BASE + 0xc0000) /* -0x207ff: I2C Master 4 */
|
||||||
# define TIVA_I2CS4_BASE (TIVA_PERIPH_BASE + 0xc0800) /* -0x20fbf: I2C Slave 4 */
|
# define TIVA_I2CS4_BASE (TIVA_PERIPH_BASE + 0xc0800) /* -0x20fbf: I2C Slave 4 */
|
||||||
# define TIVA_I2CSC4_BASE (TIVA_PERIPH_BASE + 0xc0fc0) /* -0x20fff: I2C Status and Control 4 */
|
# define TIVA_I2CSC4_BASE (TIVA_PERIPH_BASE + 0xc0f00) /* -0x20fff: I2C Status and Control 4 */
|
||||||
# define TIVA_I2CM5_BASE (TIVA_PERIPH_BASE + 0xc1000) /* -0x207ff: I2C Master 5 */
|
# define TIVA_I2CM5_BASE (TIVA_PERIPH_BASE + 0xc1000) /* -0x207ff: I2C Master 5 */
|
||||||
# define TIVA_I2CS5_BASE (TIVA_PERIPH_BASE + 0xc1800) /* -0x20fbf: I2C Slave 5 */
|
# define TIVA_I2CS5_BASE (TIVA_PERIPH_BASE + 0xc1800) /* -0x20fbf: I2C Slave 5 */
|
||||||
# define TIVA_I2CSC5_BASE (TIVA_PERIPH_BASE + 0xc1fc0) /* -0x20fff: I2C Status and Control 5 */
|
# define TIVA_I2CSC5_BASE (TIVA_PERIPH_BASE + 0xc1f00) /* -0x20fff: I2C Status and Control 5 */
|
||||||
/* -0xf8fff: Reserved */
|
/* -0xf8fff: Reserved */
|
||||||
# define TIVA_SYSEXC_BASE (TIVA_PERIPH_BASE + 0xf9000) /* -0xf9fff: System Exception Control */
|
# define TIVA_SYSEXC_BASE (TIVA_PERIPH_BASE + 0xf9000) /* -0xf9fff: System Exception Control */
|
||||||
/* -0xfbfff: Reserved */
|
/* -0xfbfff: Reserved */
|
||||||
@ -221,16 +221,16 @@
|
|||||||
|
|
||||||
# define TIVA_I2CM0_BASE (TIVA_PERIPH_BASE + 0x20000) /* -0x207ff: I2C Master 0 */
|
# define TIVA_I2CM0_BASE (TIVA_PERIPH_BASE + 0x20000) /* -0x207ff: I2C Master 0 */
|
||||||
# define TIVA_I2CS0_BASE (TIVA_PERIPH_BASE + 0x20800) /* -0x20fbf: I2C Slave 0 */
|
# define TIVA_I2CS0_BASE (TIVA_PERIPH_BASE + 0x20800) /* -0x20fbf: I2C Slave 0 */
|
||||||
# define TIVA_I2CSC0_BASE (TIVA_PERIPH_BASE + 0x20fc0) /* -0x20fff: I2C Status and Control 0 */
|
# define TIVA_I2CSC0_BASE (TIVA_PERIPH_BASE + 0x20f00) /* -0x20fff: I2C Status and Control 0 */
|
||||||
# define TIVA_I2CM1_BASE (TIVA_PERIPH_BASE + 0x21000) /* -0x217ff: I2C Master 1 */
|
# define TIVA_I2CM1_BASE (TIVA_PERIPH_BASE + 0x21000) /* -0x217ff: I2C Master 1 */
|
||||||
# define TIVA_I2CS1_BASE (TIVA_PERIPH_BASE + 0x21800) /* -0x21fbf: I2C Slave 1 */
|
# define TIVA_I2CS1_BASE (TIVA_PERIPH_BASE + 0x21800) /* -0x21fbf: I2C Slave 1 */
|
||||||
# define TIVA_I2CSC1_BASE (TIVA_PERIPH_BASE + 0x21fc0) /* -0x21fff: I2C Status and Control 1 */
|
# define TIVA_I2CSC1_BASE (TIVA_PERIPH_BASE + 0x21f00) /* -0x21fff: I2C Status and Control 1 */
|
||||||
# define TIVA_I2CM2_BASE (TIVA_PERIPH_BASE + 0x22000) /* -0x227ff: I2C Master 2 */
|
# define TIVA_I2CM2_BASE (TIVA_PERIPH_BASE + 0x22000) /* -0x227ff: I2C Master 2 */
|
||||||
# define TIVA_I2CS2_BASE (TIVA_PERIPH_BASE + 0x22800) /* -0x22fbf: I2C Slave 2 */
|
# define TIVA_I2CS2_BASE (TIVA_PERIPH_BASE + 0x22800) /* -0x22fbf: I2C Slave 2 */
|
||||||
# define TIVA_I2CSC2_BASE (TIVA_PERIPH_BASE + 0x22fc0) /* -0x22fff: I2C Status and Control 2 */
|
# define TIVA_I2CSC2_BASE (TIVA_PERIPH_BASE + 0x22f00) /* -0x22fff: I2C Status and Control 2 */
|
||||||
# define TIVA_I2CM3_BASE (TIVA_PERIPH_BASE + 0x23000) /* -0x237ff: I2C Master 3 */
|
# define TIVA_I2CM3_BASE (TIVA_PERIPH_BASE + 0x23000) /* -0x237ff: I2C Master 3 */
|
||||||
# define TIVA_I2CS3_BASE (TIVA_PERIPH_BASE + 0x23800) /* -0x23fbf: I2C Slave 3 */
|
# define TIVA_I2CS3_BASE (TIVA_PERIPH_BASE + 0x23800) /* -0x23fbf: I2C Slave 3 */
|
||||||
# define TIVA_I2CSC3_BASE (TIVA_PERIPH_BASE + 0x23fc0) /* -0x23fff: I2C Status and Control 3 */
|
# define TIVA_I2CSC3_BASE (TIVA_PERIPH_BASE + 0x23f00) /* -0x23fff: I2C Status and Control 3 */
|
||||||
# define TIVA_GPIOE_BASE (TIVA_PERIPH_BASE + 0x24000) /* -0x24fff: GPIO Port E */
|
# define TIVA_GPIOE_BASE (TIVA_PERIPH_BASE + 0x24000) /* -0x24fff: GPIO Port E */
|
||||||
# define TIVA_GPIOF_BASE (TIVA_PERIPH_BASE + 0x25000) /* -0x25fff: GPIO Port F */
|
# define TIVA_GPIOF_BASE (TIVA_PERIPH_BASE + 0x25000) /* -0x25fff: GPIO Port F */
|
||||||
# define TIVA_PWM0_BASE (TIVA_PERIPH_BASE + 0x28000) /* -0x28fff: PWM 0 */
|
# define TIVA_PWM0_BASE (TIVA_PERIPH_BASE + 0x28000) /* -0x28fff: PWM 0 */
|
||||||
@ -299,16 +299,16 @@
|
|||||||
|
|
||||||
# define TIVA_I2CM0_BASE (TIVA_PERIPH_BASE + 0x20000) /* -0x207ff: I2C Master 0 */
|
# define TIVA_I2CM0_BASE (TIVA_PERIPH_BASE + 0x20000) /* -0x207ff: I2C Master 0 */
|
||||||
# define TIVA_I2CS0_BASE (TIVA_PERIPH_BASE + 0x20800) /* -0x20fbf: I2C Slave 0 */
|
# define TIVA_I2CS0_BASE (TIVA_PERIPH_BASE + 0x20800) /* -0x20fbf: I2C Slave 0 */
|
||||||
# define TIVA_I2CSC0_BASE (TIVA_PERIPH_BASE + 0x20fc0) /* -0x20fff: I2C Status and Control 0 */
|
# define TIVA_I2CSC0_BASE (TIVA_PERIPH_BASE + 0x20f00) /* -0x20fff: I2C Status and Control 0 */
|
||||||
# define TIVA_I2CM1_BASE (TIVA_PERIPH_BASE + 0x21000) /* -0x217ff: I2C Master 1 */
|
# define TIVA_I2CM1_BASE (TIVA_PERIPH_BASE + 0x21000) /* -0x217ff: I2C Master 1 */
|
||||||
# define TIVA_I2CS1_BASE (TIVA_PERIPH_BASE + 0x21800) /* -0x21fbf: I2C Slave 1 */
|
# define TIVA_I2CS1_BASE (TIVA_PERIPH_BASE + 0x21800) /* -0x21fbf: I2C Slave 1 */
|
||||||
# define TIVA_I2CSC1_BASE (TIVA_PERIPH_BASE + 0x21fc0) /* -0x21fff: I2C Status and Control 1 */
|
# define TIVA_I2CSC1_BASE (TIVA_PERIPH_BASE + 0x21f00) /* -0x21fff: I2C Status and Control 1 */
|
||||||
# define TIVA_I2CM2_BASE (TIVA_PERIPH_BASE + 0x22000) /* -0x227ff: I2C Master 2 */
|
# define TIVA_I2CM2_BASE (TIVA_PERIPH_BASE + 0x22000) /* -0x227ff: I2C Master 2 */
|
||||||
# define TIVA_I2CS2_BASE (TIVA_PERIPH_BASE + 0x22800) /* -0x22fbf: I2C Slave 2 */
|
# define TIVA_I2CS2_BASE (TIVA_PERIPH_BASE + 0x22800) /* -0x22fbf: I2C Slave 2 */
|
||||||
# define TIVA_I2CSC2_BASE (TIVA_PERIPH_BASE + 0x22fc0) /* -0x22fff: I2C Status and Control 2 */
|
# define TIVA_I2CSC2_BASE (TIVA_PERIPH_BASE + 0x22f00) /* -0x22fff: I2C Status and Control 2 */
|
||||||
# define TIVA_I2CM3_BASE (TIVA_PERIPH_BASE + 0x23000) /* -0x237ff: I2C Master 3 */
|
# define TIVA_I2CM3_BASE (TIVA_PERIPH_BASE + 0x23000) /* -0x237ff: I2C Master 3 */
|
||||||
# define TIVA_I2CS3_BASE (TIVA_PERIPH_BASE + 0x23800) /* -0x23fbf: I2C Slave 3 */
|
# define TIVA_I2CS3_BASE (TIVA_PERIPH_BASE + 0x23800) /* -0x23fbf: I2C Slave 3 */
|
||||||
# define TIVA_I2CSC3_BASE (TIVA_PERIPH_BASE + 0x23fc0) /* -0x23fff: I2C Status and Control 3 */
|
# define TIVA_I2CSC3_BASE (TIVA_PERIPH_BASE + 0x23f00) /* -0x23fff: I2C Status and Control 3 */
|
||||||
# define TIVA_GPIOE_BASE (TIVA_PERIPH_BASE + 0x24000) /* -0x24fff: GPIO Port E */
|
# define TIVA_GPIOE_BASE (TIVA_PERIPH_BASE + 0x24000) /* -0x24fff: GPIO Port E */
|
||||||
# define TIVA_GPIOF_BASE (TIVA_PERIPH_BASE + 0x25000) /* -0x25fff: GPIO Port F */
|
# define TIVA_GPIOF_BASE (TIVA_PERIPH_BASE + 0x25000) /* -0x25fff: GPIO Port F */
|
||||||
# define TIVA_PWM0_BASE (TIVA_PERIPH_BASE + 0x28000) /* -0x28fff: PWM 0 */
|
# define TIVA_PWM0_BASE (TIVA_PERIPH_BASE + 0x28000) /* -0x28fff: PWM 0 */
|
||||||
|
0
configs/tm4c123g-launchpad/tools/oocd.sh
Normal file → Executable file
0
configs/tm4c123g-launchpad/tools/oocd.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user