Efficient Design for PMSM Control and Real-Time Diagnosis Based on FreeRTOS for e-Bike Application | IEEE Conference Publication | IEEE Xplore