add ports as parameters for commutation loop, update all test apps,
update makefile to use platform files from github repo