#define STRBR (volatile unsigned long *)( 0x40700000 ) // Receive Buffer Register (read only)
#define STTHR (volatile unsigned long *)( 0x40700000 ) // Transmit Holding Register (write only)
#define STIER (volatile unsigned long *)( 0x40700004 ) // Interrupt Enable Register (read/write)
#define STIIR (volatile unsigned long *)( 0x40700008 ) // Interrupt ID Register (read only)
#define STFCR (volatile unsigned long *)( 0x40700008 ) // FIFO Control Register (write only)
#define STLCR (volatile unsigned long *)( 0x4070000C ) // Line Control Register (read/write)
#define STMCR (volatile unsigned long *)( 0x40700010 ) // Modem Control Register (read/write)
#define STLSR (volatile unsigned long *)( 0x40700014 ) // Line Status Register (read only)
#define STMSR (volatile unsigned long *)( 0x40700018 ) // Modem Status Register (read only)
#define STSPR (volatile unsigned long *)( 0x4070001C ) // Scratch Pad Register (read/write)
#define STISR (volatile unsigned long *)( 0x40700020 ) // slow Infrared Select Register (read/write)
#define STFOR (volatile unsigned long *)( 0x40700024 ) // Receive FIFO Occupancy Register (read/write)
#define STDLL (volatile unsigned long *)( 0x40700000 ) // baud divisor lower byte (read/write)
#define STDLH (volatile unsigned long *)( 0x40700004 )
只要配好了这些,就printacsii就可以打印到STUART上了。