The two lines _must_ use different signal names as they are driven by different physical input pins.

If your config runs with that HAL code then I suspect that it isn't even reading the HAL file with that code in, as it has at least 2 errors. (two HAL outputs to one signal, and no such pin as motion-feed-inhibit)