file: add a type.h

Used for type define

Signed-off-by: fjling <jialingfu@hotmail.com>
Modbus: add CRC function

Signed-off-by: fjling <jialingfu@hotmail.com>