void _kuart_int_putc
(
/* [IN] the address of the device specific information */
IO_SERIAL_INT_DEVICE_STRUCT_PTR int_io_dev_ptr,
/* [IN] the character to write out now */
char c
)
{ /* Body */
KUART_INFO_STRUCT_PTR sci_info_ptr;
UART_MemMapPtr sci_ptr;
sci_info_ptr = int_io_dev_ptr->DEV_INFO_PTR;
sci_ptr = sci_info_ptr->SCI_PTR;
while (!(sci_ptr->S1 & UART_S1_TDRE_MASK)) {
/* Wait while buffer is full */
} /* Endwhile */
sci_ptr->D = c;
sci_info_ptr->TX_CHARS++;
/* Enable transmit iterrupt */
sci_ptr->C2 |= UART_C2_TIE_MASK;
} /* Endbody */
下面是仿真时候寄存器的值