//usartdrv.c
static ssize_t usart_write(struct file *filp, const char __user *buf, size_t count, loff_t *ppos)
{
int ret=0;
if(copy_from_user(str_send,buf,count))
ret=-EFAULT;
else
{
US_TxBuffer(str_send);
*ppos+=count;
ret=count;
printk("written bytes to usart!!!/n");
}
return ret;
}