LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
suart_pru_regs.h File Reference
#include "tistdtypes.h"

Go to the source code of this file.

Data Structures

struct  suart_struct_pru_regs
 One line description of the structure. More...
 

Macros

#define PRU_DATARAM_BASE_ADDR   (0x01C30000u)
 
#define PRU0_DATARAM0_OFFSET   (0x0000u)
 
#define PRU0_DATARAM1_OFFSET   (0x2000u)
 
#define PRU_SUART_DATARAM0_BASE   (PRU_DATARAM_BASE_ADDR + PRU0_DATARAM0_OFFSET)
 
#define PRU_SUART_DATARAM1_BASE   (PRU_DATARAM_BASE_ADDR + PRU0_DATARAM0_OFFSET)
 
#define PRU_SUART_PRU0_CH0_OFFSET   (0x0000)
 
#define PRU_SUART_PRU0_CH1_OFFSET   (0x0010)
 
#define PRU_SUART_PRU0_CH2_OFFSET   (0x0020)
 
#define PRU_SUART_PRU0_CH3_OFFSET   (0x0030)
 
#define PRU_SUART_PRU0_CH4_OFFSET   (0x0040)
 
#define PRU_SUART_PRU0_CH5_OFFSET   (0x0050)
 
#define PRU_SUART_PRU0_CH6_OFFSET   (0x0060)
 
#define PRU_SUART_PRU0_CH7_OFFSET   (0x0070)
 
#define PRU_SUART_PRU0_IMR_OFFSET   (0x0080)
 
#define PRU_SUART_PRU0_ISR_OFFSET   (0x0082)
 
#define PRU_SUART_PRU0_ID_ADDR   (0x0084)
 
#define PRU_SUART_PRU0_RX_TX_MODE   (0x0085)
 
#define PRU_SUART_PRU0_DELAY_OFFSET   (0x0086)
 
#define PRU_SUART_PRU0_IDLE_TIMEOUT_OFFSET   (0x0088)
 
#define PRU_SUART_PRU1_CH0_OFFSET   (0x2000)
 
#define PRU_SUART_PRU1_CH1_OFFSET   (0x2010)
 
#define PRU_SUART_PRU1_CH2_OFFSET   (0x2020)
 
#define PRU_SUART_PRU1_CH3_OFFSET   (0x2030)
 
#define PRU_SUART_PRU1_CH4_OFFSET   (0x2040)
 
#define PRU_SUART_PRU1_CH5_OFFSET   (0x2050)
 
#define PRU_SUART_PRU1_CH6_OFFSET   (0x2060)
 
#define PRU_SUART_PRU1_CH7_OFFSET   (0x2070)
 
#define PRU_SUART_PRU1_IMR_OFFSET   (0x2080)
 
#define PRU_SUART_PRU1_ISR_OFFSET   (0x2082)
 
#define PRU_SUART_PRU1_ID_ADDR   (0x2084)
 
#define PRU_SUART_PRU1_RX_TX_MODE   (0x2085)
 
#define PRU_SUART_PRU1_DELAY_OFFSET   (0x2086)
 
#define PRU_SUART_PRU1_IDLE_TIMEOUT_OFFSET   (0x2088)
 
#define PRU_SUART_CH_CTRL_MODE_SHIFT   0x0000
 
#define PRU_SUART_CH_CTRL_MODE_MASK   0x0003
 
#define PRU_SUART_CH_CTRL_TX_MODE   0x0001
 
#define PRU_SUART_CH_CTRL_RX_MODE   0x0002
 
#define PRU_SUART_CH_CTRL_SREQ_SHIFT   0x0002
 
#define PRU_SUART_CH_CTRL_SREQ_MASK   0x0004
 
#define PRU_SUART_CH_CTRL_SREQ   0x0001
 
#define PRU_SUART_CH_CTRL_MCASP_SHIFT   0x0003
 
#define PRU_SUART_CH_CTRL_MCASP_MASK   0x0018
 
#define PRU_SUART_CH_CTRL_SR_SHIFT   0x0008
 
#define PRU_SUART_CH_CTRL_SR_MASK   0x0F00
 
#define PRU_SUART_CH_CONFIG1_DIVISOR_SHIFT   0x0000
 
