Motor declaration cleanup

Hi, I would like to propose a small change on the motor definition in order to get the triConfig working also for other definitions.

Cheers Mattias