static void SpeedHandler(unsigned long ulValue) { // // Compute the new base PWM duty cycle. // g_ulBaseDutyCycle = GetDutyCycle(ulValue); // // Save the new target speed. // g_ulTarget = ulValue; // // See if open loop operation is enabled. // if(g_bOpenLoop) { // // Set the PWM duty cycle based on the requested target speed. // SetPWMDutyCycle(g_ulBaseDutyCycle); } }