#define PRU_SUART_CH_CONFIG1_DIVISOR_MASK   0x03FF
 
#define PRU_SUART_CH_CONFIG1_OVS_SHIFT   0x000A
 
#define PRU_SUART_CH_CONFIG1_OVS_MASK   0x0C00
 
#define PRU_SUART_CH_CONFIG2_BITPERCHAR_SHIFT   0x0000
 
#define PRU_SUART_CH_CONFIG2_BITPERCHAR_MASK   0x000F
 
#define PRU_SUART_CH_CONFIG2_DATALEN_SHIFT   0x0008
 
#define PRU_SUART_CH_CONFIG2_DATALEN_MASK   0x0F00
 
#define PRU_SUART_CH_STATUS_EN_BIT_MASK   0x8000
 
#define PRU_SUART_CH_CTRL_OFFSET   0x00
 
#define PRU_SUART_CH_CONFIG1_OFFSET   0x02
 
#define PRU_SUART_CH_CONFIG2_OFFSET   0x04
 
#define PRU_SUART_CH_TXRXSTATUS_OFFSET   0x06
 
#define PRU_SUART_CH_TXRXDATA_OFFSET   0x08
 
#define PRU_SUART_CH_BYTESDONECNTR_OFFSET   0x0C
 
#define PRU_SUART0_TX_EVT   34
 
#define PRU_SUART0_RX_EVT   35
 
#define PRU_SUART1_TX_EVT   36
 
#define PRU_SUART1_RX_EVT   37
 
#define PRU_SUART2_TX_EVT   38
 
#define PRU_SUART2_RX_EVT   39
 
#define PRU_SUART3_TX_EVT   40
 
#define PRU_SUART3_RX_EVT   41
 
#define PRU_SUART4_TX_EVT   42
 
#define PRU_SUART4_RX_EVT   43
 
#define PRU_SUART5_TX_EVT   44
 
#define PRU_SUART5_RX_EVT   45
 
#define PRU_SUART6_TX_EVT   46
 
#define PRU_SUART6_RX_EVT   47
 
#define PRU_SUART7_TX_EVT   48
 
#define PRU_SUART7_RX_EVT   49
 
#define PRU_SUART0_TX_EVT_BIT   BIT(2)
 
#define PRU_SUART0_RX_EVT_BIT   BIT(3)
 
#define PRU_SUART1_TX_EVT_BIT   BIT(4)
 
#define PRU_SUART1_RX_EVT_BIT   BIT(5)
 
#define PRU_SUART2_TX_EVT_BIT   BIT(6)
 
#define PRU_SUART2_RX_EVT_BIT   BIT(7)
 
#define PRU_SUART3_TX_EVT_BIT   BIT(8)
 
#define PRU_SUART3_RX_EVT_BIT   BIT(9)
 
#define PRU_SUART4_TX_EVT_BIT   BIT(10)
 
#define PRU_SUART4_RX_EVT_BIT   BIT(11)
 
#define PRU_SUART5_TX_EVT_BIT   BIT(12)
 
#define PRU_SUART5_RX_EVT_BIT   BIT(13)
 
#define PRU_SUART6_TX_EVT_BIT   BIT(14)
 
#define PRU_SUART6_RX_EVT_BIT   BIT(15)
 
#define PRU_SUART7_TX_EVT_BIT   BIT(16)
 
#define PRU_SUART7_RX_EVT_BIT   BIT(17)
 

Macro Definition Documentation

#define PRU0_DATARAM0_OFFSET   (0x0000u)

Definition at line 41 of file suart_pru_regs.h.

#define PRU0_DATARAM1_OFFSET   (0x2000u)

PRU0 DATA RAM base address

Definition at line 44 of file suart_pru_regs.h.

#define PRU_DATARAM_BASE_ADDR   (0x01C30000u)

Definition at line 39 of file suart_pru_regs.h.

#define PRU_SUART0_RX_EVT   35

Definition at line 174 of file suart_pru_regs.h.

#define PRU_SUART0_RX_EVT_BIT   BIT(3)

Definition at line 191 of file suart_pru_regs.h.

#define PRU_SUART0_TX_EVT   34

Definition at line 173 of file suart_pru_regs.h.

