Common library for motor electirc develop based on PIC