libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the USART module More...
Defined Constants and Types for the USART module
LGPL License Terms libopencm3 License
#define USART0 USART0_BASE |
Definition at line 434 of file usart_common.h.
#define USART0_CLKDIV USART_CLKDIV(USART0) |
Definition at line 440 of file usart_common.h.
Definition at line 438 of file usart_common.h.
#define USART0_CTRL USART_CTRL(USART0) |
Definition at line 435 of file usart_common.h.
#define USART0_FRAME USART_FRAME(USART0) |
Definition at line 436 of file usart_common.h.
#define USART0_I2SCTRL USART_I2SCTRL(USART0) |
Definition at line 458 of file usart_common.h.
Definition at line 454 of file usart_common.h.
Definition at line 451 of file usart_common.h.
Definition at line 453 of file usart_common.h.
Definition at line 452 of file usart_common.h.
#define USART0_INPUT USART_INPUT(USART0) |
Definition at line 457 of file usart_common.h.
#define USART0_IRCTRL USART_IRCTRL(USART0) |
Definition at line 455 of file usart_common.h.
#define USART0_ROUTE USART_ROUTE(USART0) |
Definition at line 456 of file usart_common.h.
#define USART0_RXDATA USART_RXDATA(USART0) |
Definition at line 442 of file usart_common.h.
#define USART0_RXDATAX USART_RXDATAX(USART0) |
Definition at line 441 of file usart_common.h.
#define USART0_RXDATAXP USART_RXDATAXP(USART0) |
Definition at line 445 of file usart_common.h.
#define USART0_RXDOUBLE USART_RXDOUBLE(USART0) |
Definition at line 444 of file usart_common.h.
#define USART0_RXDOUBLEX USART_RXDOUBLEX(USART0) |
Definition at line 443 of file usart_common.h.
#define USART0_RXDOUBLEXP USART_RXDOUBLEXP(USART0) |
Definition at line 446 of file usart_common.h.
#define USART0_STATUS USART_STATUS(USART0) |
Definition at line 439 of file usart_common.h.
#define USART0_TRIGCTRL USART_TRIGCTRL(USART0) |
Definition at line 437 of file usart_common.h.
#define USART0_TXDATA USART_TXDATA(USART0) |
Definition at line 448 of file usart_common.h.
#define USART0_TXDATAX USART_TXDATAX(USART0) |
Definition at line 447 of file usart_common.h.
#define USART0_TXDOUBLE USART_TXDOUBLE(USART0) |
Definition at line 450 of file usart_common.h.
#define USART0_TXDOUBLEX USART_TXDOUBLEX(USART0) |
Definition at line 449 of file usart_common.h.
#define USART1 USART1_BASE |
Definition at line 461 of file usart_common.h.
#define USART1_CLKDIV USART_CLKDIV(USART1) |
Definition at line 467 of file usart_common.h.
Definition at line 465 of file usart_common.h.
#define USART1_CTRL USART_CTRL(USART1) |
Definition at line 462 of file usart_common.h.
#define USART1_FRAME USART_FRAME(USART1) |
Definition at line 463 of file usart_common.h.
#define USART1_I2SCTRL USART_I2SCTRL(USART1) |
Definition at line 485 of file usart_common.h.
Definition at line 481 of file usart_common.h.
Definition at line 478 of file usart_common.h.
Definition at line 480 of file usart_common.h.
Definition at line 479 of file usart_common.h.
#define USART1_INPUT USART_INPUT(USART1) |
Definition at line 484 of file usart_common.h.
#define USART1_IRCTRL USART_IRCTRL(USART1) |
Definition at line 482 of file usart_common.h.
#define USART1_ROUTE USART_ROUTE(USART1) |
Definition at line 483 of file usart_common.h.
#define USART1_RXDATA USART_RXDATA(USART1) |
Definition at line 469 of file usart_common.h.
#define USART1_RXDATAX USART_RXDATAX(USART1) |
Definition at line 468 of file usart_common.h.
#define USART1_RXDATAXP USART_RXDATAXP(USART1) |
Definition at line 472 of file usart_common.h.
#define USART1_RXDOUBLE USART_RXDOUBLE(USART1) |
Definition at line 471 of file usart_common.h.
#define USART1_RXDOUBLEX USART_RXDOUBLEX(USART1) |
Definition at line 470 of file usart_common.h.
#define USART1_RXDOUBLEXP USART_RXDOUBLEXP(USART1) |
Definition at line 473 of file usart_common.h.
#define USART1_STATUS USART_STATUS(USART1) |
Definition at line 466 of file usart_common.h.
#define USART1_TRIGCTRL USART_TRIGCTRL(USART1) |
Definition at line 464 of file usart_common.h.
#define USART1_TXDATA USART_TXDATA(USART1) |
Definition at line 475 of file usart_common.h.
#define USART1_TXDATAX USART_TXDATAX(USART1) |
Definition at line 474 of file usart_common.h.
#define USART1_TXDOUBLE USART_TXDOUBLE(USART1) |
Definition at line 477 of file usart_common.h.
#define USART1_TXDOUBLEX USART_TXDOUBLEX(USART1) |
Definition at line 476 of file usart_common.h.
#define USART2 USART2_BASE |
Definition at line 488 of file usart_common.h.
#define USART2_CLKDIV USART_CLKDIV(USART2) |
Definition at line 494 of file usart_common.h.
Definition at line 492 of file usart_common.h.
#define USART2_CTRL USART_CTRL(USART2) |
Definition at line 489 of file usart_common.h.
#define USART2_FRAME USART_FRAME(USART2) |
Definition at line 490 of file usart_common.h.
#define USART2_I2SCTRL USART_I2SCTRL(USART2) |
Definition at line 512 of file usart_common.h.
Definition at line 508 of file usart_common.h.
Definition at line 505 of file usart_common.h.
Definition at line 507 of file usart_common.h.
Definition at line 506 of file usart_common.h.
#define USART2_INPUT USART_INPUT(USART2) |
Definition at line 511 of file usart_common.h.
#define USART2_IRCTRL USART_IRCTRL(USART2) |
Definition at line 509 of file usart_common.h.
#define USART2_ROUTE USART_ROUTE(USART2) |
Definition at line 510 of file usart_common.h.
#define USART2_RXDATA USART_RXDATA(USART2) |
Definition at line 496 of file usart_common.h.
#define USART2_RXDATAX USART_RXDATAX(USART2) |
Definition at line 495 of file usart_common.h.
#define USART2_RXDATAXP USART_RXDATAXP(USART2) |
Definition at line 499 of file usart_common.h.
#define USART2_RXDOUBLE USART_RXDOUBLE(USART2) |
Definition at line 498 of file usart_common.h.
#define USART2_RXDOUBLEX USART_RXDOUBLEX(USART2) |
Definition at line 497 of file usart_common.h.
#define USART2_RXDOUBLEXP USART_RXDOUBLEXP(USART2) |
Definition at line 500 of file usart_common.h.
#define USART2_STATUS USART_STATUS(USART2) |
Definition at line 493 of file usart_common.h.
#define USART2_TRIGCTRL USART_TRIGCTRL(USART2) |
Definition at line 491 of file usart_common.h.
#define USART2_TXDATA USART_TXDATA(USART2) |
Definition at line 502 of file usart_common.h.
#define USART2_TXDATAX USART_TXDATAX(USART2) |
Definition at line 501 of file usart_common.h.
#define USART2_TXDOUBLE USART_TXDOUBLE(USART2) |
Definition at line 504 of file usart_common.h.
#define USART2_TXDOUBLEX USART_TXDOUBLEX(USART2) |
Definition at line 503 of file usart_common.h.
#define USART_CLKDIV | ( | base | ) | MMIO32((base) + 0x014) |
Definition at line 34 of file usart_common.h.
#define USART_CLKDIV_DIV | ( | v | ) | (((v) << USART_CLKDIV_DIV_SHIFT) & USART_CLKDIV_DIV_MASK) |
Definition at line 192 of file usart_common.h.
#define USART_CLKDIV_DIV_MASK (0x7FFF << USART_CLKDIV_DIV_SHIFT) |
Definition at line 191 of file usart_common.h.
#define USART_CLKDIV_DIV_SHIFT (6) |
Definition at line 190 of file usart_common.h.
#define USART_CMD | ( | base | ) | MMIO32((base) + 0x00C) |
Definition at line 32 of file usart_common.h.
#define USART_CMD_CLEARRX (1 << 11) |
Definition at line 161 of file usart_common.h.
#define USART_CMD_CLEARTX (1 << 10) |
Definition at line 162 of file usart_common.h.
#define USART_CMD_MASTERDIS (1 << 5) |
Definition at line 167 of file usart_common.h.
#define USART_CMD_MASTEREN (1 << 4) |
Definition at line 168 of file usart_common.h.
#define USART_CMD_RXBLOCKDIS (1 << 7) |
Definition at line 165 of file usart_common.h.
#define USART_CMD_RXBLOCKEN (1 << 6) |
Definition at line 166 of file usart_common.h.
#define USART_CMD_RXDIS (1 << 1) |
Definition at line 171 of file usart_common.h.
#define USART_CMD_RXEN (1 << 0) |
Definition at line 172 of file usart_common.h.
#define USART_CMD_TXDIS (1 << 3) |
Definition at line 169 of file usart_common.h.
#define USART_CMD_TXEN (1 << 2) |
Definition at line 170 of file usart_common.h.
#define USART_CMD_TXTRIDIS (1 << 9) |
Definition at line 163 of file usart_common.h.
#define USART_CMD_TXTRIEN (1 << 8) |
Definition at line 164 of file usart_common.h.
#define USART_CTRL | ( | base | ) | MMIO32((base) + 0x000) |
Definition at line 29 of file usart_common.h.
#define USART_CTRL_AUTOCS (1 << 16) |
Definition at line 78 of file usart_common.h.
#define USART_CTRL_AUTOTRI (1 << 17) |
Definition at line 77 of file usart_common.h.
#define USART_CTRL_AUTOTX (1 << 29) |
Definition at line 57 of file usart_common.h.
#define USART_CTRL_BIT8DV (1 << 21) |
Definition at line 73 of file usart_common.h.
#define USART_CTRL_BYTESWAP (1 << 28) |
Definition at line 58 of file usart_common.h.
#define USART_CTRL_CCEN (1 << 2) |
Definition at line 99 of file usart_common.h.
#define USART_CTRL_CLKPHA (1 << 9) |
Definition at line 85 of file usart_common.h.
#define USART_CTRL_CLKPOL (1 << 8) |
Definition at line 86 of file usart_common.h.
#define USART_CTRL_CSINV (1 << 15) |
Definition at line 79 of file usart_common.h.
#define USART_CTRL_CSMA (1 << 11) |
Definition at line 83 of file usart_common.h.
#define USART_CTRL_ERRSDMA (1 << 22) |
Definition at line 72 of file usart_common.h.
#define USART_CTRL_ERRSRX (1 << 23) |
Definition at line 71 of file usart_common.h.
#define USART_CTRL_ERRSTX (1 << 24) |
Definition at line 70 of file usart_common.h.
#define USART_CTRL_LOOPBK (1 << 1) |
Definition at line 100 of file usart_common.h.
#define USART_CTRL_MPAB (1 << 4) |
Definition at line 97 of file usart_common.h.
#define USART_CTRL_MPM (1 << 3) |
Definition at line 98 of file usart_common.h.
#define USART_CTRL_MSBF (1 << 10) |
Definition at line 84 of file usart_common.h.
#define USART_CTRL_MVDIS (1 << 30) |
Definition at line 56 of file usart_common.h.
#define USART_CTRL_OVS | ( | v | ) | (((v) << USART_CTRL_OVS_SHIFT) & USART_CTRL_OVS_MASK) |
Definition at line 90 of file usart_common.h.
#define USART_CTRL_OVS_MASK (0x3 << USART_CTRL_OVS_SHIFT) |
Definition at line 89 of file usart_common.h.
#define USART_CTRL_OVS_SHIFT (5) |
Definition at line 88 of file usart_common.h.
#define USART_CTRL_OVS_X16 0 |
Definition at line 92 of file usart_common.h.
#define USART_CTRL_OVS_X4 3 |
Definition at line 95 of file usart_common.h.
#define USART_CTRL_OVS_X6 2 |
Definition at line 94 of file usart_common.h.
#define USART_CTRL_OVS_X8 1 |
Definition at line 93 of file usart_common.h.
#define USART_CTRL_RXINV (1 << 13) |
Definition at line 81 of file usart_common.h.
#define USART_CTRL_SCMODE (1 << 18) |
Definition at line 76 of file usart_common.h.
#define USART_CTRL_SCRETRANS (1 << 19) |
Definition at line 75 of file usart_common.h.
#define USART_CTRL_SKIPPERRF (1 << 20) |
Definition at line 74 of file usart_common.h.
#define USART_CTRL_SMSDELAY (1 << 31) |
Definition at line 55 of file usart_common.h.
#define USART_CTRL_SSSEARLY (1 << 25) |
Definition at line 69 of file usart_common.h.
#define USART_CTRL_SYNC (1 << 0) |
Definition at line 101 of file usart_common.h.
#define USART_CTRL_TXBIL (1 << 12) |
Definition at line 82 of file usart_common.h.
#define USART_CTRL_TXDELAY | ( | v | ) | (((v) << USART_CTRL_TXDELAY_SHIFT) & USART_CTRL_TXDELAY_MASK) |
Definition at line 62 of file usart_common.h.
#define USART_CTRL_TXDELAY_DOUBLE 2 |
Definition at line 66 of file usart_common.h.
#define USART_CTRL_TXDELAY_MASK (0x3 << USART_CTRL_TXDELAY_SHIFT) |
Definition at line 61 of file usart_common.h.
#define USART_CTRL_TXDELAY_NONE 0 |
Definition at line 64 of file usart_common.h.
#define USART_CTRL_TXDELAY_SHIFT (26) |
Definition at line 60 of file usart_common.h.
#define USART_CTRL_TXDELAY_SINGLE 1 |
Definition at line 65 of file usart_common.h.
#define USART_CTRL_TXDELAY_TRIPLE 3 |
Definition at line 67 of file usart_common.h.
#define USART_CTRL_TXINV (1 << 14) |
Definition at line 80 of file usart_common.h.
#define USART_FRAME | ( | base | ) | MMIO32((base) + 0x004) |
Definition at line 30 of file usart_common.h.
#define USART_FRAME_DATABITS | ( | v | ) | (((v) << USART_FRAME_DATABITS_SHIFT) & USART_FRAME_DATABITS_MASK) |
Definition at line 126 of file usart_common.h.
#define USART_FRAME_DATABITS_EIGHT 5 |
Definition at line 132 of file usart_common.h.
#define USART_FRAME_DATABITS_ELEVEN 8 |
Definition at line 135 of file usart_common.h.
#define USART_FRAME_DATABITS_FIFTEEN 12 |
Definition at line 139 of file usart_common.h.
#define USART_FRAME_DATABITS_FIVE 2 |
Definition at line 129 of file usart_common.h.
#define USART_FRAME_DATABITS_FOUR 1 |
Definition at line 128 of file usart_common.h.
#define USART_FRAME_DATABITS_FOURTEEN 11 |
Definition at line 138 of file usart_common.h.
#define USART_FRAME_DATABITS_MASK (0xF << USART_FRAME_DATABITS_SHIFT) |
Definition at line 125 of file usart_common.h.
#define USART_FRAME_DATABITS_NINE 6 |
Definition at line 133 of file usart_common.h.
#define USART_FRAME_DATABITS_SEVEN 4 |
Definition at line 131 of file usart_common.h.
#define USART_FRAME_DATABITS_SHIFT (0) |
Definition at line 124 of file usart_common.h.
#define USART_FRAME_DATABITS_SIX 3 |
Definition at line 130 of file usart_common.h.
#define USART_FRAME_DATABITS_SIXTEEN 13 |
Definition at line 140 of file usart_common.h.
#define USART_FRAME_DATABITS_TEN 7 |
Definition at line 134 of file usart_common.h.
#define USART_FRAME_DATABITS_THIRTEEN 10 |
Definition at line 137 of file usart_common.h.
#define USART_FRAME_DATABITS_TWELVE 9 |
Definition at line 136 of file usart_common.h.
#define USART_FRAME_PARITY | ( | v | ) | (((v) << USART_FRAME_PARITY_SHIFT) & USART_FRAME_PARITY_MASK) |
Definition at line 118 of file usart_common.h.
#define USART_FRAME_PARITY_EVEN 2 |
Definition at line 121 of file usart_common.h.
#define USART_FRAME_PARITY_MASK (0x3 << USART_FRAME_PARITY_SHIFT) |
Definition at line 117 of file usart_common.h.
#define USART_FRAME_PARITY_NONE 0 |
Definition at line 120 of file usart_common.h.
#define USART_FRAME_PARITY_ODD 3 |
Definition at line 122 of file usart_common.h.
#define USART_FRAME_PARITY_SHIFT (8) |
Definition at line 116 of file usart_common.h.
#define USART_FRAME_STOPBITS | ( | v | ) | (((v) << USART_FRAME_STOPBITS_SHIFT) & USART_FRAME_STOPBITS_MASK) |
Definition at line 107 of file usart_common.h.
#define USART_FRAME_STOPBITS_HALF 0 |
Definition at line 109 of file usart_common.h.
#define USART_FRAME_STOPBITS_MASK (0x3 << USART_FRAME_STOPBITS_SHIFT) |
Definition at line 106 of file usart_common.h.
#define USART_FRAME_STOPBITS_ONE 1 |
Definition at line 110 of file usart_common.h.
#define USART_FRAME_STOPBITS_ONE_AND_A_HALF USART_FRAME_STOPBITS_ONEANDAHALF |
Definition at line 112 of file usart_common.h.
#define USART_FRAME_STOPBITS_ONEANDAHALF 2 |
Definition at line 111 of file usart_common.h.
#define USART_FRAME_STOPBITS_SHIFT (12) |
Definition at line 105 of file usart_common.h.
#define USART_FRAME_STOPBITS_TWO 3 |
Definition at line 114 of file usart_common.h.
#define USART_I2SCTRL | ( | base | ) | MMIO32((base) + 0x05C) |
Definition at line 52 of file usart_common.h.
#define USART_I2SCTRL_DELAY (1 << 4) |
Definition at line 427 of file usart_common.h.
#define USART_I2SCTRL_DMASPLIT (1 << 3) |
Definition at line 428 of file usart_common.h.
#define USART_I2SCTRL_EN (1 << 0) |
Definition at line 431 of file usart_common.h.
#define USART_I2SCTRL_FORMAT | ( | v | ) | (((v) << USART_I2SCTRL_FORMAT_SHIFT) & USART_I2SCTRL_FORMAT_MASK) |
Definition at line 416 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_MASK (0x7 << USART_I2SCTRL_FORMAT_SHIFT) |
Definition at line 415 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_SHIFT (8) |
Definition at line 414 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W16D16 5 |
Definition at line 423 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W16D8 6 |
Definition at line 424 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W32D16 3 |
Definition at line 421 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W32D24 2 |
Definition at line 420 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W32D24M 1 |
Definition at line 419 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W32D32 0 |
Definition at line 418 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W32D8 4 |
Definition at line 422 of file usart_common.h.
#define USART_I2SCTRL_FORMAT_W8D8 7 |
Definition at line 425 of file usart_common.h.
#define USART_I2SCTRL_JUSTIFY (1 << 2) |
Definition at line 429 of file usart_common.h.
#define USART_I2SCTRL_MONO (1 << 1) |
Definition at line 430 of file usart_common.h.
#define USART_IEN | ( | base | ) | MMIO32((base) + 0x04C) |
Definition at line 48 of file usart_common.h.
#define USART_IEN_CCF (1 << 12) |
Definition at line 330 of file usart_common.h.
#define USART_IEN_FERR (1 << 9) |
Definition at line 333 of file usart_common.h.
#define USART_IEN_MPAF (1 << 10) |
Definition at line 332 of file usart_common.h.
#define USART_IEN_PERR (1 << 8) |
Definition at line 334 of file usart_common.h.
#define USART_IEN_RXDATAV (1 << 2) |
Definition at line 340 of file usart_common.h.
#define USART_IEN_RXFULL (1 << 3) |
Definition at line 339 of file usart_common.h.
#define USART_IEN_RXOF (1 << 4) |
Definition at line 338 of file usart_common.h.
#define USART_IEN_RXUF (1 << 5) |
Definition at line 337 of file usart_common.h.
#define USART_IEN_SSM (1 << 11) |
Definition at line 331 of file usart_common.h.
#define USART_IEN_TXBL (1 << 1) |
Definition at line 341 of file usart_common.h.
#define USART_IEN_TXC (1 << 0) |
Definition at line 342 of file usart_common.h.
#define USART_IEN_TXOF (1 << 6) |
Definition at line 336 of file usart_common.h.
#define USART_IEN_TXUF (1 << 7) |
Definition at line 335 of file usart_common.h.
#define USART_IF | ( | base | ) | MMIO32((base) + 0x040) |
Definition at line 45 of file usart_common.h.
#define USART_IF_CCF (1 << 12) |
Definition at line 285 of file usart_common.h.
#define USART_IF_FERR (1 << 9) |
Definition at line 288 of file usart_common.h.
#define USART_IF_MPAF (1 << 10) |
Definition at line 287 of file usart_common.h.
#define USART_IF_PERR (1 << 8) |
Definition at line 289 of file usart_common.h.
#define USART_IF_RXDATAV (1 << 2) |
Definition at line 295 of file usart_common.h.
#define USART_IF_RXFULL (1 << 3) |
Definition at line 294 of file usart_common.h.
#define USART_IF_RXOF (1 << 4) |
Definition at line 293 of file usart_common.h.
#define USART_IF_RXUF (1 << 5) |
Definition at line 292 of file usart_common.h.
#define USART_IF_SSM (1 << 11) |
Definition at line 286 of file usart_common.h.
#define USART_IF_TXBL (1 << 1) |
Definition at line 296 of file usart_common.h.
#define USART_IF_TXC (1 << 0) |
Definition at line 297 of file usart_common.h.
#define USART_IF_TXOF (1 << 6) |
Definition at line 291 of file usart_common.h.
#define USART_IF_TXUF (1 << 7) |
Definition at line 290 of file usart_common.h.
#define USART_IFC | ( | base | ) | MMIO32((base) + 0x048) |
Definition at line 47 of file usart_common.h.
#define USART_IFC_CCF (1 << 12) |
Definition at line 315 of file usart_common.h.
#define USART_IFC_FERR (1 << 9) |
Definition at line 318 of file usart_common.h.
#define USART_IFC_MPAF (1 << 10) |
Definition at line 317 of file usart_common.h.
#define USART_IFC_PERR (1 << 8) |
Definition at line 319 of file usart_common.h.
#define USART_IFC_RXDATAV (1 << 2) |
Definition at line 325 of file usart_common.h.
#define USART_IFC_RXFULL (1 << 3) |
Definition at line 324 of file usart_common.h.
#define USART_IFC_RXOF (1 << 4) |
Definition at line 323 of file usart_common.h.
#define USART_IFC_RXUF (1 << 5) |
Definition at line 322 of file usart_common.h.
#define USART_IFC_SSM (1 << 11) |
Definition at line 316 of file usart_common.h.
#define USART_IFC_TXBL (1 << 1) |
Definition at line 326 of file usart_common.h.
#define USART_IFC_TXC (1 << 0) |
Definition at line 327 of file usart_common.h.
#define USART_IFC_TXOF (1 << 6) |
Definition at line 321 of file usart_common.h.
#define USART_IFC_TXUF (1 << 7) |
Definition at line 320 of file usart_common.h.
#define USART_IFS | ( | base | ) | MMIO32((base) + 0x044) |
Definition at line 46 of file usart_common.h.
#define USART_IFS_CCF (1 << 12) |
Definition at line 300 of file usart_common.h.
#define USART_IFS_FERR (1 << 9) |
Definition at line 303 of file usart_common.h.
#define USART_IFS_MPAF (1 << 10) |
Definition at line 302 of file usart_common.h.
#define USART_IFS_PERR (1 << 8) |
Definition at line 304 of file usart_common.h.
#define USART_IFS_RXDATAV (1 << 2) |
Definition at line 310 of file usart_common.h.
#define USART_IFS_RXFULL (1 << 3) |
Definition at line 309 of file usart_common.h.
#define USART_IFS_RXOF (1 << 4) |
Definition at line 308 of file usart_common.h.
#define USART_IFS_RXUF (1 << 5) |
Definition at line 307 of file usart_common.h.
#define USART_IFS_SSM (1 << 11) |
Definition at line 301 of file usart_common.h.
#define USART_IFS_TXBL (1 << 1) |
Definition at line 311 of file usart_common.h.
#define USART_IFS_TXC (1 << 0) |
Definition at line 312 of file usart_common.h.
#define USART_IFS_TXOF (1 << 6) |
Definition at line 306 of file usart_common.h.
#define USART_IFS_TXUF (1 << 7) |
Definition at line 305 of file usart_common.h.
#define USART_INPUT | ( | base | ) | MMIO32((base) + 0x058) |
Definition at line 51 of file usart_common.h.
#define USART_INPUT_RXPRS (1 << 4) |
Definition at line 393 of file usart_common.h.
#define USART_INPUT_RXPRSSEL | ( | v | ) | (((v) << USART_INPUT_RXPRSSEL_SHIFT) & USART_INPUT_RXPRSSEL_MASK) |
Definition at line 397 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_MASK (0xF << USART_INPUT_RXPRSSEL_SHIFT) |
Definition at line 396 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH0 0 |
Definition at line 400 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH1 1 |
Definition at line 401 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH10 10 |
Definition at line 410 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH11 11 |
Definition at line 411 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH2 2 |
Definition at line 402 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH3 3 |
Definition at line 403 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH4 4 |
Definition at line 404 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH5 5 |
Definition at line 405 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH6 6 |
Definition at line 406 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH7 7 |
Definition at line 407 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH8 8 |
Definition at line 408 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCH9 9 |
Definition at line 409 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_PRSCHx | ( | x | ) | USART_INPUT_RXPRSSEL(x) |
Definition at line 399 of file usart_common.h.
#define USART_INPUT_RXPRSSEL_SHIFT (0) |
Definition at line 395 of file usart_common.h.
#define USART_IRCTRL | ( | base | ) | MMIO32((base) + 0x050) |
Definition at line 49 of file usart_common.h.
#define USART_IRCTRL_IREN (1 << 0) |
Definition at line 372 of file usart_common.h.
#define USART_IRCTRL_IRFILT (1 << 3) |
Definition at line 361 of file usart_common.h.
#define USART_IRCTRL_IRPRSEN (1 << 7) |
Definition at line 345 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL | ( | v | ) | (((v) << USART_IRCTRL_IRPRSSEL_SHIFT) & USART_IRCTRL_IRPRSSEL_MASK) |
Definition at line 349 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_MASK (0x7 << USART_IRCTRL_IRPRSSEL_SHIFT) |
Definition at line 348 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH0 0 |
Definition at line 352 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH1 1 |
Definition at line 353 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH2 2 |
Definition at line 354 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH3 3 |
Definition at line 355 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH4 4 |
Definition at line 356 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH5 5 |
Definition at line 357 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH6 6 |
Definition at line 358 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCH7 7 |
Definition at line 359 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_PRSCHx | ( | x | ) | USART_IRCTRL_IRPRSSEL(x) |
Definition at line 351 of file usart_common.h.
#define USART_IRCTRL_IRPRSSEL_SHIFT (4) |
Definition at line 347 of file usart_common.h.
#define USART_IRCTRL_IRPW | ( | v | ) | (((v) << USART_IRCTRL_IRPW_SHIFT) & USART_IRCTRL_IRPW_MASK) |
Definition at line 365 of file usart_common.h.
#define USART_IRCTRL_IRPW_FOUR 3 |
Definition at line 370 of file usart_common.h.
#define USART_IRCTRL_IRPW_MASK (0x3 << USART_IRCTRL_IRPW_SHIFT) |
Definition at line 364 of file usart_common.h.
#define USART_IRCTRL_IRPW_ONE 0 |
Definition at line 367 of file usart_common.h.
#define USART_IRCTRL_IRPW_SHIFT (1) |
Definition at line 363 of file usart_common.h.
#define USART_IRCTRL_IRPW_THREE 2 |
Definition at line 369 of file usart_common.h.
#define USART_IRCTRL_IRPW_TWO 1 |
Definition at line 368 of file usart_common.h.
#define USART_ROUTE | ( | base | ) | MMIO32((base) + 0x054) |
Definition at line 50 of file usart_common.h.
#define USART_ROUTE_CLKPEN (1 << 3) |
Definition at line 387 of file usart_common.h.
#define USART_ROUTE_CSPEN (1 << 2) |
Definition at line 388 of file usart_common.h.
#define USART_ROUTE_LOCATION | ( | v | ) | (((v) << USART_ROUTE_LOCATION_SHIFT) & USART_ROUTE_LOCATION_MASK) |
Definition at line 377 of file usart_common.h.
#define USART_ROUTE_LOCATION_LOC0 0 |
Definition at line 380 of file usart_common.h.
#define USART_ROUTE_LOCATION_LOC1 1 |
Definition at line 381 of file usart_common.h.
#define USART_ROUTE_LOCATION_LOC2 2 |
Definition at line 382 of file usart_common.h.
#define USART_ROUTE_LOCATION_LOC3 3 |
Definition at line 383 of file usart_common.h.
#define USART_ROUTE_LOCATION_LOC4 4 |
Definition at line 384 of file usart_common.h.
#define USART_ROUTE_LOCATION_LOC5 5 |
Definition at line 385 of file usart_common.h.
#define USART_ROUTE_LOCATION_LOCx | ( | x | ) | USART_ROUTE_LOCATION(x) |
Definition at line 379 of file usart_common.h.
#define USART_ROUTE_LOCATION_MASK (0x7 << USART_ROUTE_LOCATION_SHIFT) |
Definition at line 376 of file usart_common.h.
#define USART_ROUTE_LOCATION_SHIFT (8) |
Definition at line 375 of file usart_common.h.
#define USART_ROUTE_RXPEN (1 << 0) |
Definition at line 390 of file usart_common.h.
#define USART_ROUTE_TXPEN (1 << 1) |
Definition at line 389 of file usart_common.h.
#define USART_RXDATA | ( | base | ) | MMIO32((base) + 0x01C) |
Definition at line 36 of file usart_common.h.
#define USART_RXDATAX | ( | base | ) | MMIO32((base) + 0x018) |
Definition at line 35 of file usart_common.h.
#define USART_RXDATAX_FERR (1 << 15) |
Definition at line 196 of file usart_common.h.
#define USART_RXDATAX_PERR (1 << 14) |
Definition at line 197 of file usart_common.h.
#define USART_RXDATAX_RXDATA_MASK (0x1FF << USART_RXDATAX_RXDATA_SHIFT) |
Definition at line 200 of file usart_common.h.
#define USART_RXDATAX_RXDATA_SHIFT (0) |
Definition at line 199 of file usart_common.h.
#define USART_RXDATAXP | ( | base | ) | MMIO32((base) + 0x028) |
Definition at line 39 of file usart_common.h.
#define USART_RXDATAXP_FERRP (1 << 15) |
Definition at line 225 of file usart_common.h.
#define USART_RXDATAXP_PERRP (1 << 14) |
Definition at line 226 of file usart_common.h.
#define USART_RXDATAXP_RXDATAP_MASK (0x1FF << USART_RXDATAXP_RXDATAP_SHIFT) |
Definition at line 229 of file usart_common.h.
#define USART_RXDATAXP_RXDATAP_SHIFT (0) |
Definition at line 228 of file usart_common.h.
#define USART_RXDOUBLE | ( | base | ) | MMIO32((base) + 0x024) |
Definition at line 38 of file usart_common.h.
#define USART_RXDOUBLE_RXDATA0_MASK (0xFF << USART_RXDOUBLE_RXDATA0_SHIFT) |
Definition at line 222 of file usart_common.h.
#define USART_RXDOUBLE_RXDATA0_SHIFT (0) |
Definition at line 221 of file usart_common.h.
#define USART_RXDOUBLE_RXDATA1_MASK (0xFF << USART_RXDOUBLE_RXDATA1_SHIFT) |
Definition at line 219 of file usart_common.h.
#define USART_RXDOUBLE_RXDATA1_SHIFT (8) |
Definition at line 218 of file usart_common.h.
#define USART_RXDOUBLEX | ( | base | ) | MMIO32((base) + 0x020) |
Definition at line 37 of file usart_common.h.
#define USART_RXDOUBLEX_FERR0 (1 << 15) |
Definition at line 210 of file usart_common.h.
#define USART_RXDOUBLEX_FERR1 (1 << 31) |
Definition at line 203 of file usart_common.h.
#define USART_RXDOUBLEX_PERR0 (1 << 14) |
Definition at line 211 of file usart_common.h.
#define USART_RXDOUBLEX_PERR1 (1 << 30) |
Definition at line 204 of file usart_common.h.
#define USART_RXDOUBLEX_RXDATA0_MASK (0x1FF << USART_RXDOUBLEX_RXDATA1_SHIFT) |
Definition at line 214 of file usart_common.h.
#define USART_RXDOUBLEX_RXDATA0_SHIFT (0) |
Definition at line 213 of file usart_common.h.
#define USART_RXDOUBLEX_RXDATA1_MASK (0x1FF << USART_RXDOUBLEX_RXDATA1_SHIFT) |
Definition at line 207 of file usart_common.h.
#define USART_RXDOUBLEX_RXDATA1_SHIFT (16) |
Definition at line 206 of file usart_common.h.
#define USART_RXDOUBLEXP | ( | base | ) | MMIO32((base) + 0x02C) |
Definition at line 40 of file usart_common.h.
#define USART_RXDOUBLEXP_FERR0 (1 << 15) |
Definition at line 239 of file usart_common.h.
#define USART_RXDOUBLEXP_FERR1 (1 << 31) |
Definition at line 232 of file usart_common.h.
#define USART_RXDOUBLEXP_PERR0 (1 << 14) |
Definition at line 240 of file usart_common.h.
#define USART_RXDOUBLEXP_PERR1 (1 << 30) |
Definition at line 233 of file usart_common.h.
#define USART_RXDOUBLEXP_RXDATA0_MASK (0x1FF << USART_RXDOUBLEXP_RXDATA1_SHIFT) |
Definition at line 243 of file usart_common.h.
#define USART_RXDOUBLEXP_RXDATA0_SHIFT (0) |
Definition at line 242 of file usart_common.h.
#define USART_RXDOUBLEXP_RXDATA1_MASK (0x1FF << USART_RXDOUBLEXP_RXDATA1_SHIFT) |
Definition at line 236 of file usart_common.h.
#define USART_RXDOUBLEXP_RXDATA1_SHIFT (16) |
Definition at line 235 of file usart_common.h.
#define USART_STATUS | ( | base | ) | MMIO32((base) + 0x010) |
Definition at line 33 of file usart_common.h.
#define USART_STATUS_MASTER (1 << 2) |
Definition at line 185 of file usart_common.h.
#define USART_STATUS_RXBLOCK (1 << 3) |
Definition at line 184 of file usart_common.h.
#define USART_STATUS_RXDATAV (1 << 7) |
Definition at line 180 of file usart_common.h.
#define USART_STATUS_RXDATAVRIGHT (1 << 11) |
Definition at line 176 of file usart_common.h.
#define USART_STATUS_RXENS (1 << 0) |
Definition at line 187 of file usart_common.h.
#define USART_STATUS_RXFULL (1 << 8) |
Definition at line 179 of file usart_common.h.
#define USART_STATUS_RXFULLRIGHT (1 << 12) |
Definition at line 175 of file usart_common.h.
#define USART_STATUS_TXBDRIGHT (1 << 9) |
Definition at line 178 of file usart_common.h.
#define USART_STATUS_TXBL (1 << 6) |
Definition at line 181 of file usart_common.h.
#define USART_STATUS_TXBSRIGHT (1 << 10) |
Definition at line 177 of file usart_common.h.
#define USART_STATUS_TXC (1 << 5) |
Definition at line 182 of file usart_common.h.
#define USART_STATUS_TXENS (1 << 1) |
Definition at line 186 of file usart_common.h.
#define USART_STATUS_TXTRI (1 << 4) |
Definition at line 183 of file usart_common.h.
#define USART_TRIGCTRL | ( | base | ) | MMIO32((base) + 0x008) |
Definition at line 31 of file usart_common.h.
#define USART_TRIGCTRL_AUTOTXTEN (1 << 6) |
Definition at line 143 of file usart_common.h.
#define USART_TRIGCTRL_RXTEN (1 << 4) |
Definition at line 145 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_MASK (0x3 << USART_TRIGCTRL_TSEL_SHIFT) |
Definition at line 148 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH0 0 |
Definition at line 151 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH1 1 |
Definition at line 152 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH2 2 |
Definition at line 153 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH3 3 |
Definition at line 154 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH4 4 |
Definition at line 155 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH5 5 |
Definition at line 156 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH6 6 |
Definition at line 157 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCH7 7 |
Definition at line 158 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_PRSCHx | ( | v | ) | (((v) << USART_TRIGCTRL_TSEL_SHIFT) & USART_TRIGCTRL_TSEL_MASK) |
Definition at line 149 of file usart_common.h.
#define USART_TRIGCTRL_TSEL_SHIFT (8) |
Definition at line 147 of file usart_common.h.
#define USART_TRIGCTRL_TXTEN (1 << 5) |
Definition at line 144 of file usart_common.h.
#define USART_TXDATA | ( | base | ) | MMIO32((base) + 0x034) |
Definition at line 42 of file usart_common.h.
#define USART_TXDATAX | ( | base | ) | MMIO32((base) + 0x030) |
Definition at line 41 of file usart_common.h.
#define USART_TXDATAX_RXENAT (1 << 15) |
Definition at line 247 of file usart_common.h.
#define USART_TXDATAX_TXBREAK (1 << 13) |
Definition at line 249 of file usart_common.h.
#define USART_TXDATAX_TXDATAX_MASK (0x1FF << USART_TXDATAX_TXDATAX_SHIFT) |
Definition at line 254 of file usart_common.h.
#define USART_TXDATAX_TXDATAX_SHIFT (0) |
Definition at line 253 of file usart_common.h.
#define USART_TXDATAX_TXDISAT (1 << 14) |
Definition at line 248 of file usart_common.h.
#define USART_TXDATAX_TXTRIAT (1 << 12) |
Definition at line 250 of file usart_common.h.
#define USART_TXDATAX_UBRXAT (1 << 11) |
Definition at line 251 of file usart_common.h.
#define USART_TXDOUBLE | ( | base | ) | MMIO32((base) + 0x03C) |
Definition at line 44 of file usart_common.h.
#define USART_TXDOUBLE_TXDATA0_MASK (0xFF << USART_TXDOUBLE_TXDATA0_SHIFT) |
Definition at line 282 of file usart_common.h.
#define USART_TXDOUBLE_TXDATA0_SHIFT (0) |
Definition at line 281 of file usart_common.h.
#define USART_TXDOUBLE_TXDATA1_MASK (0xFF << USART_TXDOUBLE_TXDATA1_SHIFT) |
Definition at line 279 of file usart_common.h.
#define USART_TXDOUBLE_TXDATA1_SHIFT (8) |
Definition at line 278 of file usart_common.h.
#define USART_TXDOUBLEX | ( | base | ) | MMIO32((base) + 0x038) |
Definition at line 43 of file usart_common.h.
#define USART_TXDOUBLEX_RXENAT0 (1 << 15) |
Definition at line 267 of file usart_common.h.
#define USART_TXDOUBLEX_RXENAT1 (1 << 31) |
Definition at line 257 of file usart_common.h.
#define USART_TXDOUBLEX_TXBREAK0 (1 << 13) |
Definition at line 269 of file usart_common.h.
#define USART_TXDOUBLEX_TXBREAK1 (1 << 29) |
Definition at line 259 of file usart_common.h.
#define USART_TXDOUBLEX_TXDATA0_MASK (0x1FF << USART_TXDOUBLEX_TXDATA0_SHIFT) |
Definition at line 274 of file usart_common.h.
#define USART_TXDOUBLEX_TXDATA0_SHIFT (0) |
Definition at line 273 of file usart_common.h.
#define USART_TXDOUBLEX_TXDATA1_MASK (0x1FF << USART_TXDOUBLEX_TXDATA1_SHIFT) |
Definition at line 264 of file usart_common.h.
#define USART_TXDOUBLEX_TXDATA1_SHIFT (16) |
Definition at line 263 of file usart_common.h.
#define USART_TXDOUBLEX_TXDISAT0 (1 << 14) |
Definition at line 268 of file usart_common.h.
#define USART_TXDOUBLEX_TXDISAT1 (1 << 30) |
Definition at line 258 of file usart_common.h.
#define USART_TXDOUBLEX_TXTRIAT0 (1 << 12) |
Definition at line 270 of file usart_common.h.
#define USART_TXDOUBLEX_TXTRIAT1 (1 << 28) |
Definition at line 260 of file usart_common.h.
#define USART_TXDOUBLEX_UBRXAT0 (1 << 11) |
Definition at line 271 of file usart_common.h.
#define USART_TXDOUBLEX_UBRXAT1 (1 << 27) |
Definition at line 261 of file usart_common.h.