#define PRU_SUART0_TX_EVT_BIT   BIT(2)

Definition at line 190 of file suart_pru_regs.h.

#define PRU_SUART1_RX_EVT   37

Definition at line 176 of file suart_pru_regs.h.

#define PRU_SUART1_RX_EVT_BIT   BIT(5)

Definition at line 193 of file suart_pru_regs.h.

#define PRU_SUART1_TX_EVT   36

Definition at line 175 of file suart_pru_regs.h.

#define PRU_SUART1_TX_EVT_BIT   BIT(4)

Definition at line 192 of file suart_pru_regs.h.

#define PRU_SUART2_RX_EVT   39

Definition at line 178 of file suart_pru_regs.h.

#define PRU_SUART2_RX_EVT_BIT   BIT(7)

Definition at line 195 of file suart_pru_regs.h.

#define PRU_SUART2_TX_EVT   38

Definition at line 177 of file suart_pru_regs.h.

#define PRU_SUART2_TX_EVT_BIT   BIT(6)

Definition at line 194 of file suart_pru_regs.h.

#define PRU_SUART3_RX_EVT   41

Definition at line 180 of file suart_pru_regs.h.

#define PRU_SUART3_RX_EVT_BIT   BIT(9)

Definition at line 197 of file suart_pru_regs.h.

#define PRU_SUART3_TX_EVT   40

Definition at line 179 of file suart_pru_regs.h.

#define PRU_SUART3_TX_EVT_BIT   BIT(8)

Definition at line 196 of file suart_pru_regs.h.

#define PRU_SUART4_RX_EVT   43

Definition at line 182 of file suart_pru_regs.h.

#define PRU_SUART4_RX_EVT_BIT   BIT(11)

Definition at line 199 of file suart_pru_regs.h.

#define PRU_SUART4_TX_EVT   42

Definition at line 181 of file suart_pru_regs.h.

#define PRU_SUART4_TX_EVT_BIT   BIT(10)

Definition at line 198 of file suart_pru_regs.h.

#define PRU_SUART5_RX_EVT   45

Definition at line 184 of file suart_pru_regs.h.

#define PRU_SUART5_RX_EVT_BIT   BIT(13)

Definition at line 201 of file suart_pru_regs.h.

#define PRU_SUART5_TX_EVT   44

Definition at line 183 of file suart_pru_regs.h.

#define PRU_SUART5_TX_EVT_BIT   BIT(12)

Definition at line 200 of file suart_pru_regs.h.

#define PRU_SUART6_RX_EVT   47

Definition at line 186 of file suart_pru_regs.h.

#define PRU_SUART6_RX_EVT_BIT   BIT(15)

Definition at line 203 of file suart_pru_regs.h.

#define PRU_SUART6_TX_EVT   46

Definition at line 185 of file suart_pru_regs.h.

#define PRU_SUART6_TX_EVT_BIT   BIT(14)

Definition at line 202 of file suart_pru_regs.h.

#define PRU_SUART7_RX_EVT   49

Definition at line 188 of file suart_pru_regs.h.

#define PRU_SUART7_RX_EVT_BIT   BIT(17)

Definition at line 205 of file suart_pru_regs.h.

#define PRU_SUART7_TX_EVT   48

Definition at line 187 of file suart_pru_regs.h.

#define PRU_SUART7_TX_EVT_BIT   BIT(16)

Definition at line 204 of file suart_pru_regs.h.

#define PRU_SUART_CH_BYTESDONECNTR_OFFSET   0x0C

Definition at line 170 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG1_DIVISOR_MASK   0x03FF

Definition at line 147 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG1_DIVISOR_SHIFT   0x0000

Definition at line 146 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG1_OFFSET   0x02

Definition at line 166 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG1_OVS_MASK   0x0C00

Definition at line 150 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG1_OVS_SHIFT   0x000A

Definition at line 149 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG2_BITPERCHAR_MASK   0x000F

Definition at line 155 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG2_BITPERCHAR_SHIFT   0x0000

Definition at line 154 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG2_DATALEN_MASK   0x0F00

Definition at line 159 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG2_DATALEN_SHIFT   0x0008

Definition at line 158 of file suart_pru_regs.h.

