fix plc_mac type error

Signed-off-by: kevinhuhui <huhuikevin@gmail.com>
rewrite uart.c
Signed-off-by: kevinhuhui <huhuikevin@gmail.com>