Change the internal structures of serial device model

1. The serial device uses internal buffers to store sended & received data
   The size of buffers is 64K.

2. Add some memory functions. (ex memset / memcpy ...)
   This functions are maded for target program.