#define PRU_SUART_CH_CONFIG2_OFFSET   0x04

Definition at line 167 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_MCASP_MASK   0x0018

Definition at line 138 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_MCASP_SHIFT   0x0003

Definition at line 137 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_MODE_MASK   0x0003

Definition at line 127 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_MODE_SHIFT   0x0000

Definition at line 126 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_OFFSET   0x00

Definition at line 165 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_RX_MODE   0x0002

Definition at line 129 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_SR_MASK   0x0F00

Definition at line 141 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_SR_SHIFT   0x0008

Definition at line 140 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_SREQ   0x0001

Definition at line 134 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_SREQ_MASK   0x0004

Definition at line 133 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_SREQ_SHIFT   0x0002

Definition at line 132 of file suart_pru_regs.h.

#define PRU_SUART_CH_CTRL_TX_MODE   0x0001

Definition at line 128 of file suart_pru_regs.h.

#define PRU_SUART_CH_STATUS_EN_BIT_MASK   0x8000

Definition at line 162 of file suart_pru_regs.h.

#define PRU_SUART_CH_TXRXDATA_OFFSET   0x08

Definition at line 169 of file suart_pru_regs.h.

#define PRU_SUART_CH_TXRXSTATUS_OFFSET   0x06

Definition at line 168 of file suart_pru_regs.h.

#define PRU_SUART_DATARAM0_BASE   (PRU_DATARAM_BASE_ADDR + PRU0_DATARAM0_OFFSET)

PRU0 DATA RAM base address

Definition at line 47 of file suart_pru_regs.h.

#define PRU_SUART_DATARAM1_BASE   (PRU_DATARAM_BASE_ADDR + PRU0_DATARAM0_OFFSET)

PRU1 DATA RAM base address

Definition at line 50 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH0_OFFSET   (0x0000)

PRU1 DATA RAM base address

Definition at line 53 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH1_OFFSET   (0x0010)

Channel 0

Definition at line 55 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH2_OFFSET   (0x0020)

Channel 1

Definition at line 57 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH3_OFFSET   (0x0030)

Channel 2

Definition at line 59 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH4_OFFSET   (0x0040)

Channel 3

Definition at line 61 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH5_OFFSET   (0x0050)

Channel 4

Definition at line 63 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH6_OFFSET   (0x0060)

Channel 5

Definition at line 65 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_CH7_OFFSET   (0x0070)

Channel 6

Definition at line 67 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_DELAY_OFFSET   (0x0086)

Definition at line 81 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_ID_ADDR   (0x0084)

Interrupt Status Register

Definition at line 76 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_IDLE_TIMEOUT_OFFSET   (0x0088)

Definition at line 82 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_IMR_OFFSET   (0x0080)

Channel 7

Definition at line 70 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_ISR_OFFSET   (0x0082)

Interrupt Mask Register

Definition at line 73 of file suart_pru_regs.h.

#define PRU_SUART_PRU0_RX_TX_MODE   (0x0085)

PRU ID Register

Definition at line 79 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH0_OFFSET   (0x2000)

Definition at line 85 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH1_OFFSET   (0x2010)

Channel 0

Definition at line 88 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH2_OFFSET   (0x2020)

Channel 1

Definition at line 91 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH3_OFFSET   (0x2030)

Channel 2

Definition at line 94 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH4_OFFSET   (0x2040)

Channel 3

Definition at line 97 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH5_OFFSET   (0x2050)

Channel 4

Definition at line 100 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH6_OFFSET   (0x2060)

Channel 5

Definition at line 103 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_CH7_OFFSET   (0x2070)

Channel 6

Definition at line 106 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_DELAY_OFFSET   (0x2086)

Definition at line 120 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_ID_ADDR   (0x2084)

Interrupt Status Register

Definition at line 115 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_IDLE_TIMEOUT_OFFSET   (0x2088)

Definition at line 122 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_IMR_OFFSET   (0x2080)

Channel 7

Definition at line 109 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_ISR_OFFSET   (0x2082)

Interrupt Mask Register

Definition at line 112 of file suart_pru_regs.h.

#define PRU_SUART_PRU1_RX_TX_MODE   (0x2085)

PRU ID Register

Definition at line 118 of file suart_pru_regs.h.