This is encoder close-loop motor speed control library, which contain the following procedures: encoder read, calculate rotational speed(rpm) of motor, command and control speed via PWM H-bridge drive. This library is designed for STM32 Microcontroller, and written in C base on STM32 HAL Library. It is also compatible with FreeRTOS middleware.